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 /****************************************************************************/
17 // Some static variables for faster access
18 /****************************************************************************/
19 #ifndef MSGlobals_h
20 #define MSGlobals_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <map>
29 #include <utils/common/SUMOTime.h>
30 
31 
32 // ===========================================================================
33 // class declarations
34 // ===========================================================================
35 class MELoop;
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
48 class MSGlobals {
49 public:
51  static bool gOmitEmptyEdgesOnDump;
52 
53  /* Allows switching between time step integration methods
54  * "Semi-Implicit Euler" (default) and the ballistic update rule. */
56 
60 
63 
66 
68  static bool gUsingInternalLanes;
69 
73 
75  static bool gCheck4Accidents;
76 
78  static bool gCheckRoutes;
79 
82 
84  static double gLateralResolution;
85 
87  static bool gStateLoaded;
88 
90  static bool gUseMesoSim;
91 
94 
96  static bool gMesoOvertaking;
97 
99  static double gMesoTLSPenalty;
100 
103 
105  static MELoop* gMesoNet;
106 
109 
112 
114  static double gDefaultEmergencyDecel;
115 
117  static bool gUnitTests;
118 
120  static bool gComputeLC;
121 
123  static int gNumSimThreads;
124 
126  static int gNumThreads;
127 
130 
132  static double gMinorPenalty;
133 
136 
138  static bool gSublane;
139 
141  static double gStopTolerance;
142 };
143 
144 
145 #endif
146 
147 /****************************************************************************/
148 
SUMOTime.h
MSGlobals::gComputeLC
static bool gComputeLC
whether the simulationLoop is in the lane changing phase
Definition: MSGlobals.h:120
MSGlobals::gStateLoaded
static bool gStateLoaded
Information whether a state has been loaded.
Definition: MSGlobals.h:87
MSGlobals::gMinorPenalty
static double gMinorPenalty
time penalty for passing a minor link when routing
Definition: MSGlobals.h:132
MSGlobals::gNumSimThreads
static int gNumSimThreads
how many threads to use for simulation
Definition: MSGlobals.h:123
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
MSGlobals::gUseMesoSim
static bool gUseMesoSim
Definition: MSGlobals.h:90
MSGlobals
Definition: MSGlobals.h:48
MSGlobals::gEmergencyDecelWarningThreshold
static double gEmergencyDecelWarningThreshold
treshold for warning about strong deceleration
Definition: MSGlobals.h:129
MSGlobals::gLateralResolution
static double gLateralResolution
Definition: MSGlobals.h:84
MSGlobals::gNumThreads
static int gNumThreads
how many threads to use
Definition: MSGlobals.h:126
MSGlobals::gMesoOvertaking
static bool gMesoOvertaking
Definition: MSGlobals.h:96
MELoop
The main mesocopic simulation loop.
Definition: MELoop.h:48
MSGlobals::gMesoTLSPenalty
static double gMesoTLSPenalty
Definition: MSGlobals.h:99
MSGlobals::gCheck4Accidents
static bool gCheck4Accidents
Definition: MSGlobals.h:75
MSGlobals::gDefaultEmergencyDecel
static double gDefaultEmergencyDecel
encoding of the string-option default.emergencydecel
Definition: MSGlobals.h:114
MSGlobals::gMesoMinorPenalty
static SUMOTime gMesoMinorPenalty
Definition: MSGlobals.h:102
MSGlobals::gIgnoreJunctionBlocker
static SUMOTime gIgnoreJunctionBlocker
Definition: MSGlobals.h:72
MSGlobals::gModelParkingManoeuver
static bool gModelParkingManoeuver
whether parking simulation includes manoeuver time and any associated lane blocking
Definition: MSGlobals.h:135
MSGlobals::gCheckRoutes
static bool gCheckRoutes
Definition: MSGlobals.h:78
MSGlobals::gActionStepLength
static SUMOTime gActionStepLength
default value for the interval between two action points for MSVehicle (defaults to DELTA_T)
Definition: MSGlobals.h:111
MSGlobals::gUsingInternalLanes
static bool gUsingInternalLanes
Information whether the simulation regards internal lanes.
Definition: MSGlobals.h:68
MSGlobals::gTimeToImpatience
static SUMOTime gTimeToImpatience
Definition: MSGlobals.h:65
MSGlobals::gUnitTests
static bool gUnitTests
whether unit tests are being run
Definition: MSGlobals.h:117
MSGlobals::gMesoNet
static MELoop * gMesoNet
mesoscopic simulation infrastructure
Definition: MSGlobals.h:105
MSGlobals::gTimeToGridlock
static SUMOTime gTimeToGridlock
Definition: MSGlobals.h:59
MSGlobals::gWaitingTimeMemory
static SUMOTime gWaitingTimeMemory
length of memory for waiting times (in millisecs)
Definition: MSGlobals.h:108
MSGlobals::gStopTolerance
static double gStopTolerance
The tolerance to apply when matching waiting persons and vehicles.
Definition: MSGlobals.h:141
config.h
MSGlobals::gMesoLimitedJunctionControl
static bool gMesoLimitedJunctionControl
Definition: MSGlobals.h:93
MSGlobals::gLaneChangeDuration
static SUMOTime gLaneChangeDuration
Definition: MSGlobals.h:81
MSGlobals::gSemiImplicitEulerUpdate
static bool gSemiImplicitEulerUpdate
Definition: MSGlobals.h:55
MSGlobals::gOmitEmptyEdgesOnDump
static bool gOmitEmptyEdgesOnDump
Information whether empty edges shall be written on dump.
Definition: MSGlobals.h:51
MSGlobals::gSublane
static bool gSublane
whether sublane simulation is enabled (sublane model or continuous lanechanging)
Definition: MSGlobals.h:138
MSGlobals::gTimeToGridlockHighways
static SUMOTime gTimeToGridlockHighways
Definition: MSGlobals.h:62