Eclipse SUMO - Simulation of Urban MObility
MSGlobals.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2003-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
18 // Some static variables for faster access
19 /****************************************************************************/
20 #ifndef MSGlobals_h
21 #define MSGlobals_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <config.h>
28 
29 #include <map>
30 #include <utils/common/SUMOTime.h>
31 
32 
33 // ===========================================================================
34 // class declarations
35 // ===========================================================================
36 class MELoop;
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
49 class MSGlobals {
50 public:
52  static bool gOmitEmptyEdgesOnDump;
53 
54  /* Allows switching between time step integration methods
55  * "Semi-Implicit Euler" (default) and the ballistic update rule. */
57 
61 
64 
67 
69  static bool gUsingInternalLanes;
70 
74 
76  static bool gCheck4Accidents;
77 
79  static bool gCheckRoutes;
80 
83 
85  static double gLateralResolution;
86 
88  static bool gStateLoaded;
89 
91  static bool gUseMesoSim;
92 
95 
97  static bool gMesoOvertaking;
98 
100  static double gMesoTLSPenalty;
101 
104 
106  static MELoop* gMesoNet;
107 
110 
113 
115  static double gDefaultEmergencyDecel;
116 
118  static bool gUnitTests;
119 
121  static bool gComputeLC;
122 
124  static int gNumSimThreads;
125 
128 
130  static double gMinorPenalty;
131 
132 };
133 
134 
135 #endif
136 
137 /****************************************************************************/
138 
SUMOTime.h
MSGlobals::gComputeLC
static bool gComputeLC
whether the simulationLoop is in the lane changing phase
Definition: MSGlobals.h:121
MSGlobals::gStateLoaded
static bool gStateLoaded
Information whether a state has been loaded.
Definition: MSGlobals.h:88
MSGlobals::gMinorPenalty
static double gMinorPenalty
time penalty for passing a minor link when routing
Definition: MSGlobals.h:130
MSGlobals::gNumSimThreads
static int gNumSimThreads
how many threads to use for simulation
Definition: MSGlobals.h:124
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:35
MSGlobals::gUseMesoSim
static bool gUseMesoSim
Definition: MSGlobals.h:91
MSGlobals
Definition: MSGlobals.h:49
MSGlobals::gEmergencyDecelWarningThreshold
static double gEmergencyDecelWarningThreshold
treshold for warning about strong deceleration
Definition: MSGlobals.h:127
MSGlobals::gLateralResolution
static double gLateralResolution
Definition: MSGlobals.h:85
MSGlobals::gMesoOvertaking
static bool gMesoOvertaking
Definition: MSGlobals.h:97
MELoop
The main mesocopic simulation loop.
Definition: MELoop.h:49
MSGlobals::gMesoTLSPenalty
static double gMesoTLSPenalty
Definition: MSGlobals.h:100
MSGlobals::gCheck4Accidents
static bool gCheck4Accidents
Definition: MSGlobals.h:76
MSGlobals::gDefaultEmergencyDecel
static double gDefaultEmergencyDecel
encoding of the string-option default.emergencydecel
Definition: MSGlobals.h:115
MSGlobals::gMesoMinorPenalty
static SUMOTime gMesoMinorPenalty
Definition: MSGlobals.h:103
MSGlobals::gIgnoreJunctionBlocker
static SUMOTime gIgnoreJunctionBlocker
Definition: MSGlobals.h:73
MSGlobals::gCheckRoutes
static bool gCheckRoutes
Definition: MSGlobals.h:79
MSGlobals::gActionStepLength
static SUMOTime gActionStepLength
default value for the interval between two action points for MSVehicle (defaults to DELTA_T)
Definition: MSGlobals.h:112
MSGlobals::gUsingInternalLanes
static bool gUsingInternalLanes
Information whether the simulation regards internal lanes.
Definition: MSGlobals.h:69
MSGlobals::gTimeToImpatience
static SUMOTime gTimeToImpatience
Definition: MSGlobals.h:66
MSGlobals::gUnitTests
static bool gUnitTests
whether unit tests are being run
Definition: MSGlobals.h:118
MSGlobals::gMesoNet
static MELoop * gMesoNet
mesoscopic simulation infrastructure
Definition: MSGlobals.h:106
MSGlobals::gTimeToGridlock
static SUMOTime gTimeToGridlock
Definition: MSGlobals.h:60
MSGlobals::gWaitingTimeMemory
static SUMOTime gWaitingTimeMemory
length of memory for waiting times (in millisecs)
Definition: MSGlobals.h:109
config.h
MSGlobals::gMesoLimitedJunctionControl
static bool gMesoLimitedJunctionControl
Definition: MSGlobals.h:94
MSGlobals::gLaneChangeDuration
static SUMOTime gLaneChangeDuration
Definition: MSGlobals.h:82
MSGlobals::gSemiImplicitEulerUpdate
static bool gSemiImplicitEulerUpdate
Definition: MSGlobals.h:56
MSGlobals::gOmitEmptyEdgesOnDump
static bool gOmitEmptyEdgesOnDump
Information whether empty edges shall be written on dump.
Definition: MSGlobals.h:52
MSGlobals::gTimeToGridlockHighways
static SUMOTime gTimeToGridlockHighways
Definition: MSGlobals.h:63