Eclipse SUMO - Simulation of Urban MObility
MSGlobals Class Reference

#include <MSGlobals.h>

Collaboration diagram for MSGlobals:
[legend]

Static Public Attributes

static SUMOTime gActionStepLength
 default value for the interval between two action points for MSVehicle (defaults to DELTA_T) More...
 
static bool gCheck4Accidents
 
static bool gCheckRoutes
 
static bool gClearState
 whether the simulation is in the process of clearing state (MSNet::clearState) More...
 
static bool gComputeLC
 whether the simulationLoop is in the lane changing phase More...
 
static double gDefaultEmergencyDecel
 encoding of the string-option default.emergencydecel More...
 
static double gEmergencyDecelWarningThreshold
 threshold for warning about strong deceleration More...
 
static bool gEmergencyInsert
 
static double gGridlockHighwaysSpeed
 
static bool gHaveEmissions
 Whether emission output of some type is needed (files or GUI) More...
 
static SUMOTime gIgnoreJunctionBlocker
 
static SUMOTime gLaneChangeDuration
 
static double gLateralResolution
 
static bool gLefthand
 Whether lefthand-drive is being simulated. More...
 
static bool gMesoLimitedJunctionControl
 
static MELoopgMesoNet
 mesoscopic simulation infrastructure More...
 
static double gMinorPenalty
 (minimum) time penalty for passing a minor link when routing More...
 
static bool gModelParkingManoeuver
 whether parking simulation includes manoeuver time and any associated lane blocking More...
 
static int gNumSimThreads
 how many threads to use for simulation More...
 
static int gNumThreads
 how many threads to use More...
 
static bool gOmitEmptyEdgesOnDump
 Information whether empty edges shall be written on dump. More...
 
static bool gOverheadWireCurrentLimits
 
static bool gOverheadWireRecuperation
 
static bool gOverheadWireSolver
 
static bool gRemoveGridlocked
 
static bool gSemiImplicitEulerUpdate
 
static SUMOTime gStartupWaitThreshold
 The minimum waiting time before applying startupDelay. More...
 
static bool gStateLoaded
 Information whether a state has been loaded. More...
 
static double gStopTolerance
 The tolerance to apply when matching waiting persons and vehicles. More...
 
static bool gSublane
 whether sublane simulation is enabled (sublane model or continuous lanechanging) More...
 
static SUMOTime gTimeToGridlock
 
static SUMOTime gTimeToGridlockHighways
 
static SUMOTime gTimeToImpatience
 
static SUMOTime gTimeToTeleportBidi
 
static SUMOTime gTimeToTeleportDisconnected
 
static double gTLSPenalty
 scaled (minimum) time penalty for passing a tls link when routing More...
 
static double gTLSYellowMinDecel
 The minimum deceleration at a yellow traffic light (only overruled by emergencyDecel) More...
 
static bool gUnitTests
 whether unit tests are being run More...
 
static bool gUseMesoSim
 
static bool gUseStopEnded
 whether the simulation should replay previous stop times More...
 
static bool gUseStopStarted
 
static bool gUsingInternalLanes
 Information whether the simulation regards internal lanes. More...
 
static SUMOTime gWaitingTimeMemory
 length of memory for waiting times (in millisecs) More...
 
static double gWeightsSeparateTurns
 Whether turning specific weights are estimated (and how much) More...
 

Detailed Description

This class holds some static variables, filled mostly with values coming from the command line or the simulation configuration file. They are stored herein to allow a faster access than from the options container.

Definition at line 46 of file MSGlobals.h.

Field Documentation

◆ gActionStepLength

SUMOTime MSGlobals::gActionStepLength
static

default value for the interval between two action points for MSVehicle (defaults to DELTA_T)

Definition at line 115 of file MSGlobals.h.

Referenced by MSVehicleType::MSVehicleType(), and MSFrame::setMSGlobals().

◆ gCheck4Accidents

bool MSGlobals::gCheck4Accidents
static

information whether the network shall check for collisions

Definition at line 85 of file MSGlobals.h.

Referenced by MSPModel_Striping::moveInDirectionOnLane(), MSNet::postMoveStep(), MSFrame::setMSGlobals(), and MSNet::simulationStep().

◆ gCheckRoutes

◆ gClearState

bool MSGlobals::gClearState
static

whether the simulation is in the process of clearing state (MSNet::clearState)

Definition at line 140 of file MSGlobals.h.

Referenced by MSNet::clearState(), and MSLane::resetPartialOccupation().

◆ gComputeLC

◆ gDefaultEmergencyDecel

double MSGlobals::gDefaultEmergencyDecel
static

encoding of the string-option default.emergencydecel

Definition at line 127 of file MSGlobals.h.

Referenced by MSVehicleType::build(), and MSFrame::setMSGlobals().

◆ gEmergencyDecelWarningThreshold

double MSGlobals::gEmergencyDecelWarningThreshold
static

threshold for warning about strong deceleration

Definition at line 149 of file MSGlobals.h.

Referenced by MSFrame::setMSGlobals(), and MSVehicle::updateState().

◆ gEmergencyInsert

bool MSGlobals::gEmergencyInsert
static

information whether dangerous insertion speeds are permitted

Definition at line 91 of file MSGlobals.h.

Referenced by MSLane::checkFailure(), and MSFrame::setMSGlobals().

◆ gGridlockHighwaysSpeed

double MSGlobals::gGridlockHighwaysSpeed
static

The speed threshold for gTimeToGridlockHighways

Definition at line 63 of file MSGlobals.h.

Referenced by MSLane::executeMovements(), and MSFrame::setMSGlobals().

◆ gHaveEmissions

bool MSGlobals::gHaveEmissions
static

Whether emission output of some type is needed (files or GUI)

Definition at line 178 of file MSGlobals.h.

Referenced by MSDetectorControl::add(), MSBaseVehicle::initDevices(), GUINet::initGUIStructures(), and MSNet::writeOutput().

◆ gIgnoreJunctionBlocker

SUMOTime MSGlobals::gIgnoreJunctionBlocker
static

Vehicles on internal lanes (even partially) with a waiting time that exceeds this threshold no longer block cross-traffic on the junction

Definition at line 82 of file MSGlobals.h.

Referenced by MSLink::getLeaderInfo(), and MSFrame::setMSGlobals().

◆ gLaneChangeDuration

◆ gLateralResolution

◆ gLefthand

◆ gMesoLimitedJunctionControl

bool MSGlobals::gMesoLimitedJunctionControl
static

Information whether limited junction control shall be used

Definition at line 106 of file MSGlobals.h.

Referenced by MESegment::getLinkPenalty(), MESegment::limitedControlOverride(), and MSFrame::setMSGlobals().

◆ gMesoNet

◆ gMinorPenalty

double MSGlobals::gMinorPenalty
static

(minimum) time penalty for passing a minor link when routing

Definition at line 152 of file MSGlobals.h.

Referenced by MSEdge::recalcCache(), and MSFrame::setMSGlobals().

◆ gModelParkingManoeuver

bool MSGlobals::gModelParkingManoeuver
static

◆ gNumSimThreads

◆ gNumThreads

◆ gOmitEmptyEdgesOnDump

bool MSGlobals::gOmitEmptyEdgesOnDump
static

Information whether empty edges shall be written on dump.

Definition at line 49 of file MSGlobals.h.

Referenced by MSFrame::setMSGlobals(), and MSXMLRawOut::writeEdge().

◆ gOverheadWireCurrentLimits

bool MSGlobals::gOverheadWireCurrentLimits
static

Definition at line 124 of file MSGlobals.h.

Referenced by MSFrame::setMSGlobals().

◆ gOverheadWireRecuperation

bool MSGlobals::gOverheadWireRecuperation
static

◆ gOverheadWireSolver

◆ gRemoveGridlocked

bool MSGlobals::gRemoveGridlocked
static

Whether gridlocked vehicles shall be removed instead of teleporting

Definition at line 72 of file MSGlobals.h.

Referenced by MSLane::executeMovements(), MSFrame::setMSGlobals(), and MELoop::teleportVehicle().

◆ gSemiImplicitEulerUpdate

bool MSGlobals::gSemiImplicitEulerUpdate
static

Definition at line 53 of file MSGlobals.h.

Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_LC2013::_wantsChange(), MSVehicle::adaptToJunctionLeader(), MSVehicle::adaptToLeader(), MSCFModel::brakeGap(), MSVehicleType::check(), MSLCM_SL2015::commitManoeuvre(), MSCFModel_KraussOrig1::dawdle(), MSCFModel_Krauss::dawdle2(), MSCFModel_KraussX::dawdleX(), MSCFModel::distAfterTime(), MSVehicle::DriveProcessItem::DriveProcessItem(), MSVehicle::executeMove(), MSCFModel_EIDM::finalizeSpeed(), MSCFModel_Krauss::followSpeed(), MSCFModel_KraussOrig1::followSpeed(), MSCFModel_Rail::followSpeed(), MSCFModel_W99::followSpeed(), MSCFModel::followSpeedTransient(), MSCFModel_EIDM::freeSpeed(), MSCFModel::freeSpeed(), MSCFModel_Rail::freeSpeed(), MSCFModel::gapExtrapolation(), MSVehicle::getArrivalTime(), MSVehicle::getDeltaPos(), LIBSUMO_NAMESPACE::Vehicle::getJunctionFoes(), MSLCM_LC2013::inform(), MSLCM_LC2013::informFollower(), MSLCM_SL2015::informLeader(), MSLCM_LC2013::informLeader(), MSCFModel::insertionFollowSpeed(), MSCFModel_EIDM::insertionFollowSpeed(), MSCFModel::insertionStopSpeed(), MSCFModel_EIDM::insertionStopSpeed(), MSCFModel::maximumSafeFollowSpeed(), MSCFModel_EIDM::maximumSafeFollowSpeed(), MSCFModel_EIDM::maximumSafeStopSpeed(), MSCFModel::maximumSafeStopSpeed(), MSCFModel_Rail::minNextSpeed(), MSCFModel::minNextSpeed(), MSCFModel_IDM::minNextSpeed(), MSCFModel::minNextSpeedEmergency(), MSInstantInductLoop::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSCFModel::passingTime(), MSVehicle::planMoveInternal(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), MSVehicle::processTraCISpeedControl(), MSFrame::setMSGlobals(), MSCFModel::speedAfterTime(), MSCFModel_KraussOrig1::stopSpeed(), and MSVehicle::updateState().

◆ gStartupWaitThreshold

SUMOTime MSGlobals::gStartupWaitThreshold
static

The minimum waiting time before applying startupDelay.

Definition at line 175 of file MSGlobals.h.

Referenced by MSVehicle::executeMove(), and MSFrame::setMSGlobals().

◆ gStateLoaded

◆ gStopTolerance

double MSGlobals::gStopTolerance
static

The tolerance to apply when matching waiting persons and vehicles.

Definition at line 163 of file MSGlobals.h.

Referenced by MSStageDriving::canLeaveVehicle(), MSEdge::getWaitingVehicle(), MSTransportableControl::hasAnyWaiting(), MSTransportableControl::loadAnyWaiting(), and MSFrame::setMSGlobals().

◆ gSublane

◆ gTimeToGridlock

SUMOTime MSGlobals::gTimeToGridlock
static

Information how long the simulation shall wait until it recognizes a vehicle as a grid lock participant

Definition at line 57 of file MSGlobals.h.

Referenced by MELoop::checkCar(), MSLane::executeMovements(), and MSFrame::setMSGlobals().

◆ gTimeToGridlockHighways

SUMOTime MSGlobals::gTimeToGridlockHighways
static

The time to detect grid locks on highways

Definition at line 60 of file MSGlobals.h.

Referenced by MSLane::executeMovements(), and MSFrame::setMSGlobals().

◆ gTimeToImpatience

SUMOTime MSGlobals::gTimeToImpatience
static

Information how long a vehicle must wait for impatience to grow from 0 to 1

Definition at line 75 of file MSGlobals.h.

Referenced by MSBaseVehicle::getImpatience(), and MSFrame::setMSGlobals().

◆ gTimeToTeleportBidi

SUMOTime MSGlobals::gTimeToTeleportBidi
static

The time to wait for teleport on bidi edges

Definition at line 69 of file MSGlobals.h.

Referenced by MSLane::executeMovements(), and MSFrame::setMSGlobals().

◆ gTimeToTeleportDisconnected

SUMOTime MSGlobals::gTimeToTeleportDisconnected
static

The time to wait for teleport on disconected routes

Definition at line 66 of file MSGlobals.h.

Referenced by MSLane::executeMovements(), and MSFrame::setMSGlobals().

◆ gTLSPenalty

double MSGlobals::gTLSPenalty
static

scaled (minimum) time penalty for passing a tls link when routing

Definition at line 154 of file MSGlobals.h.

Referenced by MSTrafficLightLogic::init(), MSTrafficLightLogic::initMesoTLSPenalties(), MSEdge::recalcCache(), and MSFrame::setMSGlobals().

◆ gTLSYellowMinDecel

double MSGlobals::gTLSYellowMinDecel
static

The minimum deceleration at a yellow traffic light (only overruled by emergencyDecel)

Definition at line 166 of file MSGlobals.h.

Referenced by MSVehicle::planMoveInternal(), and MSFrame::setMSGlobals().

◆ gUnitTests

bool MSGlobals::gUnitTests
static

whether unit tests are being run

Definition at line 134 of file MSGlobals.h.

Referenced by MSLane::initRestrictions().

◆ gUseMesoSim

bool MSGlobals::gUseMesoSim
static

Information whether mesosim shall be used

Definition at line 103 of file MSGlobals.h.

