SUMO - Simulation of Urban MObility
|
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. |
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".
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().
bool MSFrame::checkOptions | ( | ) | [static] |
Checks the set options.
The following constraints must be valid:
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.
[in] | oc | The options container to get the values from |
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().