Eclipse SUMO - Simulation of Urban MObility
GUINet Class Reference

A MSNet extended by some values for usage within the gui. More...

#include <GUINet.h>

Inheritance diagram for GUINet:
Collaboration diagram for GUINet:

Data Structures

class  DiscoverAttributes
 class for discovering edge attributes More...
 
class  EdgeFloatTimeLineRetriever_GUI
 

Public Types

typedef IntermodalRouter< MSEdge, MSLane, MSJunction, SUMOVehicleMSIntermodalRouter
 
typedef PedestrianRouter< MSEdge, MSLane, MSJunction, MSVehicleMSPedestrianRouter
 
enum  SimulationState {
  SIMSTATE_LOADING, SIMSTATE_RUNNING, SIMSTATE_END_STEP_REACHED, SIMSTATE_NO_FURTHER_VEHICLES,
  SIMSTATE_CONNECTION_CLOSED, SIMSTATE_ERROR_IN_SIM, SIMSTATE_INTERRUPTED, SIMSTATE_TOO_MANY_TELEPORTS
}
 Possible states of a simulation - running or stopped with different reasons. More...
 

Public Member Functions

void addRestriction (const std::string &id, const SUMOVehicleClass svc, const double speed)
 Adds a restriction for an edge type. More...
 
void closeBuilding (const OptionsCont &oc, MSEdgeControl *edges, MSJunctionControl *junctions, SUMORouteLoaderControl *routeLoaders, MSTLLogicControl *tlc, std::vector< SUMOTime > stateDumpTimes, std::vector< std::string > stateDumpFiles, bool hasInternalLinks, bool hasNeighs, bool lefthand, double version)
 Closes the network's building process. More...
 
void closeSimulation (SUMOTime start)
 Closes the simulation (all files, connections, etc.) More...
 
virtual void drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const
 Draws additional, user-triggered visualisations. More...
 
void drawName (const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const
 draw name of item More...
 
const std::string generateStatistics (SUMOTime start)
 Writes performance output and running vehicle stats. More...
 
SUMOTime getCurrentTimeStep () const
 Returns the current simulation step. More...
 
MSIntermodalRoutergetIntermodalRouter (const int rngIndex, const int routingMode=0, const MSEdgeVector &prohibited=MSEdgeVector()) const
 
double getNetworkVersion () const
 return the network version More...
 
MSPedestrianRoutergetPedestrianRouter (const int rngIndex, const MSEdgeVector &prohibited=MSEdgeVector()) const
 
const std::map< SUMOVehicleClass, double > * getRestrictions (const std::string &id) const
 Returns the restrictions for an edge type If no restrictions are present, 0 is returned. More...
 
SUMOAbstractRouter< MSEdge, SUMOVehicle > & getRouterEffort (const int rngIndex, const MSEdgeVector &prohibited=MSEdgeVector()) const
 
SUMOAbstractRouter< MSEdge, SUMOVehicle > & getRouterTT (const int rngIndex, const MSEdgeVector &prohibited=MSEdgeVector()) const
 
const NamedObjectCont< MSStoppingPlace * > & getStoppingPlaces (SumoXMLTag category) const
 
 GUINet (MSVehicleControl *vc, MSEventControl *beginOfTimestepEvents, MSEventControl *endOfTimestepEvents, MSEventControl *insertionEvents)
 Constructor. More...
 
bool hasBidiEdges () const
 return whether the network contains bidirectional rail edges More...
 
bool hasElevation () const
 return whether the network contains elevation data More...
 
bool hasInternalLinks () const
 return whether the network contains internal links More...
 
bool hasPedestrianNetwork () const
 return whether the network contains walkingareas and crossings More...
 
bool hasPermissions () const
 Returns whether the network has specific vehicle class permissions. More...
 
void interrupt ()
 
bool isGUINet () const override
 Returns whether this is a GUI Net. More...
 
bool isInterrupted () const
 
bool lefthand () const
 return whether the network was built for lefthand traffic More...
 
void loadRoutes ()
 loads routes for the next few steps More...
 
bool logSimulationDuration () const
 Returns whether duration shall be logged. More...
 
virtual void onLeftBtnPress (void *)
 notify object about left click More...
 
virtual void removeActiveAddVisualisation (GUISUMOAbstractView *const, int)
 remove additional user-griggered visualisations More...
 
void setCurrentTimeStep (const SUMOTime step)
 Sets the current simulation step (used by state loading) More...
 
void setPermissionsFound ()
 Labels the network to contain vehicle class permissions. More...
 
SimulationState simulate (SUMOTime start, SUMOTime stop)
 Simulates from timestep start to stop. More...
 
SimulationState simulationState (SUMOTime stopTime) const
 Called after a simulation step, this method returns the current simulation state. More...
 
bool warnOnce (const std::string &typeAndID)
 return whether a warning regarding the given object shall be issued More...
 
void writeChargingStationOutput () const
 write charging station output More...
 
void writeOutput ()
 Write netstate, summary and detector output. More...
 
void writeRailSignalBlocks () const
 write rail signal block output More...
 
 ~GUINet ()
 Destructor. More...
 
inherited from GUIGlObject
GUIGLObjectPopupMenugetPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) override
 Returns an own popup-menu. More...
 
GUIParameterTableWindowgetParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) override
 Returns an own parameter window. More...
 
Boundary getCenteringBoundary () const override
 Returns the boundary to which the view shall be centered in order to show the object. More...
 
void drawGL (const GUIVisualizationSettings &s) const override
 Draws the object. More...
 
const BoundarygetBoundary () const
 returns the bounder of the network More...
 
Position getJunctionPosition (const std::string &name) const
 returns the position of a junction More...
 
bool vehicleExists (const std::string &name) const
 returns the information whether the vehicle still exists More...
 
void guiSimulationStep ()
 Some further steps needed for gui processing. More...
 
void simulationStep ()
 Performs a single simulation step (locking the simulation) More...
 
functions for performance measurements
int getWholeDuration () const
 Returns the duration of the last step (sim+visualisation+idle) (in ms) More...
 
int getSimDuration () const
 Returns the duration of the last step's simulation part (in ms) More...
 
double getRTFactor () const
 Returns the simulation speed as a factor to real time. More...
 
double getUPS () const
 Returns the update per seconds rate. More...
 
double getMeanRTFactor (int duration) const
 Returns the simulation speed as a factor to real time. More...
 
double getMeanUPS () const
 Returns the update per seconds rate. More...
 
int getIdleDuration () const
 Returns the duration of the last step's idle part (in ms) More...
 
void setSimDuration (int val)
 Sets the duration of the last step's simulation part. More...
 
void setIdleDuration (int val)
 Sets the duration of the last step's idle part. More...
 
double getAvgRouteLength () const
 
double getAvgDuration () const
 
double getAvgWaitingTime () const
 
double getAvgTimeLoss () const
 
double getAvgDepartDelay () const
 
double getAvgTripSpeed () const
 
double getAvgWalkRouteLength () const
 
double getAvgWalkDuration () const
 
double getAvgWalkTimeLoss () const
 
MSTransportableControlgetPersonControl () override
 Returns the person control. More...
 
MSTransportableControlgetContainerControl () override
 Returns the container control. More...
 
int getLinkTLID (MSLink *link) const
 
int getLinkTLIndex (MSLink *link) const
 
Output during the simulation
void preSimStepOutput () const
 Prints the current step number. More...
 
void postSimStepOutput () const
 Prints the statistics of the step at its end. More...
 
Retrieval of references to substructures
MSVehicleControlgetVehicleControl ()
 Returns the vehicle control. More...
 
bool hasPersons () const
 Returns whether persons are simulated. More...
 
bool hasContainers () const
 Returns whether containers are simulated. More...
 
MSEdgeControlgetEdgeControl ()
 Returns the edge control. More...
 
MSInsertionControlgetInsertionControl ()
 Returns the insertion control. More...
 
MSDetectorControlgetDetectorControl ()
 Returns the detector control. More...
 
MSTLLogicControlgetTLSControl ()
 Returns the tls logics control. More...
 
MSJunctionControlgetJunctionControl ()
 Returns the junctions control. More...
 
MSEventControlgetBeginOfTimestepEvents ()
 Returns the event control for events executed at the begin of a time step. More...
 
MSEventControlgetEndOfTimestepEvents ()
 Returns the event control for events executed at the end of a time step. More...
 
MSEventControlgetInsertionEvents ()
 Returns the event control for insertion events. More...
 
ShapeContainergetShapeContainer ()
 Returns the shapes container. More...
 
MSDynamicShapeUpdatergetDynamicShapeUpdater ()
 Returns the dynamic shapes updater. More...
 
MSDynamicShapeUpdatermakeDynamicShapeUpdater ()
 Creates and returns a dynamic shapes updater. More...
 
MSEdgeWeightsStoragegetWeightsStorage ()
 Returns the net's internal edge travel times/efforts container. More...
 
Insertion and retrieval of stopping places
bool addStoppingPlace (const SumoXMLTag category, MSStoppingPlace *stop)
 Adds a stopping place. More...
 
MSStoppingPlacegetStoppingPlace (const std::string &id, const SumoXMLTag category) const
 Returns the named stopping place of the given category. More...
 
std::string getStoppingPlaceID (const MSLane *lane, const double pos, const SumoXMLTag category) const
 Returns the stop of the given category close to the given position. More...
 
Atomar getter methods

Returns the full name appearing in the tool tip

Returns
This object's typed id
const std::string & getFullName () const
 
virtual std::string getParentName () const
 Returns the name of the parent object (if any) More...
 
GUIGlID getGlID () const
 Returns the numerical id of the object. More...
 
interfaces to be implemented by derived classes
virtual void removedPopupMenu ()
 notify object about popup menu removal More...
 
virtual GUIParameterTableWindowgetTypeParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)
 Returns an own type parameter window (optional) More...
 
virtual const std::string & getMicrosimID () const
 Returns the id of the object as known to microsim. More...
 
virtual const std::string getOptionalName () const
 Returns the name of the object (default "") More...
 
virtual void setMicrosimID (const std::string &newID)
 Changes the microsimID of the object. More...
 
GUIGlObjectType getType () const
 Returns the type of the object as coded in GUIGlObjectType. More...
 
virtual double getColorValue (const GUIVisualizationSettings &, int) const
 
Parameter table window I/O

Lets this object know a parameter window showing the object's values was opened

Parameters
[in]wThe opened parameter window
void addParameterTable (GUIParameterTableWindow *w)
 
void removeParameterTable (GUIParameterTableWindow *w)
 Lets this object know a parameter window showing the object's values was closed. More...
 

Static Public Member Functions

static void adaptIntermodalRouter (MSIntermodalRouter &router)
 
static void cleanupStatic ()
 Place for static initializations of simulation components (called after successful net build) More...
 
static void clearAll ()
 Clears all dictionaries. More...
 
static double getEffort (const MSEdge *const e, const SUMOVehicle *const v, double t)
 Returns the effort to pass an edge. More...
 
static MSNetgetInstance ()
 Returns the pointer to the unique instance of MSNet (singleton). More...
 
static std::string getStateMessage (SimulationState state)
 Returns the message to show if a certain state occurs. More...
 
static double getTravelTime (const MSEdge *const e, const SUMOVehicle *const v, double t)
 Returns the travel time to pass an edge. More...
 
static bool hasInstance ()
 Returns whether the network was already constructed. More...
 
static void initStatic ()
 Place for static initializations of simulation components (called after successful net build) More...
 

Static Public Attributes

static const GUIGlID INVALID_ID = 0
 
static StringBijection< GUIGlObjectTypeTypeNames
 associates object types with strings More...
 

Protected Member Functions

void buildAdditionalsPopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type)
 build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More...
 
void buildShapePopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type)
 build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More...
 
bool checkBidiEdges ()
 check wether bidirectional edges occur in the network More...
 
bool checkElevation ()
 check all lanes for elevation data More...
 
bool checkWalkingarea ()
 check all lanes for type walkingArea More...
 
helper methods for building popup-menus
void buildPopupHeader (GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true)
 Builds the header. More...
 
void buildCenterPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to center to the object. More...
 
void buildNameCopyPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds entries which allow to copy the name / typed name into the clipboard. More...
 
void buildSelectionPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to (de)select the object. More...
 
void buildShowParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to open the parameter window. More...
 
void buildShowTypeParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to open the type parameter window. More...
 
void buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position. More...
 
void buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true)
 Builds an entry which allows to open the manipulator window. More...
 

Protected Attributes

bool myAmInterrupted
 whether an interrupt occured More...
 
std::unique_ptr< MSDynamicShapeUpdatermyDynamicShapeUpdater
 Updater for dynamic shapes that are tracking traffic objects (ensures removal of shape dynamics when the objects are removed) More...
 
SUMOTime myEdgeDataEndTime
 end of loaded edgeData More...
 
bool myHasBidiEdges
 Whether the network contains bidirectional rail edges. More...
 
bool myHasElevation
 Whether the network contains elevation data. More...
 
bool myHasInternalLinks
 Whether the network contains internal links/lanes/edges. More...
 
bool myHasPedestrianNetwork
 Whether the network contains pedestrian network elements. More...
 
bool myHavePermissions
 Whether the network contains edges which not all vehicles may pass. More...
 
std::map< int, MSIntermodalRouter * > myIntermodalRouter
 
std::pair< bool, NamedRTreemyLanesRTree
 An RTree structure holding lane IDs. More...
 
bool myLefthand
 Whether the network was built for left-hand traffic. More...
 
int myMaxTeleports
 Maximum number of teleports. More...
 
std::map< int, MSPedestrianRouter * > myPedestrianRouter
 
std::map< std::string, std::map< SUMOVehicleClass, double > > myRestrictions
 The vehicle class specific speed restrictions. More...
 
SUMORouteLoaderControlmyRouteLoaders
 Route loader for dynamic loading of routes. More...
 
std::map< int, SUMOAbstractRouter< MSEdge, SUMOVehicle > * > myRouterEffort
 
