![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A set of actions common to all applications. More...
#include <SystemFrame.h>
Static Public Member Functions | |
| static void | addConfigurationOptions (OptionsCont &oc) |
| Adds configuration options to the given container. | |
| static void | addReportOptions (OptionsCont &oc) |
| Adds reporting options to the given container. | |
| static bool | checkOptions (OptionsCont &oc) |
| checks shared options and sets StdDefs | |
| static void | close () |
| Closes all of an applications subsystems. | |
| static void | initOutputOptions () |
| init message output (console and log files) according to the options | |
| static void | initRandGlobal (SumoRNG *which=nullptr) |
| Reads the given random number options and initialises the random number generator in accordance. | |
| static void | insertRandOptions (OptionsCont &oc) |
| Initialises the given options container with random number options. | |
Static Private Member Functions | |
| static void | updateOutputSettings (const OptionsCont &oc) |
| hands the output related option values and the XML header writers over to the output devices | |
A set of actions common to all applications.
As almost all applications within the SUMO-package share the same initialisation procedure, it is encapsulated within this class.
Only two things are done herein, so far. The first is to insert options into the given options container that are used for dealing with the application's configuration.
Additionally, a closing method may be found, which closes all used subsystems.
Definition at line 48 of file SystemFrame.h.
|
static |
Adds configuration options to the given container.
| [in] | oc | The options container to add the options to |
Definition at line 40 of file SystemFrame.cpp.
References OptionsCont::addDescription(), OptionsCont::addOptionSubTopic(), OptionsCont::addSynonyme(), OptionsCont::addXMLDefault(), OptionsCont::doRegister(), and TL.
Referenced by AGFrame::fillOptions(), RODFFrame::fillOptions(), RODUAFrame::fillOptions(), ROJTRFrame::fillOptions(), ROMAFrame::fillOptions(), MSFrame::fillOptions(), fillOptions(), GNELoadThread::fillOptions(), and main().
|
static |
Adds reporting options to the given container.
| [in] | oc | The options container to add the options to |
Definition at line 69 of file SystemFrame.cpp.
References OptionsCont::addDescription(), OptionsCont::addOptionSubTopic(), OptionsCont::addSynonyme(), OptionsCont::doRegister(), OptionsCont::exists(), gLanguage, and TL.
Referenced by AGFrame::fillOptions(), RODFFrame::fillOptions(), MSFrame::fillOptions(), fillOptions(), NIFrame::fillOptions(), ROFrame::fillOptions(), and main().
|
static |
checks shared options and sets StdDefs
Definition at line 159 of file SystemFrame.cpp.
References OptionsCont::exists(), OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getInt(), OptionsCont::getString(), gHumanReadableTime, gIgnoreUnknownVClass, gPrecision, gPrecisionEmissions, gPrecisionGeo, gSimulation, gWeightsRandomFactor, gWeightsWalkOppositeFactor, OptionsCont::isDefault(), and OptionsCont::setDefault().
Referenced by MSFrame::checkOptions(), checkOptions(), NLBuilder::init(), main(), main(), GNEApplicationWindow::onCmdOpenOptionsDialog(), and GNELoadThread::run().
|
static |
Closes all of an applications subsystems.
Closes (in this order)
Definition at line 257 of file SystemFrame.cpp.
References MsgHandler::cleanupOnEnd(), OptionsCont::clear(), MsgHandler::clear(), XMLSubSys::close(), OutputDevice::closeAll(), OptionsCont::getOptions(), and MsgHandler::getWarningInstance().
Referenced by LIBSUMO_NAMESPACE::Simulation::close(), NLBuilder::init(), main(), and main().
|
static |
init message output (console and log files) according to the options
Definition at line 213 of file SystemFrame.cpp.
References MsgHandler::addInitialMessage(), MsgHandler::addRetriever(), OptionsCont::getBool(), OutputDevice::getDevice(), MsgHandler::getErrorInstance(), OptionsCont::getInt(), MsgHandler::getMessageInstance(), OptionsCont::getOptions(), OptionsCont::getString(), MsgHandler::getWarningInstance(), OptionsCont::isSet(), MsgHandler::removeRetriever(), MsgHandler::setAggregationThreshold(), MsgHandler::setWriteProcessId(), MsgHandler::setWriteTimestamps(), and updateOutputSettings().
Referenced by NLBuilder::init(), main(), main(), GUILoadThread::run(), and GNELoadThread::run().
|
static |
Reads the given random number options and initialises the random number generator in accordance.
Definition at line 287 of file SystemFrame.cpp.
References OptionsCont::getBool(), OptionsCont::getInt(), OptionsCont::getOptions(), and RandHelper::initRand().
Referenced by NLBuilder::initRandomness(), main(), main(), MSInsertionControl::MSInsertionControl(), MSPModel_JuPedSim::MSPModel_JuPedSim(), MSPModel_JuPedSim_legacy::MSPModel_JuPedSim_legacy(), and GNELoadThread::run().
|
static |
Initialises the given options container with random number options.
Definition at line 272 of file SystemFrame.cpp.
References OptionsCont::addDescription(), OptionsCont::addOptionSubTopic(), OptionsCont::addSynonyme(), OptionsCont::doRegister(), and TL.
Referenced by AGFrame::fillOptions(), RODFFrame::fillOptions(), RODUAFrame::fillOptions(), ROJTRFrame::fillOptions(), ROMAFrame::fillOptions(), MSFrame::fillOptions(), fillOptions(), and GNELoadThread::fillOptions().
|
staticprivate |
hands the output related option values and the XML header writers over to the output devices
Definition at line 184 of file SystemFrame.cpp.
References OutputDevice::Settings::columnHeader, OutputDevice::Settings::columnSeparator, OutputDevice::Settings::compression, OptionsCont::exists(), OutputDevice::Settings::format, OptionsCont::getBool(), OptionsCont::getFullName(), OptionsIO::getLoadTime(), OptionsCont::getOptions(), OptionsCont::getString(), StringUtils::isoTimeString(), OptionsCont::isSet(), OutputDevice::Settings::loadTime, OutputDevice::mySettings, OutputDevice::Settings::prefix, PlainXMLFormatter::setHeaderWriters(), OutputDevice::Settings::suffix, OptionsCont::writeConfiguration(), and OptionsCont::writeXMLHeader().
Referenced by initOutputOptions().