Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/microsim/MSGlobals.cpp
185785 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2003-2025 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
/****************************************************************************/
14
/// @file MSGlobals.cpp
15
/// @author Daniel Krajzewicz
16
/// @author Michael Behrisch
17
/// @author Jakob Erdmann
18
/// @date late summer 2003
19
///
20
// Some static variables for faster access
21
/****************************************************************************/
22
#include <config.h>
23
24
#include "MSGlobals.h"
25
26
27
// ===========================================================================
28
// static member variable definitions
29
// ===========================================================================
30
bool MSGlobals::gOmitEmptyEdgesOnDump;
31
32
bool MSGlobals::gUsingInternalLanes;
33
SUMOTime MSGlobals::gIgnoreJunctionBlocker;
34
35
SUMOTime MSGlobals::gTimeToGridlock;
36
SUMOTime MSGlobals::gTimeToGridlockHighways;
37
double MSGlobals::gGridlockHighwaysSpeed;
38
SUMOTime MSGlobals::gTimeToTeleportDisconnected;
39
SUMOTime MSGlobals::gTimeToTeleportBidi;
40
SUMOTime MSGlobals::gTimeToTeleportRSDeadlock;
41
bool MSGlobals::gRemoveGridlocked;
42
43
SUMOTime MSGlobals::gTimeToImpatience;
44
45
bool MSGlobals::gCheck4Accidents;
46
47
bool MSGlobals::gCheckRoutes;
48
bool MSGlobals::gEmergencyInsert;
49
50
SUMOTime MSGlobals::gLaneChangeDuration;
51
52
double MSGlobals::gLateralResolution(-1.); // default for unitTest
53
54
bool MSGlobals::gStateLoaded;
55
bool MSGlobals::gUseMesoSim;
56
bool MSGlobals::gMesoLimitedJunctionControl;
57
MELoop* MSGlobals::gMesoNet;
58
59
bool MSGlobals::gOverheadWireSolver;
60
bool MSGlobals::gOverheadWireRecuperation;
61
bool MSGlobals::gOverheadWireCurrentLimits;
62
63
bool MSGlobals::gSemiImplicitEulerUpdate(true); // default for unitTest
64
65
SUMOTime MSGlobals::gWaitingTimeMemory;
66
67
SUMOTime MSGlobals::gActionStepLength;
68
69
double MSGlobals::gDefaultEmergencyDecel(-1.); // default for unitTest
70
71
bool MSGlobals::gUseStopEnded(false);
72
bool MSGlobals::gUseStopStarted(false);
73
74
bool MSGlobals::gUnitTests(false);
75
76
bool MSGlobals::gComputeLC;
77
78
bool MSGlobals::gClearState(false);
79
80
int MSGlobals::gNumSimThreads;
81
int MSGlobals::gNumThreads;
82
83
double MSGlobals::gEmergencyDecelWarningThreshold(1);
84
85
double MSGlobals::gMinorPenalty(0);
86
double MSGlobals::gTLSPenalty(0);
87
double MSGlobals::gTurnaroundPenalty(0);
88
89
bool MSGlobals::gModelParkingManoeuver;
90
91
bool MSGlobals::gSublane(false);
92
93
double MSGlobals::gStopTolerance;
94
double MSGlobals::gTLSYellowMinDecel;
95
96
bool MSGlobals::gLefthand(false);
97
98
double MSGlobals::gWeightsSeparateTurns(0);
99
100
SUMOTime MSGlobals::gStartupWaitThreshold(0);
101
102
bool MSGlobals::gHaveEmissions(false);
103
104
int MSGlobals::gInsertionChecks(0);
105
106
double MSGlobals::gMaxRailSignalBlockLength(2e4);
107
108
/****************************************************************************/
109
110