std::map< int, SUMOAbstractRouter< MSEdge, SUMOVehicle > * > myRouterTT
 
SUMOTime myStep
 Current time step. More...
 
std::map< SumoXMLTag, NamedObjectCont< MSStoppingPlace * > > myStoppingPlaces
 Dictionary of bus / container stops. More...
 
std::vector< VehicleStateListener * > myVehicleStateListeners
 Container for vehicle state listener. More...
 
double myVersion
 the network version More...
 
std::map< std::string, bool > myWarnedOnce
 container to record warnings that shall only be issued once More...
 
Substructures
MSVehicleControlmyVehicleControl
 Controls vehicle building and deletion;. More...
 
MSTransportableControlmyPersonControl
 Controls person building and deletion;. More...
 
MSTransportableControlmyContainerControl
 Controls container building and deletion;. More...
 
MSEdgeControlmyEdges
 Controls edges, performs vehicle movement;. More...
 
MSJunctionControlmyJunctions
 Controls junctions, realizes right-of-way rules;. More...
 
MSTLLogicControlmyLogics
 Controls tls logics, realizes waiting on tls rules;. More...
 
MSInsertionControlmyInserter
 Controls vehicle insertion;. More...
 
MSDetectorControlmyDetectorControl
 Controls detectors;. More...
 
MSEventControlmyBeginOfTimestepEvents
 Controls events executed at the begin of a time step;. More...
 
MSEventControlmyEndOfTimestepEvents
 Controls events executed at the end of a time step;. More...
 
MSEventControlmyInsertionEvents
 Controls insertion events;. More...
 
ShapeContainermyShapeContainer
 A container for geometrical shapes;. More...
 
MSEdgeWeightsStoragemyEdgeWeights
 The net's knowledge about edge efforts/travel times;. More...
 
data needed for computing performance values
bool myLogExecutionTime
 Information whether the simulation duration shall be logged. More...
 
bool myLogStepNumber
 Information whether the number of the simulation step shall be logged. More...
 
long myTraCIStepDuration = 0
 The last simulation step duration. More...
 
long mySimStepDuration = 0
 
long mySimBeginMillis
 The overall simulation duration. More...
 
long long int myVehiclesMoved
 The overall number of vehicle movements. More...
 
long long int myPersonsMoved
 
State output variables
std::vector< SUMOTimemyStateDumpTimes
 Times at which a state shall be written. More...
 
std::vector< std::string > myStateDumpFiles
 The names for the state files. More...
 
SUMOTime myStateDumpPeriod
 The period for writing state. More...
 
std::string myStateDumpPrefix
 name components for periodic state More...
 
std::string myStateDumpSuffix
 

Static Protected Attributes

static MSNetmyInstance = nullptr
 Unique instance of MSNet. More...
 
static const std::string STAGE_EVENTS
 string constants for simstep stages More...
 
static const std::string STAGE_INSERTIONS
 
static const std::string STAGE_LANECHANGE
 
static const std::string STAGE_MOVEMENTS
 

Private Member Functions

std::string createFullName () const
 create full name More...
 

Private Attributes

std::string myFullName
 full name of GL Object More...
 
GUIGlID myGlID
 The numerical id of the object. More...
 
const GUIGlObjectType myGLObjectType
 The type of the object. More...
 
std::string myMicrosimID
 ID of GL object. More...
 
std::set< GUIParameterTableWindow * > myParamWindows
 Parameter table windows which refer to this object. More...
 

Static Private Attributes

static StringBijection< GUIGlObjectType >::Entry GUIGlObjectTypeNamesInitializer []
 LinkStates (Currently unused) More...
 

Friends

class GUITrafficLightLogicWrapper
 

locator-methods

typedef std::map< MSLink *, std::string > Links2LogicMap
 Definition of a link-to-logic-id map. More...
 
typedef std::map< MSTrafficLightLogic *, GUITrafficLightLogicWrapper * > Logics2WrapperMap
 Definition of a traffic light-to-wrapper map. More...
 
class GUIOSGBuilder
 
LayeredRTree myGrid
 The visualization speed-up. More...
 
Boundary myBoundary
 The networks boundary. More...
 
std::vector< GUIEdge * > myEdgeWrapper
 Wrapped MS-edges. More...
 
std::vector< GUIJunctionWrapper * > myJunctionWrapper
 Wrapped MS-junctions. More...
 
std::vector< GUIDetectorWrapper * > myDetectorWrapper
 A detector dictionary. More...
 
Links2LogicMap myLinks2Logic
 The link-to-logic-id map. More...
 
Logics2WrapperMap myLogics2Wrapper
 The traffic light-to-wrapper map. More...
 
