SUMO - Simulation of Urban MObility
MSFrame Class Reference

Sets and checks options for microsim; inits global outputs and settings. More...

#include <MSFrame.h>

Static Public Member Functions

static void buildStreams ()
 Builds the streams used possibly by the simulation.
static bool checkOptions ()
 Checks the set options.
static void fillOptions ()
 Inserts options used by the simulation into the OptionsCont-singleton.
static void setMSGlobals (OptionsCont &oc)
 Sets the global microsim-options.

Detailed Description

Sets and checks options for microsim; inits global outputs and settings.

In addition to setting and checking options, this frame also sets global values via "setMSGlobals". They are stored in MSGlobals.

Also, global output streams are initialised within "buildStreams".

See also:
MSGlobals

Definition at line 57 of file MSFrame.h.


Member Function Documentation

void MSFrame::buildStreams ( ) [static]

Builds the streams used possibly by the simulation.

Definition at line 278 of file MSFrame.cpp.

References OutputDevice::createDeviceByOption(), and MSDevice_Vehroutes::init().

Referenced by NLBuilder::buildNet().

Checks the set options.

The following constraints must be valid:

  • the network-file was specified (otherwise no simulation is existing)
  • the begin and the end of the simulation must be given
  • The default lane change model must be known
  • incremental-dua-step must be lower than incremental-dua-base If one is not, false is returned.
Returns:
Whether the settings are valid
Todo:

Rechek usage of the lane change model

probably, more things should be checked...

Definition at line 288 of file MSFrame.cpp.

References OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getInt(), OptionsCont::getOptions(), OptionsCont::isDefault(), OptionsCont::isSet(), WRITE_ERROR, and WRITE_WARNING.

Referenced by main(), and GUILoadThread::run().

void MSFrame::fillOptions ( ) [static]

Inserts options used by the simulation into the OptionsCont-singleton.

Device-options are inserted by calling the device's "insertOptions" -methods.

!! deprecated

!! deprecated

Definition at line 65 of file MSFrame.cpp.

References OptionsCont::addCallExample(), SystemFrame::addConfigurationOptions(), OptionsCont::addDescription(), OptionsCont::addOptionSubTopic(), SystemFrame::addReportOptions(), OptionsCont::addSynonyme(), OptionsCont::doRegister(), OptionsCont::getOptions(), MSDevice_HBEFA::insertOptions(), MSDevice_Routing::insertOptions(), and RandHelper::insertRandOptions().

Referenced by main().

void MSFrame::setMSGlobals ( OptionsCont oc) [static]

Sets the global microsim-options.

Parameters:
[in]ocThe options container to get the values from
See also:
MSGlobals

Definition at line 317 of file MSFrame.cpp.

References DELTA_T, MSGlobals::gCheck4Accidents, MSGlobals::gCheckRoutes, OptionsCont::getBool(), OptionsCont::getString(), MSGlobals::gOmitEmptyEdgesOnDump, MSGlobals::gTimeToGridlock, MSGlobals::gUseMesoSim, MSGlobals::gUsingInternalLanes, OptionsCont::isSet(), and string2time().

Referenced by load(), and GUILoadThread::run().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines