Eclipse 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".
|
static |
Builds the streams used possibly by the simulation.
Definition at line 840 of file MSFrame.cpp.
References OutputDevice::createDeviceByOption(), DELTA_T, OptionsCont::getOptions(), MSGlobals::gOverheadWireRecuperation, MSDevice_Vehroutes::init(), MSStopOut::init(), STEPS2MS, and toString().
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 884 of file MSFrame.cpp.
References SUMOXMLDefinitions::CarFollowModels, MSDevice::checkOptions(), SystemFrame::checkOptions(), checkStepLengthMultiple(), OptionsCont::doRegister(), OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getInt(), OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::getStringVector(), OptionsCont::isDefault(), OptionsCont::isSet(), OptionsCont::isUsableFileList(), MAX2(), OptionsCont::setDefault(), string2time(), TIME2STEPS, time2string(), TL, StringUtils::toDouble(), toString(), WRITE_ERROR, WRITE_ERRORF, WRITE_WARNING, and WRITE_WARNINGF.
Referenced by NLBuilder::init(), 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
Definition at line 60 of file MSFrame.cpp.
References OptionsCont::addCallExample(), SystemFrame::addConfigurationOptions(), OptionsCont::addDescription(), OptionsCont::addOptionSubTopic(), SystemFrame::addReportOptions(), OptionsCont::addSynonyme(), OptionsCont::addXMLDefault(), OptionsCont::doRegister(), OptionsCont::getOptions(), MSDevice::insertOptions(), RandHelper::insertRandOptions(), INVALID_DOUBLE, and TL.
Referenced by NLBuilder::init(), main(), and GUILoadThread::run().
|
static |
Sets the global microsim-options.
[in] | oc | The options container to get the values from |
Definition at line 1106 of file MSFrame.cpp.
References DELTA_T, MSGlobals::gActionStepLength, MSGlobals::gCheck4Accidents, MSGlobals::gCheckRoutes, MSGlobals::gDefaultEmergencyDecel, MSGlobals::gEmergencyDecelWarningThreshold, MSGlobals::gEmergencyInsert, OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getInt(), OptionsCont::getOptions(), OptionsCont::getString(), MSGlobals::gGridlockHighwaysSpeed, MSGlobals::gIgnoreJunctionBlocker, MSGlobals::gInsertionChecks, MSGlobals::gLaneChangeDuration, MSGlobals::gLateralResolution, MSGlobals::gMaxRailSignalBlockLength, MSGlobals::gMesoLimitedJunctionControl, MSGlobals::gMinorPenalty, MSGlobals::gModelParkingManoeuver, MSGlobals::gNumSimThreads, MSGlobals::gNumThreads, MSGlobals::gOmitEmptyEdgesOnDump, MSGlobals::gOverheadWireCurrentLimits, MSGlobals::gOverheadWireRecuperation, MSGlobals::gOverheadWireSolver, MSGlobals::gRemoveGridlocked, MSGlobals::gSemiImplicitEulerUpdate, MSGlobals::gStartupWaitThreshold, MSGlobals::gStateLoaded, MSGlobals::gStopTolerance, MSGlobals::gSublane, MSGlobals::gTimeToGridlock, MSGlobals::gTimeToGridlockHighways, MSGlobals::gTimeToImpatience, MSGlobals::gTimeToTeleportBidi, MSGlobals::gTimeToTeleportDisconnected, MSGlobals::gTimeToTeleportRSDeadlock, MSGlobals::gTLSPenalty, MSGlobals::gTLSYellowMinDecel, MSGlobals::gTurnaroundPenalty, MSGlobals::gUseMesoSim, MSGlobals::gUseStopEnded, MSGlobals::gUseStopStarted, MSGlobals::gUsingInternalLanes, MSGlobals::gWaitingTimeMemory, MSGlobals::gWeightsSeparateTurns, MSLane::initCollisionOptions(), MSAbstractLaneChangeModel::initGlobalOptions(), OptionsCont::isDefault(), OptionsCont::isSet(), MAX2(), SUMOVehicleParameter::parseInsertionChecks(), SUMOVehicleParserHelper::processActionStepLength(), string2time(), TL, StringUtils::toDouble(), VTYPEPARS_DEFAULT_EMERGENCYDECEL_DECEL, VTYPEPARS_DEFAULT_EMERGENCYDECEL_DEFAULT, and WRITE_MESSAGE.
Referenced by NLBuilder::init(), and GUILoadThread::run().