int myLastSimDuration
 The step durations (simulation, /*visualisation, *‍/idle) More...
 
int myLastIdleDuration
 
long myLastVehicleMovementCount
 
long myOverallVehicleCount
 
long myOverallSimDuration
 
std::map< std::string, MSEdgeWeightsStorage * > myLoadedEdgeData
 loaded edge data for visualization More...
 
FXMutex myLock
 The mutex used to avoid concurrent updates of the vehicle buffer. More...
 
std::vector< GUIGlIDgetJunctionIDs (bool includeInternal) const
 
std::vector< GUIGlIDgetTLSIDs () const
 Returns the gl-ids of all traffic light logics within the net. More...
 
void initGUIStructures ()
 Initialises gui wrappers. More...
 
SUMORTreegetVisualisationSpeedUp ()
 Returns the RTree used for visualisation speed-up. More...
 
const SUMORTreegetVisualisationSpeedUp () const
 Returns the RTree used for visualisation speed-up. More...
 
GUIVehicleControlgetGUIVehicleControl ()
 Returns the vehicle control. More...
 
GUIMEVehicleControlgetGUIMEVehicleControl ()
 Returns the vehicle control. More...
 
double getEdgeData (const MSEdge *edge, const std::string &attr)
 retrieve loaded edged weight for the given attribute and the current simulation time More...
 
bool loadEdgeData (const std::string &file)
 load edgeData from file More...
 
std::vector< std::string > getEdgeDataAttrs () const
 return list of loaded edgeData attributes More...
 
void lock ()
 grant exclusive access to the simulation state More...
 
void unlock ()
 release exclusive access to the simulation state More...
 
void createTLWrapper (MSTrafficLightLogic *tll) override
 creates a wrapper for the given logic More...
 
bool isSelected (const MSTrafficLightLogic *tll) const override
 return wheter the given logic (or rather it's wrapper) is selected in the GUI More...
 
static GUINetgetGUIInstance ()
 Returns the pointer to the unique instance of GUINet (singleton). More...
 
void initTLMap ()
 Initialises the tl-logic map and wrappers. More...
 

Notification about vehicle state changes

void addVehicleStateListener (VehicleStateListener *listener)
 Adds a vehicle states listener. More...
 
void removeVehicleStateListener (VehicleStateListener *listener)
 Removes a vehicle states listener. More...
 
void informVehicleStateListener (const SUMOVehicle *const vehicle, VehicleState to, const std::string &info="")
 Informs all added listeners about a vehicle's state change. More...
 
enum  VehicleState {
  VEHICLE_STATE_BUILT, VEHICLE_STATE_DEPARTED, VEHICLE_STATE_STARTING_TELEPORT, VEHICLE_STATE_ENDING_TELEPORT,
  VEHICLE_STATE_ARRIVED, VEHICLE_STATE_NEWROUTE, VEHICLE_STATE_STARTING_PARKING, VEHICLE_STATE_ENDING_PARKING,
  VEHICLE_STATE_STARTING_STOP, VEHICLE_STATE_ENDING_STOP, VEHICLE_STATE_COLLISION, VEHICLE_STATE_EMERGENCYSTOP,
  VEHICLE_STATE_MANEUVERING
}
 Definition of a vehicle state. More...
 

Detailed Description

A MSNet extended by some values for usage within the gui.

This gui version of the network allows the retrieval of some more information than the normal network version does. Due to this, not only these retrieval, but also some further initialisation methods must have been implemented. Nonethenless, this class has almost the same functions as the MSNet-class.

Some microsimulation items are wrapped in certain classes to allow their drawing and their enumerated access. This enumeration is realised by inserting the wrapped items into vectors and is needed to fasten the network's drawing as only visible items are being drawn.

Definition at line 82 of file GUINet.h.

Member Typedef Documentation

◆ Links2LogicMap

typedef std::map<MSLink*, std::string> GUINet::Links2LogicMap
protected

Definition of a link-to-logic-id map.

Definition at line 370 of file GUINet.h.

◆ Logics2WrapperMap

Definition of a traffic light-to-wrapper map.

Definition at line 376 of file GUINet.h.

◆ MSIntermodalRouter

Definition at line 116 of file MSNet.h.

◆ MSPedestrianRouter

Definition at line 115 of file MSNet.h.

Member Enumeration Documentation

◆ SimulationState

enum MSNet::SimulationState
inherited

Possible states of a simulation - running or stopped with different reasons.

Enumerator
SIMSTATE_LOADING 

The simulation is loading.

SIMSTATE_RUNNING 

The simulation is running.

SIMSTATE_END_STEP_REACHED 

The final simulation step has been performed.

SIMSTATE_NO_FURTHER_VEHICLES 

The simulation does not contain further vehicles.

SIMSTATE_CONNECTION_CLOSED 

The connection to a client was closed by the client.

SIMSTATE_ERROR_IN_SIM 

An error occurred during the simulation step.

SIMSTATE_INTERRUPTED 

An external interrupt occured.

SIMSTATE_TOO_MANY_TELEPORTS 

The simulation had too many teleports.

Definition at line 96 of file MSNet.h.

◆ VehicleState

enum MSNet::VehicleState
inherited

Definition of a vehicle state.

Enumerator
VEHICLE_STATE_BUILT 

The vehicle was built, but has not yet departed.

VEHICLE_STATE_DEPARTED 

The vehicle has departed (was inserted into the network)

VEHICLE_STATE_STARTING_TELEPORT 

The vehicle started to teleport.

VEHICLE_STATE_ENDING_TELEPORT 

The vehicle ended being teleported.

VEHICLE_STATE_ARRIVED 

The vehicle arrived at his destination (is deleted)

VEHICLE_STATE_NEWROUTE 

The vehicle got a new route.

VEHICLE_STATE_STARTING_PARKING 

The vehicles starts to park.

VEHICLE_STATE_ENDING_PARKING 

The vehicle ends to park.

VEHICLE_STATE_STARTING_STOP 

The vehicles starts to stop.

VEHICLE_STATE_ENDING_STOP 

The vehicle ends to stop.

VEHICLE_STATE_COLLISION 

The vehicle is involved in a collision.

VEHICLE_STATE_EMERGENCYSTOP 

The vehicle had to brake harder than permitted.

VEHICLE_STATE_MANEUVERING 

Vehicle maneuvering either entering or exiting a parking space.

Definition at line 535 of file MSNet.h.

Constructor & Destructor Documentation

◆ GUINet()

GUINet::GUINet ( MSVehicleControl vc,
MSEventControl beginOfTimestepEvents,
MSEventControl endOfTimestepEvents,
MSEventControl insertionEvents 
)

Constructor.

Parameters
[in]vcThe vehicle control to use
[in]beginOfTimestepEventsThe event control to use for simulation step begin events
[in]endOfTimestepEventsThe event control to use for simulation step end events
[in]insertionEventsThe event control to use for insertion events
Exceptions
ProcessErrorIf a network was already constructed

Definition at line 76 of file GUINet.cpp.

References GUIGlObjectStorage::gIDStorage, and GUIGlObjectStorage::setNetObject().

◆ ~GUINet()

GUINet::~GUINet ( )

Member Function Documentation

◆ adaptIntermodalRouter()

◆ addParameterTable()

void GUIGlObject::addParameterTable ( GUIParameterTableWindow w)
inherited

◆ addRestriction()

void MSNet::addRestriction ( const std::string &  id,
const SUMOVehicleClass  svc,
const double  speed 
)
inherited

Adds a restriction for an edge type.

Parameters
[in]idThe id of the type
[in]svcThe vehicle class the restriction refers to
[in]speedThe restricted speed

Definition at line 324 of file MSNet.cpp.

References MSNet::myRestrictions.

Referenced by NLHandler::myStartElement().

◆ addStoppingPlace()

bool MSNet::addStoppingPlace ( const SumoXMLTag  category,
MSStoppingPlace stop 
)
inherited

Adds a stopping place.

If another stop with the same id and category exists, false is returned. Otherwise, the stop is added to the internal stopping place container.

This control gets responsible for deletion of the added stop.

Parameters
[in]stopThe stop to add
Returns
Whether the stop could be added

Definition at line 905 of file MSNet.cpp.

References Named::getID(), MSNet::myStoppingPlaces, SUMO_TAG_BUS_STOP, and SUMO_TAG_TRAIN_STOP.

Referenced by GUITriggerBuilder::beginParkingArea(), NLTriggerBuilder::beginParkingArea(), GUITriggerBuilder::buildChargingStation(), NLTriggerBuilder::buildChargingStation(), GUITriggerBuilder::buildStoppingPlace(), and NLTriggerBuilder::buildStoppingPlace().

◆ addVehicleStateListener()

void MSNet::addVehicleStateListener ( VehicleStateListener listener)
inherited

Adds a vehicle states listener.

Parameters
[in]listenerThe listener to add

Definition at line 877 of file MSNet.cpp.

References MSNet::myVehicleStateListeners.

Referenced by libsumo::Polygon::addDynamics(), MSDevice_Vehroutes::init(), MSVehicle::Influencer::GapControlState::init(), TraCIServer::openSocket(), and libsumo::Helper::registerVehicleStateListener().

◆ buildAdditionalsPopupOptions()

void GUIGlObject::buildAdditionalsPopupOptions ( GUIMainWindow app,
GUIGLObjectPopupMenu ret,
const std::string &  type 
)
protectedinherited

◆ buildCenterPopupEntry()

void GUIGlObject::buildCenterPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

◆ buildNameCopyPopupEntry()

◆ buildPopupHeader()

void GUIGlObject::buildPopupHeader ( GUIGLObjectPopupMenu ret,
GUIMainWindow app,
bool  addSeparator = true 
)
protectedinherited

◆ buildPositionCopyEntry()

void GUIGlObject::buildPositionCopyEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.

Parameters
[in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 266 of file GUIGlObject.cpp.

References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.

Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNENet::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().

◆ buildSelectionPopupEntry()

◆ buildShapePopupOptions()

void GUIGlObject::buildShapePopupOptions ( GUIMainWindow app,
GUIGLObjectPopupMenu ret,
const std::string &  type 
)
protectedinherited

◆ buildShowManipulatorPopupEntry()

void GUIGlObject::buildShowManipulatorPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to open the manipulator window.

Parameters
[in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 278 of file GUIGlObject.cpp.

References GUIIconSubSys::getIcon(), ICON_MANIP, and MID_MANIP.

Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().

◆ buildShowParamsPopupEntry()

void GUIGlObject::buildShowParamsPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

◆ buildShowTypeParamsPopupEntry()

void GUIGlObject::buildShowTypeParamsPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to open the type parameter window.

Parameters
[in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 257 of file GUIGlObject.cpp.

References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.

Referenced by GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), and GUIPerson::getPopUpMenu().

◆ checkBidiEdges()

bool MSNet::checkBidiEdges ( )
protectedinherited

check wether bidirectional edges occur in the network

Definition at line 1083 of file MSNet.cpp.

References MSEdgeControl::getEdges(), and MSNet::myEdges.

Referenced by MSNet::closeBuilding().

◆ checkElevation()

bool MSNet::checkElevation ( )
protectedinherited

check all lanes for elevation data

Definition at line 1058 of file MSNet.cpp.

References MSEdgeControl::getEdges(), and MSNet::myEdges.

Referenced by MSNet::closeBuilding().

◆ checkWalkingarea()

bool MSNet::checkWalkingarea ( )
protectedinherited

check all lanes for type walkingArea

Definition at line 1072 of file MSNet.cpp.

References EDGEFUNC_WALKINGAREA, MSEdgeControl::getEdges(), and MSNet::myEdges.

Referenced by MSNet::closeBuilding().

◆ cleanupStatic()

void MSNet::cleanupStatic ( )
staticinherited

Place for static initializations of simulation components (called after successful net build)

Definition at line 182 of file MSNet.cpp.

References MSVehicle::Influencer::cleanup(), and MSGlobals::gUseMesoSim.

Referenced by MSNet::~MSNet().

◆ clearAll()

◆ closeBuilding()

void MSNet::closeBuilding ( const OptionsCont oc,
MSEdgeControl edges,
MSJunctionControl junctions,
SUMORouteLoaderControl routeLoaders,
MSTLLogicControl tlc,
std::vector< SUMOTime stateDumpTimes,
std::vector< std::string >  stateDumpFiles,
bool  hasInternalLinks,
bool  hasNeighs,
bool  lefthand,
double  version 
)
inherited

Closes the network's building process.

Assigns the structures built while loading to this network.

Parameters
[in]ocThe options to use
[in]edgesThe control of edges which belong to this network
[in]junctionsThe control of junctions which belong to this network
[in]routeLoadersThe route loaders used
[in]tlcThe control of traffic lights which belong to this network
[in]stateDumpTimesList of time steps at which state shall be written
[in]stateDumpFilesFilenames for states
[in]hasInternalLinksWhether the network actually contains internal links
[in]lefthandWhether the network was built for left-hand traffic
[in]versionThe network version
Todo:
Try to move all this to the constructor?

Definition at line 238 of file MSNet.cpp.

References MSNet::checkBidiEdges(), MSNet::checkElevation(), MSNet::checkWalkingarea(), SysUtils::getCurrentMillis(), OptionsCont::getString(), MSGlobals::gLateralResolution, MSNet::hasInternalLinks(), MSNet::lefthand(), MSNet::myEdges, MSNet::myHasBidiEdges, MSNet::myHasElevation, MSNet::myHasInternalLinks, MSNet::myHasPedestrianNetwork, MSNet::myJunctions, MSNet::myLefthand, MSNet::myLogics, MSNet::myRouteLoaders, MSNet::mySimBeginMillis, MSNet::myStateDumpFiles, MSNet::myStateDumpPeriod, MSNet::myStateDumpPrefix, MSNet::myStateDumpSuffix, MSNet::myStateDumpTimes, MSNet::myVersion, string2time(), and WRITE_WARNING.

Referenced by NLBuilder::buildNet().

◆ closeSimulation()

void MSNet::closeSimulation ( SUMOTime  start)
inherited

◆ createFullName()

std::string GUIGlObject::createFullName ( ) const
privateinherited

◆ createTLWrapper()

void GUINet::createTLWrapper ( MSTrafficLightLogic tll)
overridevirtual

◆ drawGL()

void GUINet::drawGL ( const GUIVisualizationSettings s) const
overridevirtual

Draws the object.

Parameters
[in]sThe settings for the current view (may influence drawing)
See also
GUIGlObject::drawGL

Implements GUIGlObject.

Definition at line 505 of file GUINet.cpp.

◆ drawGLAdditional()

void GUIGlObject::drawGLAdditional ( GUISUMOAbstractView *const  parent,
const GUIVisualizationSettings s 
) const
virtualinherited

Draws additional, user-triggered visualisations.

Parameters
[in]parentThe view
[in]sThe settings for the current view (may influence drawing)

Reimplemented in GUIPerson, GUIContainer, and GUIBaseVehicle.

Definition at line 186 of file GUIGlObject.cpp.

References UNUSED_PARAMETER.

◆ drawName()

◆ generateStatistics()

◆ getAvgDepartDelay()

double GUINet::getAvgDepartDelay ( ) const
inline

Definition at line 221 of file GUINet.h.

References MSDevice_Tripinfo::getAvgDepartDelay().

Referenced by getParameterWindow().

◆ getAvgDuration()

double GUINet::getAvgDuration ( ) const
inline

Definition at line 212 of file GUINet.h.

References MSDevice_Tripinfo::getAvgDuration().

Referenced by getParameterWindow().

◆ getAvgRouteLength()

double GUINet::getAvgRouteLength ( ) const
inline

Definition at line 209 of file GUINet.h.

References MSDevice_Tripinfo::getAvgRouteLength().

Referenced by getParameterWindow().

◆ getAvgTimeLoss()

double GUINet::getAvgTimeLoss ( ) const
inline

Definition at line 218 of file GUINet.h.

References MSDevice_Tripinfo::getAvgTimeLoss().

Referenced by getParameterWindow().

◆ getAvgTripSpeed()

double GUINet::getAvgTripSpeed ( ) const
inline

◆ getAvgWaitingTime()

double GUINet::getAvgWaitingTime ( ) const
inline

Definition at line 215 of file GUINet.h.

References MSDevice_Tripinfo::getAvgWaitingTime().

Referenced by getParameterWindow().

◆ getAvgWalkDuration()

double GUINet::getAvgWalkDuration ( ) const
inline

Definition at line 230 of file GUINet.h.

References MSDevice_Tripinfo::getAvgWalkDuration().

Referenced by getParameterWindow().

◆ getAvgWalkRouteLength()

double GUINet::getAvgWalkRouteLength ( ) const
inline

Definition at line 227 of file GUINet.h.

References MSDevice_Tripinfo::getAvgWalkRouteLength().

Referenced by getParameterWindow().

◆ getAvgWalkTimeLoss()

double GUINet::getAvgWalkTimeLoss ( ) const
inline

Definition at line 233 of file GUINet.h.

References MSDevice_Tripinfo::getAvgWalkTimeLoss().

Referenced by getParameterWindow().

◆ getBeginOfTimestepEvents()

◆ getBoundary()

const Boundary & GUINet::getBoundary ( ) const

returns the bounder of the network

Definition at line 113 of file GUINet.cpp.

References myBoundary.

Referenced by getCenteringBoundary().

◆ getCenteringBoundary()

Boundary GUINet::getCenteringBoundary ( ) const
overridevirtual

Returns the boundary to which the view shall be centered in order to show the object.

Returns
The boundary the object is within
See also
GUIGlObject::getCenteringBoundary

Implements GUIGlObject.

Definition at line 509 of file GUINet.cpp.

References getBoundary().

◆ getColorValue()

virtual double GUIGlObject::getColorValue ( const GUIVisualizationSettings ,
int   
) const
inlinevirtualinherited

◆ getContainerControl()

MSTransportableControl & GUINet::getContainerControl ( )
overridevirtual

Returns the container control.

If the container control does not exist, yet, it is created.

Returns
The container control
See also
MSContainerControl
myContainerControl

Reimplemented from MSNet.

Definition at line 128 of file GUINet.cpp.

References MSNet::myContainerControl.

Referenced by GUIApplicationWindow::handleEvent_SimulationStep().

◆ getCurrentTimeStep()

SUMOTime MSNet::getCurrentTimeStep ( ) const
inlineinherited

Returns the current simulation step.

Returns
the current simulation step

Definition at line 283 of file MSNet.h.

References MSNet::myStep.

Referenced by MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), libsumo::Person::add(), libsumo::Vehicle::add(), MSPModel_Striping::add(), MSBaseVehicle::addContainer(), MSBaseVehicle::addPerson(), GUIEdge::addRerouter(), MSDevice_Vehroutes::addRoute(), MSTLLogicControl::addWAUTJunction(), MSTransportableControl::boardAnyWaiting(), NLDetectorBuilder::buildE2Detector(), NLJunctionControlBuilder::closeTrafficLightLogic(), MSTLLogicControl::closeWAUT(), TraCIServerAPI_Simulation::commandDistanceRequest(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), MSActuatedTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), TraCIServer::dispatchCommand(), MSActuatedTrafficLightLogic::duration(), MSVehicle::enterLaneAtInsertion(), Command_SaveTLCoupledDet::execute(), Command_SaveTLCoupledLaneDet::execute(), MSCFModel_CC::finalizeSpeed(), libsumo::Simulation::findIntermodalRoute(), libsumo::Simulation::findRoute(), MSActuatedTrafficLightLogic::gapControl(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSTransportable::getAngle(), MSLane::getCriticalLeader(), MSSOTLTrafficLightLogic::getCurrentPhaseElapsed(), GUIApplicationWindow::getCurrentSimTime(), MSLaneSpeedTrigger::getCurrentSpeed(), libsumo::Simulation::getCurrentTime(), MSEventControl::getCurrentTimeStep(), GUIViewTraffic::getCurrentTimeStep(), MSActuatedTrafficLightLogic::getDetectorPriority(), libsumo::Simulation::getDistance2D(), libsumo::Simulation::getDistanceRoad(), getEdgeData(), MSTransportable::getEdgePos(), MSLane::getFirstVehicleInformation(), MSInductLoop::getLastDetectionTime(), MSLane::getLastVehicleInformation(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), libsumo::Lane::getLinks(), MESegment::getMeanSpeed(), MSInsertionControl::getPendingEmits(), MSTransportable::getPosition(), MSVehicle::getPosition(), MSTrafficLightLogic::getSpentDuration(), MSTransportable::getWaitingSeconds(), MSTransportable::getWaitingTime(), MSLink::getZipperSpeed(), GUIApplicationWindow::handleEvent_SimulationStep(), MSLaneSpeedTrigger::init(), MSSwarmTrafficLightLogic::init(), MSRoutingEngine::initEdgeWeights(), TraCIServer::initialiseSubscription(), MSTLLogicControl::initWautSwitch(), MSLane::isInsertionSuccess(), MSVehicle::Influencer::isRemoteControlled(), MSPerson::Influencer::isRemoteControlled(), MSTransportableControl::loadAnyWaiting(), GUIRunThread::makeStep(), MSPModel_Remote::MSPModel_Remote(), MSDevice_Routing::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSDevice_Vehroutes::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Vehroutes::notifyLeave(), MSDevice_Transportable::notifyMove(), GUIApplicationWindow::onCmdTimeToggle(), MSBaseVehicle::onDepart(), GUIViewTraffic::onGamingClick(), TraCIServer::postProcessSimulationStep(), MESegment::prepareDetectorForWriting(), MSVehicle::processLaneAdvances(), MSVehicle::processNextStop(), MSRailSignal::LinkInfo::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::resetActionOffset(), MSSOTLTrafficLightLogic::resetCTS(), MSTrafficLightLogic::resetLinkStates(), GUIRunThread::run(), TraCIServer::sendOutputToAll(), MSTransportable::Stage_Trip::setArrived(), libsumo::TrafficLight::setPhase(), libsumo::TrafficLight::setPhaseDuration(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSPhasedTrafficLightLogic::setStep(), MSSOTLTrafficLightLogic::setupCTS(), MSNet::simulate(), MSContainer::MSContainerStage_Driving::tripInfoOutput(), MSPerson::MSPersonStage_Driving::tripInfoOutput(), MSActuatedTrafficLightLogic::trySwitch(), MSDelayBasedTrafficLightLogic::trySwitch(), MSSimpleTrafficLightLogic::trySwitch(), MSSOTLTrafficLightLogic::trySwitch(), MSVehicle::updateActionOffset(), MSSOTLTrafficLightLogic::updateCTS(), MSRailCrossing::updateCurrentPhase(), MSSwarmTrafficLightLogic::updateSensitivities(), and MSVehicle::wasRemoteControlled().

◆ getDetectorControl()

◆ getDynamicShapeUpdater()

MSDynamicShapeUpdater* MSNet::getDynamicShapeUpdater ( )
inlineinherited

Returns the dynamic shapes updater.

See also
PolygonDynamics

Definition at line 466 of file MSNet.h.

References MSNet::myDynamicShapeUpdater.

◆ getEdgeControl()

◆ getEdgeData()

double GUINet::getEdgeData ( const MSEdge edge,
const std::string &  attr 
)

retrieve loaded edged weight for the given attribute and the current simulation time

Definition at line 548 of file GUINet.cpp.

References MSNet::getCurrentTimeStep(), myLoadedEdgeData, and STEPS2TIME.

Referenced by GUILane::getColorValue().

◆ getEdgeDataAttrs()

std::vector< std::string > GUINet::getEdgeDataAttrs ( ) const

return list of loaded edgeData attributes

Definition at line 619 of file GUINet.cpp.

References myLoadedEdgeData.

Referenced by GUIViewTraffic::getEdgeDataAttrs().

◆ getEffort()

double MSNet::getEffort ( const MSEdge *const  e,
const SUMOVehicle *const  v,
double  t 
)
staticinherited

Returns the effort to pass an edge.

Parameters
[in]eThe edge for which the effort to be passed shall be returned
[in]vThe vehicle that is rerouted
[in]tThe time for which the effort shall be returned [s]
Returns
The effort (abstract) for an edge
See also
DijkstraRouter_ByProxi

Definition at line 136 of file MSNet.cpp.

References MSNet::getInstance(), MSNet::getWeightsStorage(), MSVehicle::getWeightsStorage(), and MSEdgeWeightsStorage::retrieveExistingEffort().

Referenced by MSNet::getRouterEffort().

◆ getEndOfTimestepEvents()

◆ getFullName()

◆ getGlID()

GUIGlID GUIGlObject::getGlID ( ) const
inherited

Returns the numerical id of the object.

Returns
This object's gl-id

Definition at line 149 of file GUIGlObject.cpp.

References GUIGlObject::myGlID.

Referenced by GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GNEEdge::drawEdgeName(), GNEEdge::drawGeometryPoints(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNECalibrator::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNERerouter::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIPointOfInterest::drawGL(), GUIPolygon::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawRerouterSymbol(), GNELane::drawVSSSymbol(), GUIContainer::getColorValue(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIPerson::getColorValue(), GUIVehicle::getColorValue(), GUIMEVehicle::getColorValue(), GNEPOI::getGlID(), GNEPoly::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIShapeContainer::getPOIIds(), GUIShapeContainer::getPolygonIDs(), GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIEdge::getScaleValue(), GUITransportableControl::insertPersonIDs(), GUIMEVehicleControl::insertVehicleIDs(), GUIVehicleControl::insertVehicleIDs(), GUILane::isLaneOrEdgeSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUIPerson::isSelected(), GUIVehicle::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIDialog_GLChosenEditor::onCmdDeselect(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIViewTraffic::onCmdShowReachability(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIDialog_GLObjChooser::onCmdTrack(), GUIViewTraffic::onGamingClick(), TraCIServerAPI_GUI::processSet(), GUIDialog_GLObjChooser::refreshList(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GNEAdditional::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEStop::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GNEVehicleType::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), GUIVehicle::selectBlockingFoes(), GUIPolygon::setColor(), GUIPointOfInterest::setColor(), GUIMessageWindow::setCursorPos(), GNEAdditional::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEStop::unselectAttributeCarrier(), GNEVehicle::unselectAttributeCarrier(), GNEVehicleType::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNENetElement::unselectAttributeCarrier(), GUIBaseVehicle::~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().

◆ getGUIInstance()

GUINet * GUINet::getGUIInstance ( )
static

Returns the pointer to the unique instance of GUINet (singleton).

Returns
Pointer to the unique GUINet-instance
Exceptions
ProcessErrorIf a network was not yet constructed

Definition at line 515 of file GUINet.cpp.

References MSNet::getInstance().

Referenced by GUIEdge::addRerouter(), GUIViewTraffic::doPaintGL(), GUIEdge::drawMesoVehicles(), GUILane::getColorValue(), GUIViewTraffic::getEdgeDataAttrs(), GUIViewTraffic::getVehicleParamKeys(), GUIApplicationWindow::onCmdOpenEdgeData(), GUIApplicationWindow::onCmdShowStats(), and GUITrafficLightLogicWrapper::switchTLSLogic().

◆ getGUIMEVehicleControl()

GUIMEVehicleControl * GUINet::getGUIMEVehicleControl ( )

Returns the vehicle control.

Returns
The vehicle control
See also
MSVehicleControl
myVehicleControl

Definition at line 542 of file GUINet.cpp.

References MSNet::myVehicleControl.

Referenced by GUIEdge::drawMesoVehicles().

◆ getGUIVehicleControl()

GUIVehicleControl * GUINet::getGUIVehicleControl ( )

Returns the vehicle control.

Returns
The vehicle control
See also
MSVehicleControl
myVehicleControl

Definition at line 525 of file GUINet.cpp.

References MSNet::myVehicleControl.

Referenced by GUIViewTraffic::getVehicleParamKeys().

◆ getIdleDuration()

int GUINet::getIdleDuration ( ) const

Returns the duration of the last step's idle part (in ms)

Definition at line 382 of file GUINet.cpp.

References myLastIdleDuration.

Referenced by getParameterWindow().

◆ getInsertionControl()

◆ getInsertionEvents()

MSEventControl* MSNet::getInsertionEvents ( )
inlineinherited

Returns the event control for insertion events.

Returns
The control responsible for insertion events
See also
MSEventControl
myInsertionEvents

Definition at line 449 of file MSNet.h.

References MSNet::myInsertionEvents.

Referenced by MSDevice_Routing::MSDevice_Routing(), MSTransportableDevice_Routing::MSTransportableDevice_Routing(), and MSTransportableDevice_Routing::setParameter().

◆ getInstance()

MSNet * MSNet::getInstance ( void  )
staticinherited

Returns the pointer to the unique instance of MSNet (singleton).

Returns
Pointer to the unique MSNet-instance
Exceptions
ProcessErrorIf a network was not yet constructed

Definition at line 167 of file MSNet.cpp.

References MSNet::myInstance.

Referenced by MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSCFModel_CC::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSTransportable::Stage_Waiting::abort(), MSTransportable::Stage_Driving::abort(), MSRoutingEngine::adaptEdgeEfforts(), libsumo::Edge::adaptTraveltime(), LaneStoringVisitor::add(), libsumo::Person::add(), libsumo::POI::add(), libsumo::Polygon::add(), libsumo::Vehicle::add(), MSVehicleTransfer::add(), MSPModel_Striping::add(), MSChargingStation::addChargeValueForOutput(), MSBaseVehicle::addContainer(), libsumo::Polygon::addDynamics(), MSRouteHandler::addFlowPerson(), libsumo::Polygon::addHighlightPolygon(), MSTrafficLightLogic::addLink(), MSTLLogicControl::TLSLogicVariants::addLogic(), MSBaseVehicle::addPerson(), MSRouteHandler::addPersonTrip(), GUIEdge::addRerouter(), MSDevice_Vehroutes::addRoute(), MSRouteHandler::addStop(), MSVehicle::addStop(), MSVehicle::addTraciStopAtStoppingPlace(), MSTLLogicControl::addWAUTJunction(), libsumo::Person::appendDrivingStage(), libsumo::Person::appendWaitingStage(), libsumo::Person::appendWalkingStage(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportableControl::boardAnyWaiting(), MSDevice_BTreceiver::BTreceiverUpdate::BTreceiverUpdate(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NLTriggerBuilder::buildVaporizer(), GUIVehicleControl::buildVehicle(), GUIMEVehicleControl::buildVehicle(), MEVehicleControl::buildVehicle(), MSVehicleControl::buildVehicle(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), libsumo::Vehicle::changeLane(), libsumo::Vehicle::changeLaneRelative(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSPhasedTrafficLightLogic::changeStepAndDuration(), MSSimpleTrafficLightLogic::changeStepAndDuration(), libsumo::Vehicle::changeTarget(), MSLane::checkFailure(), GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), MSVehicleTransfer::checkInsertions(), MSVehicle::Influencer::GapControlState::cleanup(), libsumo::Simulation::clearPending(), libsumo::Simulation::close(), MSRouteHandler::closeContainer(), MSRouteHandler::closeFlow(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), MSRouteHandler::closeRoute(), MSRouteHandler::closeVehicle(), MSStateHandler::closeVehicle(), MSRouteHandler::closeVehicleTypeDistribution(), MSRouteHandler::closeVType(), MSTLLogicControl::closeWAUT(), Command_SaveTLSProgram::Command_SaveTLSProgram(), Command_SaveTLSState::Command_SaveTLSState(), Command_SaveTLSSwitches::Command_SaveTLSSwitches(), Command_SaveTLSSwitchStates::Command_SaveTLSSwitchStates(), TraCIServerAPI_Simulation::commandDistanceRequest(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), libsumo::Person::convertTraCIStage(), NLDetectorBuilder::createEdgeLaneMeanData(), MSCalibrator::currentFlow(), MSActuatedTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), MSInsertionControl::determineCandidates(), TraCIServer::dispatchCommand(), GUIBusStop::drawGL(), GUIContainerStop::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUITrafficLightLogicWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawLinkNo(), GUILane::drawLinkRules(), GUILane::drawMarkings(), GUILane::drawTLSLinkNo(), MSVehicleType::duplicateType(), MSActuatedTrafficLightLogic::duration(), GUITriggerBuilder::endParkingArea(), GUITriggerBuilder::endStoppingPlace(), MSParkingArea::enter(), MSVehicle::enterLaneAtInsertion(), MSVehicle::Manoeuvre::entryManoeuvreIsComplete(), MSDevice::equippedByDefaultAssignmentOptions(), Command_SaveTLCoupledDet::execute(), Command_SaveTLCoupledLaneDet::execute(), METriggeredCalibrator::execute(), MSVTypeProbe::execute(), MSPerson::MSPersonStage_Access::ProceedCmd::execute(), MSCalibrator::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), MSEdgeControl::executeMovements(), libsumo::Polygon::exists(), MSCFModel_CC::finalizeSpeed(), libsumo::Simulation::findIntermodalRoute(), libsumo::Simulation::findRoute(), MSActuatedTrafficLightLogic::gapControl(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSDevice_Vehroutes::generateOutputForUnfinished(), libsumo::Edge::getAdaptedTraveltime(), MSTransportable::getAngle(), MSTransportable::Stage_Trip::getAngle(), MSTransportable::Stage_Waiting::getAngle(), MSTransportable::Stage_Driving::getAngle(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), libsumo::Simulation::getBusStopIDList(), libsumo::Simulation::getBusStopWaiting(), libsumo::Simulation::getBusStopWaitingIDList(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), GUILane::getColorValue(), MSLane::getCriticalLeader(), MSSOTLTrafficLightLogic::getCurrentPhaseElapsed(), MSLaneSpeedTrigger::getCurrentSpeed(), libsumo::Simulation::getCurrentTime(), MSEventControl::getCurrentTimeStep(), GUIViewTraffic::getCurrentTimeStep(), libsumo::InductionLoop::getDetector(), libsumo::LaneArea::getDetector(), libsumo::MultiEntryExit::getDetector(), MSActuatedTrafficLightLogic::getDetectorPriority(), libsumo::Simulation::getDistance2D(), libsumo::Simulation::getDistanceRoad(), MSTransportable::getEdgePos(), MSNet::getEffort(), libsumo::Edge::getEffort(), MSLane::getFirstVehicleInformation(), getGUIInstance(), libsumo::InductionLoop::getIDCount(), libsumo::LaneArea::getIDCount(), libsumo::MultiEntryExit::getIDCount(), libsumo::Person::getIDCount(), libsumo::InductionLoop::getIDList(), libsumo::Junction::getIDList(), libsumo::LaneArea::getIDList(), libsumo::MultiEntryExit::getIDList(), libsumo::Person::getIDList(), libsumo::POI::getIDList(), libsumo::Polygon::getIDList(), libsumo::TrafficLight::getIDList(), libsumo::Vehicle::getIDList(), libsumo::VehicleType::getIDList(), libsumo::Junction::getJunction(), MSInductLoop::getLastDetectionTime(), libsumo::Edge::getLastStepPersonIDs(), MSLane::getLastVehicleInformation(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), libsumo::Lane::getLinks(), GUILane::getLoadedEdgeWeight(), MSLane::getMaximumBrakeDist(), MESegment::getMeanSpeed(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), libsumo::Simulation::getMinExpectedNumber(), MSCModel_NonInteracting::getModel(), MSPModel::getModel(), MSPModel_Striping::getNextLane(), MSCFModel_CC::getParameter(), libsumo::Simulation::getParameter(), GUILane::getPendingEmits(), MSInsertionControl::getPendingEmits(), libsumo::Person::getPerson(), MSTLLogicControl::getPhaseDef(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), libsumo::POI::getPoI(), libsumo::Polygon::getPolygon(), MSTransportable::getPosition(), MSVehicle::getPosition(), MSPModel_NonInteracting::PState::getPosition(), MSTransportable::Stage_Trip::getPosition(), MSTransportable::Stage_Waiting::getPosition(), MSTransportable::Stage_Driving::getPosition(), MSVTKExport::getPositions(), GUIVehicle::getPreviousLane(), MSCFModel_CC::getRadarMeasurements(), MSVehicle::Influencer::getRouterTT(), MSRoutingEngine::getRouterTT(), GUIEdge::getScaleValue(), GUILane::getScaleValue(), MSVTKExport::getSpeed(), MSTrafficLightLogic::getSpentDuration(), GUILane::getStoredEdgeTravelTime(), MSEdge::getSuccessors(), libsumo::TrafficLight::getTLS(), libsumo::Polygon::getTrafficObject(), MSNet::getTravelTime(), MSEdge::getTravelTimeStatic(), libsumo::InductionLoop::getTree(), libsumo::Junction::getTree(), libsumo::POI::getTree(), libsumo::Polygon::getTree(), libsumo::Helper::getVehicle(), MSCFModel_CC::getVehicleInformation(), MSEdge::getViaSuccessors(), libsumo::VehicleType::getVType(), MSTransportable::getWaitingSeconds(), MSTransportable::getWaitingTime(), MSLink::getZipperSpeed(), GUIBusStop::GUIBusStop(), GUIContainerStop::GUIContainerStop(), GUIParkingArea::GUIParkingArea(), MSLane::handleCollisionBetween(), MSVehicle::haveValidStopEdges(), libsumo::POI::highlight(), libsumo::Vehicle::highlight(), MSPModel_Striping::PState::ignoreRed(), MSVehicle::ignoreRed(), MSLane::incorporateVehicle(), MSVehicle::influenceChangeDecision(), MSDevice_Vehroutes::init(), MSVehicle::Influencer::GapControlState::init(), MSMeanData::init(), MSCalibrator::init(), MSLaneSpeedTrigger::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSRailCrossing::init(), MSRailSignal::init(), MSSwarmTrafficLightLogic::init(), MSDevice_ToC::initColorScheme(), MSRoutingEngine::initEdgeWeights(), TraCIServer::initialiseSubscription(), MSLane::initRestrictions(), MSRoutingEngine::initRouter(), MSTLLogicControl::initWautSwitch(), MSRoutingEngine::initWeightUpdate(), MSEdge::insertVehicle(), MSLane::isInsertionSuccess(), libsumo::Vehicle::isOnInit(), MSVehicle::Influencer::isRemoteControlled(), MSPerson::Influencer::isRemoteControlled(), MSTrafficLightLogic::isSelected(), MSSOTLTrafficLightLogic::isThresholdPassed(), MSAbstractLaneChangeModel::laneChangeOutput(), MSParkingArea::leaveFrom(), MSVehicle::leaveLane(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSTransportableControl::loadAnyWaiting(), MSVehicleTransfer::loadState(), MSNet::makeDynamicShapeUpdater(), MSVehicle::Manoeuvre::manoeuvreIsComplete(), libsumo::Vehicle::moveTo(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSContainer::MSContainerStage_Tranship::moveToNextEdge(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), MSDevice_ToC::MRMExecutionStep(), MSDevice_Routing::MSDevice_Routing(), MSDevice_ToC::MSDevice_ToC(), MSParkingArea::MSParkingArea(), MSTrafficLightLogic::MSTrafficLightLogic(), MSTransportableDevice_Routing::MSTransportableDevice_Routing(), MSVTypeProbe::MSVTypeProbe(), GUITriggeredRerouter::myEndElement(), MSTriggeredRerouter::myEndElement(), MSRouteHandler::myStartElement(), MSStateHandler::myStartElement(), MSCalibrator::myStartElement(), MSTriggeredRerouter::myStartElement(), MSDevice_Routing::notifyEnter(), MSDevice_Transportable::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSDevice_Vehroutes::notifyEnter(), MSCalibrator::VehicleRemover::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Vehroutes::notifyLeave(), MSDevice_Battery::notifyMove(), MSDevice_Bluelight::notifyMove(), MSDevice_Transportable::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), GUISUMOViewParent::onCmdLocate(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdRemoveObject(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), GUIApplicationWindow::onCmdSaveState(), MSBaseVehicle::onDepart(), GUIViewTraffic::onGamingClick(), MSLink::opened(), TraCIServer::openSocket(), MSRouteHandler::openVehicleTypeDistribution(), MSRouteHandler::parseWalkPositions(), MSVehicle::planMoveInternal(), libsumo::Helper::postProcessRemoteControl(), MSPerson::Influencer::postProcessRemoteControl(), TraCIServer::postProcessSimulationStep(), MESegment::prepareDetectorForWriting(), MSPerson::MSPersonStage_Walking::proceed(), TraCIServer::processCommandsUntilSimStep(), MSDevice_SSM::processEncounters(), TraCIServerAPI_TrafficLight::processGet(), MSVehicle::processLaneAdvances(), MSVehicle::processNextStop(), TraCIServerAPI_GUI::processSet(), TraCIServerAPI_Person::processSet(), TraCIServerAPI_Vehicle::processSet(), MEVehicle::processStop(), MSVehicle::processTraCISpeedControl(), MSPModel_Striping::PState::PState(), MESegment::receive(), libsumo::Helper::registerVehicleStateListener(), METriggeredCalibrator::remainingVehicleCapacity(), MSCalibrator::remainingVehicleCapacity(), libsumo::POI::remove(), libsumo::Polygon::remove(), libsumo::Vehicle::remove(), MSVehicleControl::removePending(), MSCalibrator::removePending(), MSTransportable::removeStage(), MEVehicle::replaceRoute(), MSVehicle::replaceRoute(), MSBaseVehicle::replaceVehicleType(), MSTransportable::replaceVehicleType(), MSDevice_ToC::requestToC(), MSBaseVehicle::reroute(), MSRoutingEngine::reroute(), MSRailSignal::LinkInfo::reroute(), GUIVehicle::rerouteDRTStop(), libsumo::Vehicle::rerouteEffort(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), libsumo::Person::rerouteTraveltime(), libsumo::Vehicle::rerouteTraveltime(), MSVehicle::resetActionOffset(), MSSOTLTrafficLightLogic::resetCTS(), MSTrafficLightLogic::resetLinkStates(), MSVehicle::resumeFromStopping(), MSContainer::routeOutput(), MSPerson::routeOutput(), MSStateHandler::saveRNGs(), MSStateHandler::saveState(), libsumo::Simulation::saveState(), TraCIServer::sendOutputToAll(), MSVehicleType::setActionStepLength(), MSTransportable::Stage_Trip::setArrived(), MSVehicle::setBlinkerInformation(), libsumo::TrafficLight::setCompleteRedYellowGreenDefinition(), libsumo::Edge::setEffort(), GUIBaseVehicle::setFunctionalColor(), MSLaneSpeedTrigger::setOverriding(), MSLaneSpeedTrigger::setOverridingValue(), MSTransportableDevice_Routing::setParameter(), MSDevice_ToC::setParameter(), MSCFModel_CC::setParameter(), MSTriggeredRerouter::setPermissions(), libsumo::TrafficLight::setPhase(), libsumo::TrafficLight::setPhaseDuration(), libsumo::POI::setPosition(), libsumo::TrafficLight::setProgram(), libsumo::TrafficLight::setRedYellowGreenState(), libsumo::Polygon::setShape(), libsumo::Vehicle::setSpeed(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSPhasedTrafficLightLogic::setStep(), libsumo::Person::setType(), libsumo::Vehicle::setType(), MSSOTLTrafficLightLogic::setupCTS(), GUITriggeredRerouter::shiftProbs(), signalHandler(), libsumo::Vehicle::slowDown(), MSLaneChangerSublane::startChangeSublane(), libsumo::Simulation::step(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), MSLane::succLinkSec(), MSDevice_ToC::switchHolderType(), MSTLLogicControl::TLSLogicVariants::switchTo(), MELoop::teleportVehicle(), MSDevice_ToC::triggerDownwardToC(), MSDevice_ToC::triggerMRM(), MSContainer::MSContainerStage_Driving::tripInfoOutput(), MSPerson::MSPersonStage_Walking::tripInfoOutput(), MSPerson::MSPersonStage_Driving::tripInfoOutput(), METriggeredCalibrator::tryEmit(), MSInsertionControl::tryInsert(), MSActuatedTrafficLightLogic::trySwitch(), MSDelayBasedTrafficLightLogic::trySwitch(), MSSimpleTrafficLightLogic::trySwitch(), MSSOTLTrafficLightLogic::trySwitch(), MSVehicle::updateActionOffset(), MSSOTLTrafficLightLogic::updateCTS(), MSRailCrossing::updateCurrentPhase(), MSSOTLTrafficLightLogic::updateDecayThreshold(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSAbstractLaneChangeModel::updateShadowLane(), MSVehicle::updateState(), MSPModel_Remote::usingInternalLanes(), MSPModel_Striping::usingInternalLanesStatic(), MELoop::vaporizeCar(), MSDetectorFileOutput::vehicleApplies(), MSTriggeredRerouter::vehicleApplies(), MSVehicleControl::vehicleDeparted(), MSPModel_Striping::PState::walk(), MSVehicle::wasRemoteControlled(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSAmitranTrajectories::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSFullExport::writeEdge(), MSQueueExport::writeEdge(), MSNet::writeOutput(), MSDevice_Vehroutes::writeOutput(), MSFullExport::writeTLS(), MSFullExport::writeVehicles(), MSDevice_BTreceiver::BTreceiverUpdate::~BTreceiverUpdate(), MSDevice_Transportable::~MSDevice_Transportable(), MSTransportable::~MSTransportable(), and MSVehicle::~MSVehicle().

◆ getIntermodalRouter()

◆ getJunctionControl()

MSJunctionControl& MSNet::getJunctionControl ( )
inlineinherited

Returns the junctions control.

Returns
The junctions control
See also
MSJunctionControl
myJunctions

Definition at line 419 of file MSNet.h.

References MSNet::myJunctions.

Referenced by libsumo::Junction::getIDList(), and libsumo::Junction::getJunction().

◆ getJunctionIDs()

std::vector< GUIGlID > GUINet::getJunctionIDs ( bool  includeInternal) const

Definition at line 230 of file GUINet.cpp.

References myJunctionWrapper.

Referenced by getParameterWindow().

◆ getJunctionPosition()

Position GUINet::getJunctionPosition ( const std::string &  name) const

returns the position of a junction

Definition at line 175 of file GUINet.cpp.

References NamedObjectCont< T >::get(), MSJunction::getPosition(), and MSNet::myJunctions.

◆ getLinkTLID()

int GUINet::getLinkTLID ( MSLink link) const

Returns the gl-id of the traffic light that controls the given link valid only if the link is controlled by a tls

Definition at line 188 of file GUINet.cpp.

References MSTLLogicControl::getActive(), myLinks2Logic, MSNet::myLogics, and myLogics2Wrapper.

Referenced by GUILane::drawLinkRule().

◆ getLinkTLIndex()

int GUINet::getLinkTLIndex ( MSLink link) const

Returns the index of the link within the junction that controls the given link; Returns -1 if the link is not controlled by a tls

Definition at line 203 of file GUINet.cpp.

References MSTLLogicControl::getActive(), myLinks2Logic, MSNet::myLogics, and myLogics2Wrapper.

Referenced by GUILane::drawTLSLinkNo().

◆ getMeanRTFactor()

double GUINet::getMeanRTFactor ( int  duration) const

Returns the simulation speed as a factor to real time.

Definition at line 364 of file GUINet.cpp.

References myOverallSimDuration.

◆ getMeanUPS()

double GUINet::getMeanUPS ( ) const

Returns the update per seconds rate.

Definition at line 373 of file GUINet.cpp.

References myOverallSimDuration, and MSNet::myVehiclesMoved.

Referenced by getParameterWindow().

◆ getMicrosimID()

◆ getNetworkVersion()

double MSNet::getNetworkVersion ( ) const
inlineinherited

return the network version

Definition at line 668 of file MSNet.h.

References MSNet::myVersion.

◆ getOptionalName()

const std::string GUIGlObject::getOptionalName ( ) const
virtualinherited

Returns the name of the object (default "")

Reimplemented in GNEEdge, GUIParkingArea, GUIJunctionWrapper, GUIEdge, GUIContainerStop, GUIChargingStation, GUIBusStop, and GUIBaseVehicle.

Definition at line 168 of file GUIGlObject.cpp.

Referenced by GUIDialog_GLObjChooser::getObjectName().

◆ getParameterWindow()

GUIParameterTableWindow * GUINet::getParameterWindow ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
overridevirtual

Returns an own parameter window.

Parameters
[in]appThe application needed to build the parameter window
[in]parentThe parent window needed to build the parameter window
Returns
The built parameter window
See also
GUIGlObject::getParameterWindow

Implements GUIGlObject.

Definition at line 422 of file GUINet.cpp.

References GUIParameterTableWindow::closeBuilding(), MSVehicleControl::getArrivedVehicleNo(), getAvgDepartDelay(), getAvgDuration(), getAvgRouteLength(), getAvgTimeLoss(), getAvgTripSpeed(), getAvgWaitingTime(), getAvgWalkDuration(), getAvgWalkRouteLength(), getAvgWalkTimeLoss(), MSVehicleControl::getCollisionCount(), MSVehicleControl::getDepartedVehicleNo(), MSVehicleControl::getDiscardedVehicleNo(), GUISUMOAbstractView::getFPS(), MSVehicleControl::getHaltingVehicleNo(), getIdleDuration(), GUIEdge::getIDs(), MSNet::getInsertionControl(), MSTransportableControl::getJammedNumber(), getJunctionIDs(), MSTransportableControl::getLoadedNumber(), MSVehicleControl::getLoadedVehicleNo(), getMeanUPS(), OptionsCont::getOptions(), getPersonControl(), getRTFactor(), MSTransportableControl::getRunningNumber(), MSVehicleControl::getRunningVehicleNo(), getSimDuration(), MSVehicleControl::getTeleportCount(), GUIEdge::getTotalLength(), getUPS(), MSNet::getVehicleControl(), MSVehicleControl::getVehicleMeanSpeed(), MSVehicleControl::getVehicleMeanSpeedRelative(), MSInsertionControl::getWaitingVehicleNo(), getWholeDuration(), MSNet::logSimulationDuration(), GUIParameterTableWindow::mkItem(), MSNet::myPersonControl, MSNet::myVersion, and toString().

Referenced by GUIApplicationWindow::onCmdShowStats().

◆ getParentName()

◆ getPedestrianRouter()

MSNet::MSPedestrianRouter & MSNet::getPedestrianRouter ( const int  rngIndex,
const MSEdgeVector prohibited = MSEdgeVector() 
) const
inherited

◆ getPersonControl()

MSTransportableControl & GUINet::getPersonControl ( )
overridevirtual

Returns the person control.

If the person control does not exist, yet, it is created.

Returns
The person control
See also
MSPersonControl
myPersonControl

Reimplemented from MSNet.

Definition at line 119 of file GUINet.cpp.

References MSNet::myPersonControl.

Referenced by GUIApplicationWindow::checkGamingEventsDRT(), getParameterWindow(), and GUIApplicationWindow::handleEvent_SimulationStep().

◆ getPopUpMenu()

GUIGLObjectPopupMenu * GUINet::getPopUpMenu ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
overridevirtual

Returns an own popup-menu.

Parameters
[in]appThe application needed to build the popup-menu
[in]parentThe parent window needed to build the popup-menu
Returns
The built popup-menu
See also
GUIGlObject::getPopUpMenu

Implements GUIGlObject.

Definition at line 410 of file GUINet.cpp.

References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), and GUIGlObject::buildShowParamsPopupEntry().

◆ getRestrictions()

const std::map< SUMOVehicleClass, double > * MSNet::getRestrictions ( const std::string &  id) const
inherited

Returns the restrictions for an edge type If no restrictions are present, 0 is returned.

Parameters
[in]idThe id of the type
Returns
The mapping of vehicle classes to maximum speeds

Definition at line 330 of file MSNet.cpp.

References MSNet::myRestrictions.

Referenced by MSLane::initRestrictions().

◆ getRouterEffort()

SUMOAbstractRouter< MSEdge, SUMOVehicle > & MSNet::getRouterEffort ( const int  rngIndex,
const MSEdgeVector prohibited = MSEdgeVector() 
) const
inherited

◆ getRouterTT()

◆ getRTFactor()

double GUINet::getRTFactor ( ) const

Returns the simulation speed as a factor to real time.

Definition at line 346 of file GUINet.cpp.

References DELTA_T, and myLastSimDuration.

Referenced by getParameterWindow().

◆ getShapeContainer()

◆ getSimDuration()

int GUINet::getSimDuration ( ) const

Returns the duration of the last step's simulation part (in ms)

Returns
How long it took to compute the last step

Definition at line 332 of file GUINet.cpp.

References myLastSimDuration.

Referenced by getParameterWindow().

◆ getStateMessage()

std::string MSNet::getStateMessage ( MSNet::SimulationState  state)
staticinherited

◆ getStoppingPlace()

◆ getStoppingPlaceID()

std::string MSNet::getStoppingPlaceID ( const MSLane lane,
const double  pos,
const SumoXMLTag  category 
) const
inherited

Returns the stop of the given category close to the given position.

Parameters
[in]lanethe lane of the stop to return.
[in]posthe position of the stop to return.
[in]categoryThe type of stop
Returns
The stop id on the location, or "" if no such stop exists

Definition at line 920 of file MSNet.cpp.

References MSStoppingPlace::getBeginLanePosition(), Named::getID(), MSStoppingPlace::getLane(), MSNet::myStoppingPlaces, and POSITION_EPS.

Referenced by MSDevice_Battery::notifyMove().

◆ getStoppingPlaces()

const NamedObjectCont< MSStoppingPlace * > & MSNet::getStoppingPlaces ( SumoXMLTag  category) const
inherited

Definition at line 934 of file MSNet.cpp.

References MSNet::myStoppingPlaces, and toString().

Referenced by GUIViewTraffic::onGamingClick().

◆ getTLSControl()

◆ getTLSIDs()

std::vector< GUIGlID > GUINet::getTLSIDs ( ) const

Returns the gl-ids of all traffic light logics within the net.

Definition at line 242 of file GUINet.cpp.

References myLogics2Wrapper.

◆ getTravelTime()

double MSNet::getTravelTime ( const MSEdge *const  e,
const SUMOVehicle *const  v,
double  t 
)
staticinherited

Returns the travel time to pass an edge.

Parameters
[in]eThe edge for which the travel time to be passed shall be returned
[in]vThe vehicle that is rerouted
[in]tThe time for which the travel time shall be returned [s]
Returns
The travel time for an edge
See also
DijkstraRouter_ByProxi

Definition at line 150 of file MSNet.cpp.

References MSNet::getInstance(), MSEdge::getMinimumTravelTime(), MSNet::getWeightsStorage(), MSVehicle::getWeightsStorage(), and MSEdgeWeightsStorage::retrieveExistingTravelTime().

Referenced by MSNet::getRouterEffort(), MSNet::getRouterTT(), MSEdge::getTravelTimeStatic(), MSRoutingEngine::initEdgeWeights(), and MSRoutingEngine::initRouter().

◆ getType()

GUIGlObjectType GUIGlObject::getType ( ) const
inherited

Returns the type of the object as coded in GUIGlObjectType.

See also
GUIGlObjectType

Definition at line 180 of file GUIGlObject.cpp.

References GUIGlObject::myGLObjectType.

Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIPerson::drawAction_drawWalkingareaPath(), GNECalibrator::drawCalibratorSymbol(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNERerouter::drawGL(), GNERouteProbe::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawPartialTripFromTo(), GNEEdge::drawRerouterSymbol(), GNEJunction::drawTLSIcon(), GNELane::drawVSSSymbol(), GNEViewNet::getAttributeCarriersInBoundary(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::onCmdSave(), GUISUMOViewParent::onCmdSpeedFactor(), GUIDialog_GLObjChooser::onCmdTrack(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOViewParent::onUpdSpeedFactor(), GNEPerson::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GUISUMOAbstractView::showToolTipFor(), GUISelectedStorage::toggleSelection(), GNEPerson::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEVehicle::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), and GNENetElement::unselectAttributeCarrier().

◆ getTypeParameterWindow()

GUIParameterTableWindow * GUIGlObject::getTypeParameterWindow ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
virtualinherited

Returns an own type parameter window (optional)

Parameters
[in]appThe application needed to build the parameter window
[in]parentThe parent window needed to build the parameter window
Returns
The built parameter window

Reimplemented in GUIBaseVehicle, GUIMEVehicle, GUIVehicle, GUIPerson, and GUIContainer.

Definition at line 155 of file GUIGlObject.cpp.

References UNUSED_PARAMETER.

Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().

◆ getUPS()

double GUINet::getUPS ( ) const

Returns the update per seconds rate.

Definition at line 355 of file GUINet.cpp.

References myLastSimDuration, and myLastVehicleMovementCount.

Referenced by getParameterWindow().

◆ getVehicleControl()

MSVehicleControl& MSNet::getVehicleControl ( )
inlineinherited

Returns the vehicle control.

Returns
The vehicle control
See also
MSVehicleControl
myVehicleControl

Definition at line 336 of file MSNet.h.

References MSNet::myVehicleControl.

Referenced by MSNet::adaptIntermodalRouter(), libsumo::Person::add(), libsumo::Vehicle::add(), MSVehicleTransfer::add(), MSRouteHandler::addPersonTrip(), MELoop::changeSegment(), GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), MSVehicleTransfer::checkInsertions(), MSRouteHandler::closeContainer(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), MSRouteHandler::closeVehicle(), MSStateHandler::closeVehicle(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), MSInsertionControl::determineCandidates(), MSDevice::equippedByDefaultAssignmentOptions(), METriggeredCalibrator::execute(), MSVTypeProbe::execute(), MSCalibrator::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), MSEdgeControl::executeMovements(), libsumo::Simulation::findIntermodalRoute(), libsumo::Simulation::findRoute(), libsumo::Vehicle::getIDList(), libsumo::VehicleType::getIDList(), MSLane::getMaximumBrakeDist(), libsumo::Simulation::getMinExpectedNumber(), getParameterWindow(), MSVTKExport::getPositions(), MSCFModel_CC::getRadarMeasurements(), MSVTKExport::getSpeed(), libsumo::Polygon::getTrafficObject(), libsumo::Helper::getVehicle(), libsumo::VehicleType::getVType(), MSLane::handleCollisionBetween(), GUIApplicationWindow::handleEvent_SimulationStep(), MSDevice_ToC::initColorScheme(), libsumo::Vehicle::isOnInit(), MSDevice_ToC::MSDevice_ToC(), MSRouteHandler::myStartElement(), MSStateHandler::myStartElement(), MSCalibrator::myStartElement(), MSDevice_Bluelight::notifyMove(), GUIApplicationWindow::onCmdDemandScale(), GUISUMOViewParent::onCmdLocate(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdRemoveObject(), MSBaseVehicle::onDepart(), GUIViewTraffic::onGamingClick(), MSRouteHandler::openVehicleTypeDistribution(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), MSDevice_SSM::processEncounters(), MSVehicle::processNextStop(), TraCIServerAPI_GUI::processSet(), TraCIServerAPI_Vehicle::processSet(), MESegment::receive(), METriggeredCalibrator::remainingVehicleCapacity(), MSCalibrator::remainingVehicleCapacity(), libsumo::Vehicle::remove(), MSCalibrator::removePending(), MSBaseVehicle::replaceVehicleType(), MSTransportable::replaceVehicleType(), MSVehicle::resumeFromStopping(), MSStateHandler::saveState(), MSVehicleType::setActionStepLength(), MSTransportable::Stage_Trip::setArrived(), MSDevice_ToC::setParameter(), MSCFModel_CC::setParameter(), setSimDuration(), libsumo::Person::setType(), libsumo::Vehicle::setType(), MSDevice_ToC::switchHolderType(), MELoop::teleportVehicle(), MSDetectorFileOutput::vehicleApplies(), MSTriggeredRerouter::vehicleApplies(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSAmitranTrajectories::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSNet::writeOutput(), MSFullExport::writeVehicles(), MSTransportable::~MSTransportable(), and MSVehicle::~MSVehicle().

◆ getVisualisationSpeedUp() [1/2]

SUMORTree& GUINet::getVisualisationSpeedUp ( )
inline

Returns the RTree used for visualisation speed-up.

Returns
The visualisation speed-up

Definition at line 288 of file GUINet.h.

References myGrid.

◆ getVisualisationSpeedUp() [2/2]

const SUMORTree& GUINet::getVisualisationSpeedUp ( ) const
inline

Returns the RTree used for visualisation speed-up.

Returns
The visualisation speed-up

Definition at line 296 of file GUINet.h.

References myGrid.

◆ getWeightsStorage()

MSEdgeWeightsStorage & MSNet::getWeightsStorage ( )
inherited

◆ getWholeDuration()

int GUINet::getWholeDuration ( ) const

Returns the duration of the last step (sim+visualisation+idle) (in ms)

Returns
How long it took to compute and display the last step

Definition at line 326 of file GUINet.cpp.

References myLastIdleDuration, and myLastSimDuration.

Referenced by getParameterWindow().

◆ guiSimulationStep()

void GUINet::guiSimulationStep ( )

Some further steps needed for gui processing.

Definition at line 216 of file GUINet.cpp.

References GLObjectValuePassConnector< T >::updateAll().

Referenced by GUIRunThread::makeStep().

◆ hasBidiEdges()

bool MSNet::hasBidiEdges ( ) const
inlineinherited

return whether the network contains bidirectional rail edges

Definition at line 658 of file MSNet.h.

References MSNet::myHasBidiEdges.

Referenced by MSRoutingEngine::initRouter().

◆ hasContainers()

bool MSNet::hasContainers ( ) const
inlineinherited

◆ hasElevation()

bool MSNet::hasElevation ( ) const
inlineinherited

return whether the network contains elevation data

Definition at line 648 of file MSNet.h.

References MSNet::myHasElevation.

Referenced by MSVTypeProbe::execute().

◆ hasInstance()

static bool MSNet::hasInstance ( )
inlinestaticinherited

Returns whether the network was already constructed.

Returns
whether the network was already constructed

Definition at line 143 of file MSNet.h.

References MSNet::myInstance.

Referenced by libsumo::Simulation::close(), MSVehicle::Influencer::GapControlState::init(), libsumo::Simulation::isLoaded(), libsumo::Helper::registerVehicleStateListener(), and signalHandler().

◆ hasInternalLinks()

bool MSNet::hasInternalLinks ( ) const
inlineinherited

◆ hasPedestrianNetwork()

bool MSNet::hasPedestrianNetwork ( ) const
inlineinherited

return whether the network contains walkingareas and crossings

Definition at line 653 of file MSNet.h.

References MSNet::myHasPedestrianNetwork.

Referenced by MSPModel_Striping::getNextLane().

◆ hasPermissions()

bool MSNet::hasPermissions ( ) const
inlineinherited

Returns whether the network has specific vehicle class permissions.

Returns
whether permissions are present

Definition at line 197 of file MSNet.h.

References MSNet::myHavePermissions.

◆ hasPersons()

◆ informVehicleStateListener()

void MSNet::informVehicleStateListener ( const SUMOVehicle *const  vehicle,
VehicleState  to,
const std::string &  info = "" 
)
inherited

◆ initGUIStructures()

◆ initStatic()

void MSNet::initStatic ( )
staticinherited

Place for static initializations of simulation components (called after successful net build)

Definition at line 175 of file MSNet.cpp.

References MSGlobals::gUseMesoSim, and MSVehicle::Influencer::init().

Referenced by MSNet::MSNet().

◆ initTLMap()

void GUINet::initTLMap ( )
private

Initialises the tl-logic map and wrappers.

Definition at line 137 of file GUINet.cpp.

References createTLWrapper(), MSTLLogicControl::getAllLogics(), and MSNet::getTLSControl().

Referenced by initGUIStructures().

◆ interrupt()

void MSNet::interrupt ( )
inlineinherited

Definition at line 675 of file MSNet.h.

References MSNet::myAmInterrupted.

Referenced by signalHandler().

◆ isGUINet()

bool GUINet::isGUINet ( ) const
inlineoverridevirtual

Returns whether this is a GUI Net.

Reimplemented from MSNet.

Definition at line 106 of file GUINet.h.

◆ isInterrupted()

bool MSNet::isInterrupted ( ) const
inlineinherited

Definition at line 679 of file MSNet.h.

References MSNet::myAmInterrupted.

◆ isSelected()

bool GUINet::isSelected ( const MSTrafficLightLogic tll) const
overridevirtual

return wheter the given logic (or rather it's wrapper) is selected in the GUI

Reimplemented from MSNet.

Definition at line 628 of file GUINet.cpp.

References GLO_TLLOGIC, gSelected, GUISelectedStorage::isSelected(), and myLogics2Wrapper.

◆ lefthand()

◆ loadEdgeData()

bool GUINet::loadEdgeData ( const std::string &  file)

◆ loadRoutes()

void MSNet::loadRoutes ( )
inherited

loads routes for the next few steps

Definition at line 381 of file MSNet.cpp.

References SUMORouteLoaderControl::loadNext(), MSNet::myRouteLoaders, and MSNet::myStep.

Referenced by NLBuilder::init(), GUIRunThread::init(), and MSNet::simulationStep().

◆ lock()

void GUINet::lock ( )

grant exclusive access to the simulation state

Definition at line 531 of file GUINet.cpp.

References myLock.

Referenced by GUIViewTraffic::doPaintGL().

◆ logSimulationDuration()

bool MSNet::logSimulationDuration ( ) const
inherited

Returns whether duration shall be logged.

Returns
Whether duration shall be logged

Definition at line 804 of file MSNet.cpp.

References MSNet::myLogExecutionTime.

Referenced by getParameterWindow().

◆ makeDynamicShapeUpdater()

MSDynamicShapeUpdater * MSNet::makeDynamicShapeUpdater ( )
inherited

Creates and returns a dynamic shapes updater.

See also
PolygonDynamics

Definition at line 826 of file MSNet.cpp.

References MSNet::getInstance(), MSNet::getShapeContainer(), and MSNet::myDynamicShapeUpdater.

Referenced by libsumo::Polygon::addDynamics().

◆ onLeftBtnPress()

virtual void GUIGlObject::onLeftBtnPress ( void *  )
inlinevirtualinherited

notify object about left click

Reimplemented in GUITriggeredRerouter::GUITriggeredRerouterEdge.

Definition at line 165 of file GUIGlObject.h.

Referenced by GUISUMOAbstractView::onLeftBtnPress().

◆ postSimStepOutput()

void MSNet::postSimStepOutput ( ) const
inherited

◆ preSimStepOutput()

void MSNet::preSimStepOutput ( ) const
inherited

Prints the current step number.

Called on the begin of a simulation step

Definition at line 841 of file MSNet.cpp.

References MSNet::myStep, and time2string().

Referenced by MSNet::simulate().

◆ removeActiveAddVisualisation()

virtual void GUIGlObject::removeActiveAddVisualisation ( GUISUMOAbstractView * const  ,
int   
)
inlinevirtualinherited

remove additional user-griggered visualisations

Reimplemented in GUIPerson, and GUIBaseVehicle.

Definition at line 162 of file GUIGlObject.h.

◆ removedPopupMenu()

virtual void GUIGlObject::removedPopupMenu ( )
inlinevirtualinherited

notify object about popup menu removal

Reimplemented in GUIBaseVehicle.

Definition at line 111 of file GUIGlObject.h.

Referenced by GUIGLObjectPopupMenu::~GUIGLObjectPopupMenu().

◆ removeParameterTable()

void GUIGlObject::removeParameterTable ( GUIParameterTableWindow w)
inherited

Lets this object know a parameter window showing the object's values was closed.

Parameters
[in]wThe closed parameter window

Definition at line 293 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().

◆ removeVehicleStateListener()

void MSNet::removeVehicleStateListener ( VehicleStateListener listener)
inherited

Removes a vehicle states listener.

Parameters
[in]listenerThe listener to remove

Definition at line 885 of file MSNet.cpp.

References MSNet::myVehicleStateListeners.

Referenced by MSVehicle::Influencer::GapControlState::cleanup().

◆ setCurrentTimeStep()

void MSNet::setCurrentTimeStep ( const SUMOTime  step)
inlineinherited

Sets the current simulation step (used by state loading)

Parameters
stepthe current simulation step

Definition at line 291 of file MSNet.h.

References MSNet::myStep.

Referenced by GUIRunThread::init().

◆ setIdleDuration()

void GUINet::setIdleDuration ( int  val)

Sets the duration of the last step's idle part.

Definition at line 404 of file GUINet.cpp.

References myLastIdleDuration.

Referenced by GUIRunThread::run().

◆ setMicrosimID()

void GUIGlObject::setMicrosimID ( const std::string &  newID)
virtualinherited

◆ setPermissionsFound()

void MSNet::setPermissionsFound ( )
inlineinherited

Labels the network to contain vehicle class permissions.

Definition at line 203 of file MSNet.h.

References MSNet::myHavePermissions.

Referenced by NLHandler::addLane().

◆ setSimDuration()

void GUINet::setSimDuration ( int  val)

Sets the duration of the last step's simulation part.

Definition at line 388 of file GUINet.cpp.

References MSVehicleControl::getRunningVehicleNo(), MSNet::getVehicleControl(), myLastSimDuration, myLastVehicleMovementCount, myOverallSimDuration, and myOverallVehicleCount.

Referenced by GUIRunThread::run().

◆ simulate()

MSNet::SimulationState MSNet::simulate ( SUMOTime  start,
SUMOTime  stop 
)
inherited

Simulates from timestep start to stop.

Parameters
[in]startThe begin time step of the simulation
[in]stopThe end time step of the simulation
Returns
Returns always 0
Todo:
Recheck return value
Todo:
What exceptions may occure?

Definition at line 340 of file MSNet.cpp.

References MSNet::closeSimulation(), MSNet::getCurrentTimeStep(), TraCIServer::getInstance(), TraCIServer::getLoadArgs(), MSNet::getStateMessage(), MSNet::myLogStepNumber, MSNet::myStep, MSNet::postSimStepOutput(), MSNet::preSimStepOutput(), OptionsIO::setArgs(), MSNet::SIMSTATE_LOADING, MSNet::SIMSTATE_RUNNING, SIMTIME, MSNet::simulationState(), MSNet::simulationStep(), time2string(), VERSION_STRING, TraCIServer::wasClosed(), and WRITE_MESSAGE.

Referenced by main().

◆ simulationState()

◆ simulationStep()

void GUINet::simulationStep ( )

Performs a single simulation step (locking the simulation)

Definition at line 223 of file GUINet.cpp.

References myLock, and MSNet::simulationStep().

Referenced by GUIRunThread::makeStep().

◆ unlock()

void GUINet::unlock ( )

release exclusive access to the simulation state

Definition at line 537 of file GUINet.cpp.

References myLock.

Referenced by GUIViewTraffic::doPaintGL().

◆ vehicleExists()

bool GUINet::vehicleExists ( const std::string &  name) const

returns the information whether the vehicle still exists

Definition at line 182 of file GUINet.cpp.

References MSVehicleControl::getVehicle(), and MSNet::myVehicleControl.

◆ warnOnce()

bool MSNet::warnOnce ( const std::string &  typeAndID)
inherited

return whether a warning regarding the given object shall be issued

Definition at line 1093 of file MSNet.cpp.

References MSNet::myWarnedOnce.

Referenced by MSVehicle::addStop().

◆ writeChargingStationOutput()

void MSNet::writeChargingStationOutput ( ) const
inherited

write charging station output

Definition at line 945 of file MSNet.cpp.

References OutputDevice::getDeviceByOption(), MSNet::myStoppingPlaces, and SUMO_TAG_CHARGING_STATION.

Referenced by MSNet::closeSimulation().

◆ writeOutput()

void MSNet::writeOutput ( )
inherited

Write netstate, summary and detector output.

Todo:
Which exceptions may occur?

Definition at line 678 of file MSNet.cpp.

References OutputDevice::closeTag(), DELTA_T, MSVehicleControl::getArrivedVehicleNo(), MSVehicleControl::getCollisionCount(), MSVehicleControl::getDepartedVehicleNo(), OutputDevice::getDeviceByOption(), MSEdgeControl::getEdges(), MSVehicleControl::getEndedVehicleNo(), MSVehicleControl::getHaltingVehicleNo(), MSNet::getInstance(), MSDevice_SSM::getInstances(), MSDevice_ToC::getInstances(), OptionsCont::getInt(), MSVehicleControl::getLoadedVehicleNo(), OptionsCont::getOptions(), MSVehicleControl::getRunningVehicleNo(), OptionsCont::getString(), MSVehicleControl::getTeleportCount(), MSVehicleControl::getTotalDepartureDelay(), MSVehicleControl::getTotalTravelTime(), MSNet::getVehicleControl(), MSVehicleControl::getVehicleMeanSpeeds(), MSInsertionControl::getWaitingVehicleNo(), OptionsCont::isSet(), MSNet::myDetectorControl, MSNet::myEdges, MSNet::myHasElevation, MSNet::myInserter, MSNet::myLogExecutionTime, MSNet::mySimStepDuration, MSNet::myStep, MSNet::myVehicleControl, OutputDevice::openTag(), STEPS2TIME, SUMO_ATTR_ID, time2string(), MSDetectorControl::updateDetectors(), MSXMLRawOut::write(), MSAmitranTrajectories::write(), MSFullExport::write(), MSQueueExport::write(), MSVTKExport::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), OutputDevice::writeAttr(), and MSDetectorControl::writeOutput().

Referenced by MSNet::simulationStep().

◆ writeRailSignalBlocks()

void MSNet::writeRailSignalBlocks ( ) const
inherited

write rail signal block output

Definition at line 956 of file MSNet.cpp.

References MSTLLogicControl::getAllLogics(), OutputDevice::getDeviceByOption(), MSNet::myLogics, and MSRailSignal::writeBlocks().

Referenced by MSNet::closeSimulation().

Friends And Related Function Documentation

◆ GUIOSGBuilder

friend class GUIOSGBuilder
friend

Definition at line 350 of file GUINet.h.

◆ GUITrafficLightLogicWrapper

friend class GUITrafficLightLogicWrapper
friend

Definition at line 84 of file GUINet.h.

Referenced by createTLWrapper().

Field Documentation

◆ GUIGlObjectTypeNamesInitializer

StringBijection< GUIGlObjectType >::Entry GUIGlObject::GUIGlObjectTypeNamesInitializer
staticprivateinherited

LinkStates (Currently unused)

vector for TypeNames Initializer

Definition at line 277 of file GUIGlObject.h.

◆ INVALID_ID

◆ myAmInterrupted

bool MSNet::myAmInterrupted
protectedinherited

whether an interrupt occured

Definition at line 707 of file MSNet.h.

Referenced by MSNet::interrupt(), MSNet::isInterrupted(), and MSNet::simulationState().

◆ myBeginOfTimestepEvents

MSEventControl* MSNet::myBeginOfTimestepEvents
protectedinherited

Controls events executed at the begin of a time step;.

See also
MSEventControl

Definition at line 731 of file MSNet.h.

Referenced by MSNet::getBeginOfTimestepEvents(), MSNet::MSNet(), MSNet::simulationStep(), and MSNet::~MSNet().

◆ myBoundary

Boundary GUINet::myBoundary
protected

The networks boundary.

Definition at line 357 of file GUINet.h.

Referenced by getBoundary(), and initGUIStructures().

◆ myContainerControl

MSTransportableControl* MSNet::myContainerControl
protectedinherited

◆ myDetectorControl

MSDetectorControl* MSNet::myDetectorControl
protectedinherited

◆ myDetectorWrapper

std::vector<GUIDetectorWrapper*> GUINet::myDetectorWrapper
protected

A detector dictionary.

Definition at line 366 of file GUINet.h.

Referenced by initGUIStructures(), and ~GUINet().

◆ myDynamicShapeUpdater

std::unique_ptr<MSDynamicShapeUpdater> MSNet::myDynamicShapeUpdater
protectedinherited

Updater for dynamic shapes that are tracking traffic objects (ensures removal of shape dynamics when the objects are removed)

See also
utils/shapes/PolygonDynamics

Definition at line 839 of file MSNet.h.

Referenced by MSNet::getDynamicShapeUpdater(), and MSNet::makeDynamicShapeUpdater().

◆ myEdgeDataEndTime

SUMOTime MSNet::myEdgeDataEndTime
protectedinherited

end of loaded edgeData

Definition at line 807 of file MSNet.h.

Referenced by loadEdgeData(), and MSNet::simulationState().

◆ myEdges

MSEdgeControl* MSNet::myEdges
protectedinherited

◆ myEdgeWeights

MSEdgeWeightsStorage* MSNet::myEdgeWeights
protectedinherited

The net's knowledge about edge efforts/travel times;.

See also
MSEdgeWeightsStorage

Definition at line 739 of file MSNet.h.

Referenced by MSNet::getWeightsStorage(), MSNet::MSNet(), and MSNet::~MSNet().

◆ myEdgeWrapper

std::vector<GUIEdge*> GUINet::myEdgeWrapper
protected

Wrapped MS-edges.

Definition at line 360 of file GUINet.h.

Referenced by initGUIStructures().

◆ myEndOfTimestepEvents

MSEventControl* MSNet::myEndOfTimestepEvents
protectedinherited

Controls events executed at the end of a time step;.

See also
MSEventControl

Definition at line 733 of file MSNet.h.

Referenced by MSNet::getEndOfTimestepEvents(), MSNet::MSNet(), MSNet::simulationStep(), and MSNet::~MSNet().

◆ myFullName

std::string GUIGlObject::myFullName
privateinherited

full name of GL Object

Definition at line 260 of file GUIGlObject.h.

Referenced by GUIGlObject::getFullName(), GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().

◆ myGlID

GUIGlID GUIGlObject::myGlID
privateinherited

The numerical id of the object.

Definition at line 251 of file GUIGlObject.h.

Referenced by GUIGlObject::getGlID(), and GUIGlObject::GUIGlObject().

◆ myGLObjectType

const GUIGlObjectType GUIGlObject::myGLObjectType
privateinherited

The type of the object.

Definition at line 254 of file GUIGlObject.h.

Referenced by GUIGlObject::createFullName(), GUIGlObject::getType(), and GUIGlObject::GUIGlObject().

◆ myGrid

LayeredRTree GUINet::myGrid
protected

The visualization speed-up.

Definition at line 354 of file GUINet.h.

Referenced by createTLWrapper(), getVisualisationSpeedUp(), and initGUIStructures().

◆ myHasBidiEdges

bool MSNet::myHasBidiEdges
protectedinherited

Whether the network contains bidirectional rail edges.

Definition at line 798 of file MSNet.h.

Referenced by MSNet::closeBuilding(), and MSNet::hasBidiEdges().

◆ myHasElevation

bool MSNet::myHasElevation
protectedinherited

Whether the network contains elevation data.

Definition at line 792 of file MSNet.h.

Referenced by MSNet::closeBuilding(), MSNet::hasElevation(), and MSNet::writeOutput().

◆ myHasInternalLinks

bool MSNet::myHasInternalLinks
protectedinherited

Whether the network contains internal links/lanes/edges.

Definition at line 789 of file MSNet.h.

Referenced by MSNet::closeBuilding(), and MSNet::hasInternalLinks().

◆ myHasPedestrianNetwork

bool MSNet::myHasPedestrianNetwork
protectedinherited

Whether the network contains pedestrian network elements.

Definition at line 795 of file MSNet.h.

Referenced by MSNet::closeBuilding(), and MSNet::hasPedestrianNetwork().

◆ myHavePermissions

bool MSNet::myHavePermissions
protectedinherited

Whether the network contains edges which not all vehicles may pass.

Definition at line 783 of file MSNet.h.

Referenced by MSNet::hasPermissions(), and MSNet::setPermissionsFound().

◆ myInserter

◆ myInsertionEvents

MSEventControl* MSNet::myInsertionEvents
protectedinherited

Controls insertion events;.

See also
MSEventControl

Definition at line 735 of file MSNet.h.

Referenced by MSNet::getInsertionEvents(), MSNet::MSNet(), MSNet::simulationStep(), and MSNet::~MSNet().

◆ myInstance

MSNet * MSNet::myInstance = nullptr
staticprotectedinherited

Unique instance of MSNet.

Definition at line 695 of file MSNet.h.

Referenced by MSNet::adaptIntermodalRouter(), MSNet::getInstance(), MSNet::hasInstance(), MSNet::MSNet(), and MSNet::~MSNet().

◆ myIntermodalRouter

std::map<int, MSIntermodalRouter*> MSNet::myIntermodalRouter
mutableprotectedinherited

Definition at line 831 of file MSNet.h.

Referenced by MSNet::getIntermodalRouter(), and MSNet::~MSNet().

◆ myJunctions

MSJunctionControl* MSNet::myJunctions
protectedinherited

Controls junctions, realizes right-of-way rules;.

See also
MSJunctionControl

Definition at line 723 of file MSNet.h.

Referenced by MSNet::closeBuilding(), MSNet::getJunctionControl(), getJunctionPosition(), initGUIStructures(), MSNet::MSNet(), and MSNet::~MSNet().

◆ myJunctionWrapper

std::vector<GUIJunctionWrapper*> GUINet::myJunctionWrapper
protected

Wrapped MS-junctions.

Definition at line 363 of file GUINet.h.

Referenced by getJunctionIDs(), initGUIStructures(), and ~GUINet().

◆ myLanesRTree

std::pair<bool, NamedRTree> MSNet::myLanesRTree
mutableprotectedinherited

An RTree structure holding lane IDs.

Definition at line 834 of file MSNet.h.

Referenced by MSNet::MSNet(), and MSNet::~MSNet().

◆ myLastIdleDuration

int GUINet::myLastIdleDuration
protected

Definition at line 382 of file GUINet.h.

Referenced by getIdleDuration(), getWholeDuration(), and setIdleDuration().

◆ myLastSimDuration

int GUINet::myLastSimDuration
protected

The step durations (simulation, /*visualisation, *‍/idle)

Definition at line 382 of file GUINet.h.

Referenced by getRTFactor(), getSimDuration(), getUPS(), getWholeDuration(), and setSimDuration().

◆ myLastVehicleMovementCount

long GUINet::myLastVehicleMovementCount
protected

Definition at line 384 of file GUINet.h.

Referenced by getUPS(), and setSimDuration().

◆ myLefthand

bool MSNet::myLefthand
protectedinherited

Whether the network was built for left-hand traffic.

Definition at line 801 of file MSNet.h.

Referenced by MSNet::closeBuilding(), and MSNet::lefthand().

◆ myLinks2Logic

Links2LogicMap GUINet::myLinks2Logic
protected

The link-to-logic-id map.

Definition at line 372 of file GUINet.h.

Referenced by createTLWrapper(), getLinkTLID(), and getLinkTLIndex().

◆ myLoadedEdgeData

std::map<std::string, MSEdgeWeightsStorage*> GUINet::myLoadedEdgeData
protected

loaded edge data for visualization

Definition at line 388 of file GUINet.h.

Referenced by getEdgeData(), getEdgeDataAttrs(), loadEdgeData(), and ~GUINet().

◆ myLock

FXMutex GUINet::myLock
mutableprivate

The mutex used to avoid concurrent updates of the vehicle buffer.

Definition at line 429 of file GUINet.h.

Referenced by lock(), simulationStep(), unlock(), and ~GUINet().

◆ myLogExecutionTime

bool MSNet::myLogExecutionTime
protectedinherited

Information whether the simulation duration shall be logged.

Definition at line 748 of file MSNet.h.

Referenced by MSNet::closeSimulation(), MSNet::logSimulationDuration(), MSNet::MSNet(), MSNet::postSimStepOutput(), MSNet::simulationStep(), and MSNet::writeOutput().

◆ myLogics

MSTLLogicControl* MSNet::myLogics
protectedinherited

◆ myLogics2Wrapper

Logics2WrapperMap GUINet::myLogics2Wrapper
protected

The traffic light-to-wrapper map.

Definition at line 378 of file GUINet.h.

Referenced by createTLWrapper(), getLinkTLID(), getLinkTLIndex(), getTLSIDs(), isSelected(), and ~GUINet().

◆ myLogStepNumber

bool MSNet::myLogStepNumber
protectedinherited

Information whether the number of the simulation step shall be logged.

Definition at line 751 of file MSNet.h.

Referenced by MSNet::MSNet(), and MSNet::simulate().

◆ myMaxTeleports

int MSNet::myMaxTeleports
protectedinherited

Maximum number of teleports.

Definition at line 704 of file MSNet.h.

Referenced by MSNet::MSNet(), and MSNet::simulationState().

◆ myMicrosimID

std::string GUIGlObject::myMicrosimID
privateinherited

ID of GL object.

Definition at line 257 of file GUIGlObject.h.

Referenced by GUIGlObject::getMicrosimID(), and GUIGlObject::setMicrosimID().

◆ myOverallSimDuration

long GUINet::myOverallSimDuration
protected

Definition at line 385 of file GUINet.h.

Referenced by getMeanRTFactor(), getMeanUPS(), and setSimDuration().

◆ myOverallVehicleCount

long GUINet::myOverallVehicleCount
protected

Definition at line 384 of file GUINet.h.

Referenced by setSimDuration().

◆ myParamWindows

std::set<GUIParameterTableWindow*> GUIGlObject::myParamWindows
privateinherited

Parameter table windows which refer to this object.

Definition at line 263 of file GUIGlObject.h.

Referenced by GUIGlObject::addParameterTable(), GUIGlObject::removeParameterTable(), and GUIGlObject::~GUIGlObject().

◆ myPedestrianRouter

std::map<int, MSPedestrianRouter*> MSNet::myPedestrianRouter
mutableprotectedinherited

Definition at line 830 of file MSNet.h.

Referenced by MSNet::getPedestrianRouter(), and MSNet::~MSNet().

◆ myPersonControl

MSTransportableControl* MSNet::myPersonControl
protectedinherited

◆ myPersonsMoved

long long int MSNet::myPersonsMoved
protectedinherited

Definition at line 761 of file MSNet.h.

Referenced by MSNet::generateStatistics(), and MSNet::simulationStep().

◆ myRestrictions

std::map<std::string, std::map<SUMOVehicleClass, double> > MSNet::myRestrictions
protectedinherited

The vehicle class specific speed restrictions.

Definition at line 786 of file MSNet.h.

Referenced by MSNet::addRestriction(), and MSNet::getRestrictions().

◆ myRouteLoaders

SUMORouteLoaderControl* MSNet::myRouteLoaders
protectedinherited

Route loader for dynamic loading of routes.

Definition at line 698 of file MSNet.h.

Referenced by MSNet::closeBuilding(), MSNet::loadRoutes(), MSNet::MSNet(), and MSNet::~MSNet().

◆ myRouterEffort

std::map<int, SUMOAbstractRouter<MSEdge, SUMOVehicle>*> MSNet::myRouterEffort
mutableprotectedinherited

Definition at line 829 of file MSNet.h.

Referenced by MSNet::getRouterEffort(), and MSNet::~MSNet().

◆ myRouterTT

std::map<int, SUMOAbstractRouter<MSEdge, SUMOVehicle>*> MSNet::myRouterTT
mutableprotectedinherited

Definition at line 828 of file MSNet.h.

Referenced by MSNet::getRouterTT(), and MSNet::~MSNet().

◆ myShapeContainer

ShapeContainer* MSNet::myShapeContainer
protectedinherited

A container for geometrical shapes;.

See also
ShapeContainer

Definition at line 737 of file MSNet.h.

Referenced by MSNet::getShapeContainer(), MSNet::MSNet(), and MSNet::~MSNet().

◆ mySimBeginMillis

long MSNet::mySimBeginMillis
protectedinherited

The overall simulation duration.

Definition at line 757 of file MSNet.h.

Referenced by MSNet::closeBuilding(), and MSNet::generateStatistics().

◆ mySimStepDuration

long MSNet::mySimStepDuration = 0
protectedinherited

Definition at line 754 of file MSNet.h.

Referenced by MSNet::postSimStepOutput(), MSNet::simulationStep(), and MSNet::writeOutput().

◆ myStateDumpFiles

std::vector<std::string> MSNet::myStateDumpFiles
protectedinherited

The names for the state files.

Definition at line 772 of file MSNet.h.

Referenced by MSNet::closeBuilding(), and MSNet::simulationStep().

◆ myStateDumpPeriod

SUMOTime MSNet::myStateDumpPeriod
protectedinherited

The period for writing state.

Definition at line 774 of file MSNet.h.

Referenced by MSNet::closeBuilding(), and MSNet::simulationStep().

◆ myStateDumpPrefix

std::string MSNet::myStateDumpPrefix
protectedinherited

name components for periodic state

Definition at line 776 of file MSNet.h.

Referenced by MSNet::closeBuilding(), and MSNet::simulationStep().

◆ myStateDumpSuffix

std::string MSNet::myStateDumpSuffix
protectedinherited

Definition at line 777 of file MSNet.h.

Referenced by MSNet::closeBuilding(), and MSNet::simulationStep().

◆ myStateDumpTimes

std::vector<SUMOTime> MSNet::myStateDumpTimes
protectedinherited

Times at which a state shall be written.

Definition at line 770 of file MSNet.h.

Referenced by MSNet::closeBuilding(), and MSNet::simulationStep().

◆ myStep

◆ myStoppingPlaces

std::map<SumoXMLTag, NamedObjectCont<MSStoppingPlace*> > MSNet::myStoppingPlaces
protectedinherited

◆ myTraCIStepDuration

long MSNet::myTraCIStepDuration = 0
protectedinherited

The last simulation step duration.

Definition at line 754 of file MSNet.h.

Referenced by MSNet::postSimStepOutput(), and MSNet::simulationStep().

◆ myVehicleControl

◆ myVehiclesMoved

long long int MSNet::myVehiclesMoved
protectedinherited

The overall number of vehicle movements.

Definition at line 760 of file MSNet.h.

Referenced by MSNet::generateStatistics(), getMeanUPS(), and MSNet::simulationStep().

◆ myVehicleStateListeners

std::vector<VehicleStateListener*> MSNet::myVehicleStateListeners
protectedinherited

Container for vehicle state listener.

Definition at line 813 of file MSNet.h.

Referenced by MSNet::addVehicleStateListener(), MSNet::informVehicleStateListener(), and MSNet::removeVehicleStateListener().

◆ myVersion

double MSNet::myVersion
protectedinherited

the network version

Definition at line 804 of file MSNet.h.

Referenced by MSNet::closeBuilding(), MSNet::getNetworkVersion(), and getParameterWindow().

◆ myWarnedOnce

std::map<std::string, bool> MSNet::myWarnedOnce
protectedinherited

container to record warnings that shall only be issued once

Definition at line 821 of file MSNet.h.

Referenced by MSNet::warnOnce().

◆ STAGE_EVENTS

const std::string MSNet::STAGE_EVENTS
staticprotectedinherited

string constants for simstep stages

Definition at line 843 of file MSNet.h.

Referenced by MSNet::simulationStep().

◆ STAGE_INSERTIONS

const std::string MSNet::STAGE_INSERTIONS
staticprotectedinherited

Definition at line 846 of file MSNet.h.

Referenced by MSNet::simulationStep().

◆ STAGE_LANECHANGE

const std::string MSNet::STAGE_LANECHANGE
staticprotectedinherited

Definition at line 845 of file MSNet.h.

Referenced by MSNet::simulationStep().

◆ STAGE_MOVEMENTS

const std::string MSNet::STAGE_MOVEMENTS
staticprotectedinherited

Definition at line 844 of file MSNet.h.

Referenced by MSNet::simulationStep().

◆ TypeNames

StringBijection< GUIGlObjectType > GUIGlObject::TypeNames
staticinherited

associates object types with strings

Definition at line 68 of file GUIGlObject.h.

Referenced by GUIGlObject::createFullName(), and GNESelectorFrame::SelectionOperation::onCmdSave().


The documentation for this class was generated from the following files: