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. More... | |
static bool | checkOptions () |
Checks the set options. More... | |
static void | fillOptions () |
Inserts options used by the simulation into the OptionsCont-singleton. More... | |
static void | setMSGlobals (OptionsCont &oc) |
Sets the global microsim-options. More... | |
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".
|
static |
Builds the streams used possibly by the simulation.
Definition at line 328 of file MSFrame.cpp.
References OutputDevice::createDeviceByOption(), and MSDevice_Vehroutes::init().
Referenced by NLBuilder::buildNet().
|
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 350 of file MSFrame.cpp.
References OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getInt(), OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::isDefault(), OptionsCont::isSet(), OptionsCont::isUsableFileList(), OptionsCont::set(), string2time(), WRITE_ERROR, and WRITE_WARNING.
Referenced by main(), and GUILoadThread::run().
|
static |
Inserts options used by the simulation into the OptionsCont-singleton.
Device-options are inserted by calling the device's "insertOptions" -methods.
!! check, describe
!! check, describe
!! check, describe
!! check, describe
!! check, describe
!! deprecated
!! deprecated
Definition at line 68 of file MSFrame.cpp.
References OptionsCont::addCallExample(), SystemFrame::addConfigurationOptions(), OptionsCont::addDescription(), OptionsCont::addOptionSubTopic(), SystemFrame::addReportOptions(), OptionsCont::addSynonyme(), OptionsCont::doRegister(), OptionsCont::getOptions(), MSDevice::insertOptions(), and RandHelper::insertRandOptions().
Referenced by GUILoadThread::initOptions(), and main().
|
static |
Sets the global microsim-options.
[in] | oc | The options container to get the values from |
Definition at line 408 of file MSFrame.cpp.
References DELTA_T, MSGlobals::gCheck4Accidents, MSGlobals::gCheckRoutes, OptionsCont::getBool(), OptionsCont::getInt(), OptionsCont::getString(), MSGlobals::gLaneChangeDuration, MSGlobals::gOmitEmptyEdgesOnDump, MSGlobals::gStateLoaded, MSGlobals::gTimeToGridlock, MSGlobals::gTimeToGridlockHighways, MSGlobals::gUseMesoSim, MSGlobals::gUsingInternalLanes, OptionsCont::isSet(), MSRoute::setMaxRouteDistSize(), and string2time().
Referenced by load(), and GUILoadThread::run().