Referenced by MSVehicle::Influencer::GapControlState::activate(), NLHandler::addEdgeLaneMeanData(), MSBaseVehicle::addStop(), NLBuilder::build(), NLEdgeControlBuilder::build(), GUIViewTraffic::buildColorRainbow(), NLBuilder::buildDefaultMeanData(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_GLOSA::buildVehicleDevices(), MSDevice_SSM::buildVehicleDevices(), MSDevice_ToC::buildVehicleDevices(), MSDevice_Taxi::cancelCustomer(), MSVehicleType::check(), MSNet::cleanupStatic(), MSNet::clearState(), NLDetectorBuilder::createInductLoop(), GUIDetectorBuilder::createInductLoop(), MSDevice_Taxi::customerArrived(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIEdge::drawGL(), GUILane::drawGL(), GUIBaseVehicle::drawOnPos(), MSE3Collector::enter(), MSActuatedTrafficLightLogic::gapControl(), MSDevice_Tripinfo::generateOutput(), MSStopOut::generateOutputForUnfinished(), GUIEdge::getClickPriority(), GUILane::getClickPriority(), LIBSUMO_NAMESPACE::InductionLoop::getIntervalMeanSpeed(), LIBSUMO_NAMESPACE::InductionLoop::getIntervalOccupancy(), LIBSUMO_NAMESPACE::InductionLoop::getIntervalVehicleIDs(), LIBSUMO_NAMESPACE::InductionLoop::getIntervalVehicleNumber(), LIBSUMO_NAMESPACE::InductionLoop::getLastIntervalMeanSpeed(), LIBSUMO_NAMESPACE::InductionLoop::getLastIntervalOccupancy(), LIBSUMO_NAMESPACE::InductionLoop::getLastIntervalVehicleIDs(), LIBSUMO_NAMESPACE::InductionLoop::getLastIntervalVehicleNumber(), MSEdge::getMeanSpeed(), MSEdge::getMeanSpeedBike(), GUISUMOViewParent::getObjectIDs(), MSEdge::getOccupancy(), GUIEdge::getPopUpMenu(), MSEdge::getVehicles(), MSEdge::getWaitingSeconds(), GUILane::GUILane(), MSVehicleControl::handleTriggeredDepart(), MSIdling_Stop::idle(), MSMeanData::init(), NLBuilder::init(), MSTrafficLightLogic::init(), MSTrafficLightLogic::initMesoTLSPenalties(), MSNet::initStatic(), NLHandler::initTrafficLightLogic(), MSBaseVehicle::insertStop(), MSEdge::insertVehicle(), MSEdge::isEmpty(), MSE3Collector::leave(), MSDevice_Tripinfo::loadState(), MSDevice_Vehroutes::loadState(), MSDevice_Tripinfo::lowAcceleration(), MSNet::MSNet(), MSRouteProbe::MSRouteProbe(), MSTriggeredRerouter::MSTriggeredRerouter(), MSStateHandler::myStartElement(), MSCalibrator::myStartElement(), MSDevice_Transportable::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSDevice_Vehroutes::notifyEnter(), MSDevice_ElecHybrid::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSMeanData::MeanDataValues::notifyLeave(), MSMeanData_Net::MSLaneMeanDataValues::notifyLeave(), MSDevice_Transportable::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), GUIViewTraffic::onGamingClick(), MSLink::opened(), NLTriggerBuilder::parseAndBuildCalibrator(), MSNet::postMoveStep(), MSEdge::rebuildAllowedLanes(), MSEdge::recalcCache(), MSBaseVehicle::replaceStop(), MSRailSignal::DriveWay::reserve(), MSMeanData::resetOnly(), GUILoadThread::run(), MSStateHandler::saveState(), MSDevice_Tripinfo::saveState(), MSDevice_Vehroutes::saveState(), MSStageTrip::setArrived(), GUILane::setColor(), MSLane::setMaxSpeed(), MSFrame::setMSGlobals(), GUITriggeredRerouter::shiftProbs(), MSNet::simulationStep(), GUILane::splitAtSegments(), MSStopOut::stopEnded(), TraCIServer::TraCIServer(), MSDelayBasedTrafficLightLogic::trySwitch(), MSEdge::updateMesoType(), MSBatteryExport::write(), MSEmissionExport::write(), MSMeanData::writeAggregated(), MSMeanData::writeEdge(), MSXMLRawOut::writeEdge(), MSDevice_Vehroutes::writeOutput(), MSXMLRawOut::writeVehicle(), MSE3Collector::writeXMLOutput(), and MSNet::~MSNet().

◆ gUseStopEnded

bool MSGlobals::gUseStopEnded
static

whether the simulation should replay previous stop times

Definition at line 130 of file MSGlobals.h.

Referenced by MSBaseVehicle::addStop(), MEVehicle::checkStop(), GUIBaseVehicle::drawStopLabels(), MSStop::getMinDuration(), MSStop::getUntil(), MSFrame::setMSGlobals(), and MSStopOut::stopEnded().

◆ gUseStopStarted

bool MSGlobals::gUseStopStarted
static

Definition at line 131 of file MSGlobals.h.

Referenced by MSFrame::setMSGlobals(), and MSVehicle::slowDownForSchedule().

◆ gUsingInternalLanes

◆ gWaitingTimeMemory

SUMOTime MSGlobals::gWaitingTimeMemory
static

length of memory for waiting times (in millisecs)

Definition at line 112 of file MSGlobals.h.

Referenced by GUIVehicle::getParameterWindow(), MSVehicle::getWaitingTime(), and MSFrame::setMSGlobals().

◆ gWeightsSeparateTurns

double MSGlobals::gWeightsSeparateTurns
static

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