SUMO - Simulation of Urban MObility
MSFrame Class Reference

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

#include <MSFrame.h>

Collaboration diagram for MSFrame:
Collaboration graph

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...
 

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 396 of file MSFrame.cpp.

References OutputDevice::createDeviceByOption(), DELTA_T, MSDevice_Vehroutes::init(), STEPS2MS, and toString().

Referenced by NLBuilder::buildNet().

bool MSFrame::checkOptions ( )
static

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 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 423 of file MSFrame.cpp.

References OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::isDefault(), OptionsCont::isSet(), OptionsCont::isUsableFileList(), OptionsCont::set(), string2time(), 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.

!! check, describe

!! check, describe

!! check, describe

!! check, describe

!! check, describe

Definition at line 69 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(), and OUTPUT_ACCURACY.

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


The documentation for this class was generated from the following files: