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.dev/sumo
3 // Copyright (C) 2003-2024 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
21 // Some static variables for faster access
22 /****************************************************************************/
23 #pragma once
24 #include <config.h>
25 
26 #include <map>
27 #include <utils/common/SUMOTime.h>
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class MELoop;
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
46 class MSGlobals {
47 public:
49  static bool gOmitEmptyEdgesOnDump;
50 
51  /* Allows switching between time step integration methods
52  * "Semi-Implicit Euler" (default) and the ballistic update rule. */
54 
58 
61 
63  static double gGridlockHighwaysSpeed;
64 
67 
70 
72  static bool gRemoveGridlocked;
73 
76 
78  static bool gUsingInternalLanes;
79 
83 
85  static bool gCheck4Accidents;
86 
88  static bool gCheckRoutes;
89 
91  static bool gEmergencyInsert;
92 
95 
97  static double gLateralResolution;
98 
100  static bool gStateLoaded;
101 
103  static bool gUseMesoSim;
104 
107 
109  static MELoop* gMesoNet;
110 
113 
116 
117  // whether Kirchhoff's laws are used for solving overhead wire circuit
118  static bool gOverheadWireSolver;
119 
120  // whether recuperation into the overhead wire is allowed
122 
123  // whether traction substation current limits are taken into account when solving the overhead wire circuit
125 
127  static double gDefaultEmergencyDecel;
128 
130  static bool gUseStopEnded;
131  static bool gUseStopStarted;
132 
134  static bool gUnitTests;
135 
137  static bool gComputeLC;
138 
140  static bool gClearState;
141 
143  static int gNumSimThreads;
144 
146  static int gNumThreads;
147 
150 
152  static double gMinorPenalty;
154  static double gTLSPenalty;
156  static double gTurnaroundPenalty;
157 
160 
162  static bool gSublane;
163 
165  static double gStopTolerance;
166 
168  static double gTLSYellowMinDecel;
169 
171  static bool gLefthand;
172 
174  static double gWeightsSeparateTurns;
175 
178 
180  static bool gHaveEmissions;
181 };
long long int SUMOTime
Definition: GUI.h:35
The main mesocopic simulation loop.
Definition: MELoop.h:47
static bool gOverheadWireCurrentLimits
Definition: MSGlobals.h:124
static double gStopTolerance
The tolerance to apply when matching waiting persons and vehicles.
Definition: MSGlobals.h:165
static SUMOTime gTimeToTeleportDisconnected
Definition: MSGlobals.h:66
static bool gModelParkingManoeuver
whether parking simulation includes manoeuver time and any associated lane blocking
Definition: MSGlobals.h:159
static bool gUseMesoSim
Definition: MSGlobals.h:103
static bool gUseStopStarted
Definition: MSGlobals.h:131
static double gMinorPenalty
(minimum) time penalty for passing a minor link when routing
Definition: MSGlobals.h:152
static SUMOTime gTimeToGridlockHighways
Definition: MSGlobals.h:60
static bool gCheckRoutes
Definition: MSGlobals.h:88
static double gGridlockHighwaysSpeed
Definition: MSGlobals.h:63
static double gWeightsSeparateTurns
Whether turning specific weights are estimated (and how much)
Definition: MSGlobals.h:174
static double gTLSPenalty
scaled (minimum) time penalty for passing a tls link when routing
Definition: MSGlobals.h:154
static SUMOTime gStartupWaitThreshold
The minimum waiting time before applying startupDelay.
Definition: MSGlobals.h:177
static bool gOverheadWireRecuperation
Definition: MSGlobals.h:121
static bool gRemoveGridlocked
Definition: MSGlobals.h:72
static double gDefaultEmergencyDecel
encoding of the string-option default.emergencydecel
Definition: MSGlobals.h:127
static double gTLSYellowMinDecel
The minimum deceleration at a yellow traffic light (only overruled by emergencyDecel)
Definition: MSGlobals.h:168
static SUMOTime gTimeToTeleportBidi
Definition: MSGlobals.h:69
static double gTurnaroundPenalty
(minimum) time penalty for passing a turnaround link when routing
Definition: MSGlobals.h:156
static bool gOverheadWireSolver
Definition: MSGlobals.h:118
static MELoop * gMesoNet
mesoscopic simulation infrastructure
Definition: MSGlobals.h:109
static double gLateralResolution
Definition: MSGlobals.h:97
static bool gSemiImplicitEulerUpdate
Definition: MSGlobals.h:53
static SUMOTime gTimeToImpatience
Definition: MSGlobals.h:75
static bool gStateLoaded
Information whether a state has been loaded.
Definition: MSGlobals.h:100
static bool gCheck4Accidents
Definition: MSGlobals.h:85
static bool gClearState
whether the simulation is in the process of clearing state (MSNet::clearState)
Definition: MSGlobals.h:140
static bool gComputeLC
whether the simulationLoop is in the lane changing phase
Definition: MSGlobals.h:137
static bool gEmergencyInsert
Definition: MSGlobals.h:91
static bool gHaveEmissions
Whether emission output of some type is needed (files or GUI)
Definition: MSGlobals.h:180
static int gNumSimThreads
how many threads to use for simulation
Definition: MSGlobals.h:143
static bool gLefthand
Whether lefthand-drive is being simulated.
Definition: MSGlobals.h:171
static bool gOmitEmptyEdgesOnDump
Information whether empty edges shall be written on dump.
Definition: MSGlobals.h:49
static SUMOTime gIgnoreJunctionBlocker
Definition: MSGlobals.h:82
static bool gSublane
whether sublane simulation is enabled (sublane model or continuous lanechanging)
Definition: MSGlobals.h:162
static SUMOTime gLaneChangeDuration
Definition: MSGlobals.h:94
static bool gMesoLimitedJunctionControl
Definition: MSGlobals.h:106
static bool gUseStopEnded
whether the simulation should replay previous stop times
Definition: MSGlobals.h:130
static SUMOTime gActionStepLength
default value for the interval between two action points for MSVehicle (defaults to DELTA_T)
Definition: MSGlobals.h:115
static bool gUnitTests
whether unit tests are being run
Definition: MSGlobals.h:134
static SUMOTime gWaitingTimeMemory
length of memory for waiting times (in millisecs)
Definition: MSGlobals.h:112
static double gEmergencyDecelWarningThreshold
threshold for warning about strong deceleration
Definition: MSGlobals.h:149
static bool gUsingInternalLanes
Information whether the simulation regards internal lanes.
Definition: MSGlobals.h:78
static int gNumThreads
how many threads to use
Definition: MSGlobals.h:146
static SUMOTime gTimeToGridlock
Definition: MSGlobals.h:57