Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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)
 
static bool gCheck4Accidents
 
static bool gCheckRoutes
 
static bool gClearState
 whether the simulation is in the process of clearing state (MSNet::clearState)
 
static bool gComputeLC
 whether the simulationLoop is in the lane changing phase
 
static double gDefaultEmergencyDecel
 encoding of the string-option default.emergencydecel
 
static double gEmergencyDecelWarningThreshold
 threshold for warning about strong deceleration
 
static bool gEmergencyInsert
 
static double gGridlockHighwaysSpeed
 
static bool gHaveEmissions
 Whether emission output of some type is needed (files or GUI)
 
static SUMOTime gIgnoreJunctionBlocker
 
static int gInsertionChecks
 The default value for insertion checks.
 
static SUMOTime gLaneChangeDuration
 
static double gLateralResolution
 
static bool gLefthand
 Whether lefthand-drive is being simulated.
 
static bool gMesoLimitedJunctionControl
 
static MELoopgMesoNet
 mesoscopic simulation infrastructure
 
static double gMinorPenalty
 (minimum) time penalty for passing a minor link when routing
 
static bool gModelParkingManoeuver
 whether parking simulation includes manoeuver time and any associated lane blocking
 
static int gNumSimThreads
 how many threads to use for simulation
 
static int gNumThreads
 how many threads to use
 
static bool gOmitEmptyEdgesOnDump
 Information whether empty edges shall be written on dump.
 
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.
 
static bool gStateLoaded
 Information whether a state has been loaded.
 
static double gStopTolerance
 The tolerance to apply when matching waiting persons and vehicles.
 
static bool gSublane
 whether sublane simulation is enabled (sublane model or continuous lanechanging)
 
static SUMOTime gTimeToGridlock
 
static SUMOTime gTimeToGridlockHighways
 
static SUMOTime gTimeToImpatience
 
static SUMOTime gTimeToTeleportBidi
 
static SUMOTime gTimeToTeleportDisconnected
 
static SUMOTime gTimeToTeleportRSDeadlock
 
static double gTLSPenalty
 scaled (minimum) time penalty for passing a tls link when routing
 
static double gTLSYellowMinDecel
 The minimum deceleration at a yellow traffic light (only overruled by emergencyDecel)
 
static double gTurnaroundPenalty
 (minimum) time penalty for passing a turnaround link when routing
 
static bool gUnitTests
 whether unit tests are being run
 
static bool gUseMesoSim
 
static bool gUseStopEnded
 whether the simulation should replay previous stop times
 
static bool gUseStopStarted
 
static bool gUsingInternalLanes
 Information whether the simulation regards internal lanes.
 
static SUMOTime gWaitingTimeMemory
 length of memory for waiting times (in millisecs)
 
static double gWeightsSeparateTurns
 Whether turning specific weights are estimated (and how much)
 

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 118 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 88 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 143 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 130 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 152 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 94 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 183 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 85 of file MSGlobals.h.

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

◆ gInsertionChecks

int MSGlobals::gInsertionChecks
static

The default value for insertion checks.

Definition at line 186 of file MSGlobals.h.

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

◆ gLaneChangeDuration

◆ gLateralResolution

◆ gLefthand

◆ gMesoLimitedJunctionControl

bool MSGlobals::gMesoLimitedJunctionControl
static

Information whether limited junction control shall be used

Definition at line 109 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 155 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 127 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 75 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::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 180 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 168 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 78 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 MELoop::checkCar(), MSLane::executeMovements(), and MSFrame::setMSGlobals().

◆ gTimeToTeleportRSDeadlock

SUMOTime MSGlobals::gTimeToTeleportRSDeadlock
static

The time to wait for teleport when rail signals cause deadlock

Definition at line 72 of file MSGlobals.h.

Referenced by MSRailSignal::constraintsAllow(), MSLane::executeMovements(), MSDriveWay::foeDriveWayOccupied(), MSRailSignal::hasInsertionConstraint(), and MSFrame::setMSGlobals().

◆ gTLSPenalty

double MSGlobals::gTLSPenalty
static

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

Definition at line 157 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 171 of file MSGlobals.h.

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

◆ gTurnaroundPenalty

double MSGlobals::gTurnaroundPenalty
static

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

Definition at line 159 of file MSGlobals.h.

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

◆ gUnitTests

bool MSGlobals::gUnitTests
static

whether unit tests are being run

Definition at line 137 of file MSGlobals.h.

Referenced by MSLane::initRestrictions().

◆ gUseMesoSim

bool MSGlobals::gUseMesoSim
static

Information whether mesosim shall be used

Definition at line 106 of file MSGlobals.h.

Referenced by MSVehicle::Influencer::GapControlState::activate(), NLHandler::addEdgeLaneMeanData(), MSBaseVehicle::addStop(), NLBuilder::build(), NLEdgeControlBuilder::build(), GUIViewTraffic::buildColorRainbow(), NLBuilder::buildDefaultMeanData(), MSDriveWay::buildRoute(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_GLOSA::buildVehicleDevices(), MSDevice_SSM::buildVehicleDevices(), MSDevice_ToC::buildVehicleDevices(), MSDevice_Taxi::cancelCustomer(), MSVehicleType::check(), MSNet::cleanupStatic(), MSNet::clearState(), MSDriveWay::conflictLaneOccupied(), 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(), MSDriveWay::hasJoin(), 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(), MSDriveWay::notifyEnter(), MSDevice_ElecHybrid::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSMeanData::MeanDataValues::notifyLeave(), MSMeanData_Net::MSLaneMeanDataValues::notifyLeave(), MSDriveWay::notifyLeave(), MSDriveWay::notifyLeaveBack(), MSDevice_Transportable::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), GUIViewTraffic::onGamingClick(), MSLink::opened(), NLTriggerBuilder::parseAndBuildCalibrator(), MSNet::postMoveStep(), MSEdge::rebuildAllowedLanes(), MSEdge::recalcCache(), MSBaseVehicle::replaceStop(), MSStageTrip::reroute(), MSBaseVehicle::reroute(), MSMeanData::resetOnly(), GUILoadThread::run(), MSStateHandler::saveState(), MSDevice_Tripinfo::saveState(), MSDevice_Vehroutes::saveState(), GUILane::setColor(), MSLane::setMaxSpeed(), MSFrame::setMSGlobals(), GUITriggeredRerouter::shiftProbs(), MSNet::simulationStep(), GUILane::splitAtSegments(), MSStopOut::stopEnded(), TraCIServer::TraCIServer(), MSDelayBasedTrafficLightLogic::trySwitch(), MSEdge::updateMesoType(), MSDevice_Taxi::updateMove(), 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 133 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

◆ gUsingInternalLanes

◆ gWaitingTimeMemory

SUMOTime MSGlobals::gWaitingTimeMemory
static

length of memory for waiting times (in millisecs)

Definition at line 115 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: