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:
[legend]
Collaboration diagram for GUINet:
[legend]

Data Structures

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

Public Types

typedef std::map< std::string, std::vector< Collision > > CollisionMap
 
typedef std::map< std::string, std::string > Map
 parameters map More...
 
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

SimulationState adaptToState (const SimulationState state, const bool isLibsumo=false) const
 Called after a simulation step, this method adapts the current simulation state if necessary. More...
 
void addMesoType (const std::string &typeID, const MESegment::MesoEdgeType &edgeType)
 Adds edge type specific meso parameters. More...
 
void addRestriction (const std::string &id, const SUMOVehicleClass svc, const double speed)
 Adds a restriction for an edge type. More...
 
void clearParameter ()
 Clears the parameter map. More...
 
void clearState (const SUMOTime step, bool quickReload=false)
 Resets events when quick-loading state. 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 junctionHigherSpeeds, double version)
 Closes the network's building process. More...
 
void closeSimulation (SUMOTime start, const std::string &reason="")
 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, bool forceShow=false) const
 draw name of item More...
 
bool existTractionSubstation (const std::string &substationId)
 return whether given electrical substation exists in the network More...
 
MSTractionSubstationfindTractionSubstation (const std::string &substationId)
 find electrical substation by its id More...
 
const std::string generateStatistics (SUMOTime start)
 Writes performance output and running vehicle stats. More...
 
const CollisionMapgetCollisions () const
 
SUMOTime getCurrentTimeStep () const
 Returns the current simulation step. More...
 
double getDouble (const std::string &key, const double defaultValue) const
 Returns the value for a given key converted to a double. More...
 
std::vector< double > getDoubles (const std::string &key, std::vector< double > defaultValue=std::vector< double >()) const
 Returns the value for a given key converted to a list of doubles. More...
 
MSIntermodalRoutergetIntermodalRouter (const int rngIndex, const int routingMode=0, const MSEdgeVector &prohibited=MSEdgeVector()) const
 
const MESegment::MesoEdgeTypegetMesoType (const std::string &typeID)
 Returns edge type specific meso parameters if no type specific parameters have been loaded, default values are returned. More...
 
double getNetworkVersion () const
 return the network version More...
 
virtual const std::string getParameter (const std::string &key, const std::string defaultValue="") const
 Returns the value for a given key. More...
 
const Parameterised::MapgetParametersMap () const
 Returns the inner key/value map. More...
 
std::string getParametersStr (const std::string kvsep="=", const std::string sep="|") const
 Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN". 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 hasJunctionHigherSpeeds () const
 return whether the network was built with higher junction speeds 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 knowsParameter (const std::string &key) const
 Returns whether the parameter is known. More...
 
void loadRoutes ()
 loads routes for the next few steps More...
 
SUMOTime loadState (const std::string &fileName)
 load state from file and return new time More...
 
bool logSimulationDuration () const
 Returns whether duration shall be logged. More...
 
virtual void onLeftBtnPress (void *)
 notify object about left click More...
 
void quickReload ()
 reset state to the beginning without reloading the network More...
 
bool registerCollision (const SUMOTrafficObject *collider, const SUMOTrafficObject *victim, const std::string &collisionType, const MSLane *lane, double pos)
 register collision and return whether it was the first one involving these vehicles 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...
 
virtual void setParameter (const std::string &key, const std::string &value)
 Sets a parameter. More...
 
void setParameters (const Parameterised &params)
 set the inner key/value map in map<string, string> format More...
 
void setParametersMap (const Parameterised::Map &paramsMap)
 set the inner key/value map in map<string, string> format More...
 
void setParametersStr (const std::string &paramsString, const std::string kvsep="=", const std::string sep="|")
 set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN" 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
 This method returns the current simulation state. It should not modify status. More...
 
void unsetParameter (const std::string &key)
 Removes a parameter. More...
 
void updateParameters (const Parameterised::Map &mapArg)
 Adds or updates all given parameters from the map. 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 writeCollisions () const
 write collision output to (xml) file More...
 
void writeOutput ()
 Write netstate, summary and detector output. More...
 
void writeOverheadWireSegmentOutput () const
 write the output generated by an overhead wire segment More...
 
void writeParams (OutputDevice &device) const
 write Params in the given outputdevice More...
 
void writeRailSignalBlocks () const
 write rail signal block output More...
 
void writeStatistics () const
 write statistic output to (xml) file More...
 
void writeSubstationOutput () const
 write electrical substation output More...
 
void writeSummaryOutput ()
 write summary-output to (xml) file 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...
 
double getExaggeration (const GUIVisualizationSettings &s) const override
 return exaggeration associated with this GLObject 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 (const MSLink *const link) const
 
int getLinkTLIndex (const MSLink *const 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...
 
bool addTractionSubstation (MSTractionSubstation *substation)
 Adds a traction substation. 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...
 
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...
 
FXIcon * getGLIcon () const
 get icon associated with this GL 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...
 
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 getClickPriority () const
 Returns the priority of receiving mouse clicks. More...
 
bool isBlocked () const
 get blocking status More...
 
void setBlocked (const bool state=true)
 set blocking status More...
 
virtual bool isGLObjectLocked ()
 check if element is locked (Currently used only in NETEDIT) More...
 
virtual void markAsFrontElement ()
 mark element as front element (Currently used only in NETEDIT) More...
 
virtual void deleteGLObject ()
 delete GLObject (Currently used only in NETEDIT) More...
 
virtual void selectGLObject ()
 select GLObject (Currently used only in NETEDIT) More...
 
virtual void updateGLObject ()
 update GLObject (geometry, ID, etc.) (optional) 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 bool areAttributesValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|")
 check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas) More...
 
static bool areParametersValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|")
 check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN" More...
 
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 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
 
static const std::string STAGE_REMOTECONTROL
 
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...
 
void mouseWithinGeometry (const Position &pos, const double width, const double height, const double offsetX, const double offsetY, const double rot) const
 check if mouse is within elements geometry (for rectangles) More...
 
void mouseWithinGeometry (const Position center, const double radius) const
 check if mouse is within elements geometry (for circles) More...
 
void mouseWithinGeometry (const PositionVector shape) const
 check if mouse is within elements geometry (for filled shapes) More...
 
void mouseWithinGeometry (const PositionVector shape, const double width) const
 check if mouse is within elements geometry (for shapes) More...
 
void mouseWithinGeometry (const PositionVector shape, const double width, GUIGlObject *parent) const
 check if mouse is within elements geometry (for edges) More...
 
void removeOutdatedCollisions ()
 remove collisions from the previous simulation step 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, const GUIMainWindow &app) const
 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...
 
CollisionMap myCollisions
 collisions in the current time step 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
 
bool myJunctionHigherSpeeds
 Whether the network was built with higher speed on junctions. More...
 
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< std::string, MESegment::MesoEdgeTypemyMesoEdgeTypes
 The edge type specific meso parameters. 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< MSTractionSubstation * > myTractionSubstations
 Dictionary of traction substations. More...
 
std::vector< TransportableStateListener * > myTransportableStateListeners
 Container for transportable state listener. 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...
 
int myLogStepPeriod
 Period between successive step-log outputs. More...
 
long myTraCIStepDuration = 0
 The last simulation step duration. More...
 
long mySimStepDuration = 0
 
long mySimBeginMillis
 The overall simulation duration. More...
 
long myTraCIMillis
 The overall time spent waiting for traci operations including. 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...
 
std::vector< std::string > myPeriodicStateFiles
 The names of the last K periodic state files (only only K shall be kept) 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 const NamedObjectCont< MSStoppingPlace * > myEmptyStoppingPlaceCont
 
static MSNetmyInstance = nullptr
 Unique instance of MSNet. More...
 

Private Member Functions

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

Static Private Member Functions

static bool isParameterValid (const std::string &value, const std::string &kvsep, const std::string &sep)
 check if given string can be parsed to a parameter of type "key=value" More...
 

Private Attributes

bool myAmBlocked
 whether the object can be deleted More...
 
std::string myFullName
 full name of GL Object More...
 
const GUIGlID myGlID
 The numerical id of the object. More...
 
const GUIGlObjectType myGLObjectType
 The type of the object. More...
 
FXIcon * myIcon
 icon associatd with this GL Object More...
 
Parameterised::Map myMap
 The key->value map. 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 []
 vector for TypeNames Initializer More...
 

Friends

class GUITrafficLightLogicWrapper
 

locator-methods

typedef std::map< const 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...
 
std::vector< GUICalibrator * > myCalibratorWrapper
 A calibrator 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...
 
double getMeanData (const MSLane *lane, const std::string &id, const std::string &attr)
 retrieve live lane/edge weight for the given meanData id and attribute 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...
 
std::vector< std::string > getMeanDataIDs () const
 return list of loaded edgeData ids (being computed in the current simulation) More...
 
std::vector< std::string > getMeanDataAttrs (const std::string &meanDataID) const
 return list of available attributes for the given meanData id 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...
 
void updateGUI () const override
 update view after simulation.loadState More...
 
void addHotkey (int key, Command *press, Command *release=nullptr)
 register custom hotkey action 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 class  VehicleState {
  BUILT , DEPARTED , STARTING_TELEPORT , ENDING_TELEPORT ,
  ARRIVED , NEWROUTE , STARTING_PARKING , ENDING_PARKING ,
  STARTING_STOP , ENDING_STOP , COLLISION , EMERGENCYSTOP ,
  MANEUVERING
}
 Definition of a vehicle state. More...
 

Notification about transportable state changes

void addTransportableStateListener (TransportableStateListener *listener)
 Adds a transportable states listener. More...
 
void removeTransportableStateListener (TransportableStateListener *listener)
 Removes a transportable states listener. More...
 
void informTransportableStateListener (const MSTransportable *const transportable, TransportableState to, const std::string &info="")
 Informs all added listeners about a transportable's state change. More...
 
enum class  TransportableState { PERSON_DEPARTED , PERSON_ARRIVED , CONTAINER_DEPARTED , CONTAINER_ARRIVED }
 Definition of a transportable 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

◆ CollisionMap

typedef std::map<std::string, std::vector<Collision> > MSNet::CollisionMap
inherited

Definition at line 128 of file MSNet.h.

◆ Links2LogicMap

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

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

Definition at line 386 of file GUINet.h.

◆ Logics2WrapperMap

Definition of a traffic light-to-wrapper map.

Definition at line 392 of file GUINet.h.

◆ Map

typedef std::map<std::string, std::string> Parameterised::Map
inherited

parameters map

Definition at line 45 of file Parameterised.h.

◆ MSIntermodalRouter

Definition at line 113 of file MSNet.h.

◆ MSPedestrianRouter

Definition at line 112 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 93 of file MSNet.h.

◆ TransportableState

enum class MSNet::TransportableState
stronginherited

Definition of a transportable state.

Enumerator
PERSON_DEPARTED 

The transportable person has departed (was inserted into the network)

PERSON_ARRIVED 

The transportable person arrived at his destination (is deleted)

CONTAINER_DEPARTED 

The transportable container has departed (was inserted into the network)

CONTAINER_ARRIVED 

The transportable container arrived at his destination (is deleted)

Definition at line 680 of file MSNet.h.

◆ VehicleState

enum class MSNet::VehicleState
stronginherited

Definition of a vehicle state.

Enumerator
BUILT 

The vehicle was built, but has not yet departed.

DEPARTED 

The vehicle has departed (was inserted into the network)

STARTING_TELEPORT 

The vehicle started to teleport.

ENDING_TELEPORT 

The vehicle ended being teleported.

ARRIVED 

The vehicle arrived at his destination (is deleted)

NEWROUTE 

The vehicle got a new route.

STARTING_PARKING 

The vehicles starts to park.

ENDING_PARKING 

The vehicle ends to park.

STARTING_STOP 

The vehicles starts to stop.

ENDING_STOP 

The vehicle ends to stop.

COLLISION 

The vehicle is involved in a collision.

EMERGENCYSTOP 

The vehicle had to brake harder than permitted.

MANEUVERING 

Vehicle maneuvering either entering or exiting a parking space.

Definition at line 603 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 80 of file GUINet.cpp.

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

◆ ~GUINet()

Member Function Documentation

◆ adaptIntermodalRouter()

◆ adaptToState()

MSNet::SimulationState MSNet::adaptToState ( const SimulationState  state,
const bool  isLibsumo = false 
) const
inherited

Called after a simulation step, this method adapts the current simulation state if necessary.

Parameters
[in]stateThe current simulation state
Returns
The new simulation state
See also
SimulationState

Definition at line 829 of file MSNet.cpp.

References MSTransportableControl::abortAnyWaitingForVehicle(), MSVehicleControl::abortWaiting(), TraCIServer::getInstance(), TraCIServer::getLoadArgs(), MSNet::myContainerControl, MSNet::myPersonControl, MSNet::myVehicleControl, OptionsIO::setArgs(), MSNet::SIMSTATE_LOADING, MSNet::SIMSTATE_NO_FURTHER_VEHICLES, MSNet::SIMSTATE_RUNNING, and TraCIServer::wasClosed().

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

Here is the caller graph for this function:

◆ addHotkey()

void GUINet::addHotkey ( int  key,
Command press,
Command release = nullptr 
)

register custom hotkey action

Definition at line 742 of file GUINet.cpp.

References GUIApplicationWindow::addHotkey(), and GUIMainWindow::getInstance().

◆ addMesoType()

void MSNet::addMesoType ( const std::string &  typeID,
const MESegment::MesoEdgeType edgeType 
)
inherited

Adds edge type specific meso parameters.

Parameters
[in]idThe id of the type
[in]edgeTypeThe parameter object

Definition at line 358 of file MSNet.cpp.

References MSNet::myMesoEdgeTypes.

Referenced by NLHandler::addMesoEdgeType().

Here is the caller graph for this function:

◆ addParameterTable()

void GUIGlObject::addParameterTable ( GUIParameterTableWindow w)
inherited

Definition at line 363 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

Referenced by GUIParameterTableWindow::GUIParameterTableWindow().

Here is the caller graph for this function:

◆ 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 343 of file MSNet.cpp.

References MSNet::myRestrictions.

Referenced by MSEdge::inferEdgeType(), and NLHandler::myStartElement().

Here is the caller graph for this function:

◆ 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 1271 of file MSNet.cpp.

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

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

Here is the caller graph for this function:

◆ addTractionSubstation()

bool MSNet::addTractionSubstation ( MSTractionSubstation substation)
inherited

Adds a traction substation.

If another traction substation with the same id and category exists, false is returned. Otherwise, the traction substation is added to the internal substations container.

Parameters
[in]substationThe traction substation to add
Returns
Whether the stop could be added

Definition at line 1277 of file MSNet.cpp.

References MSNet::myTractionSubstations.

Referenced by NLTriggerBuilder::buildTractionSubstation().

Here is the caller graph for this function:

◆ addTransportableStateListener()

void MSNet::addTransportableStateListener ( TransportableStateListener listener)
inherited

Adds a transportable states listener.

Parameters
[in]listenerThe listener to add

Definition at line 1192 of file MSNet.cpp.

References MSNet::myTransportableStateListeners.

Referenced by TraCIServer::openSocket(), and libsumo::Helper::registerStateListener().

Here is the caller graph for this function:

◆ addVehicleStateListener()

void MSNet::addVehicleStateListener ( VehicleStateListener listener)
inherited

Adds a vehicle states listener.

Parameters
[in]listenerThe listener to add

Definition at line 1164 of file MSNet.cpp.

References MSNet::myVehicleStateListeners.

Referenced by LIBSUMO_NAMESPACE::Polygon::addDynamics(), MSRailSignalControl::getInstance(), MSDevice_Vehroutes::init(), MSVehicle::Influencer::GapControlState::init(), TraCIServer::openSocket(), and libsumo::Helper::registerStateListener().

Here is the caller graph for this function:

◆ areAttributesValid()

bool Parameterised::areAttributesValid ( const std::string &  value,
bool  report = false,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
staticinherited

check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas)

Definition at line 216 of file Parameterised.cpp.

References StringTokenizer::getVector(), Parameterised::isParameterValid(), and WRITE_WARNING.

Referenced by GNEFrameAttributeModules::GenericDataAttributes::areAttributesValid(), GNEEdgeData::isValid(), GNEEdgeRelData::isValid(), and GNETAZRelData::isValid().

Here is the caller graph for this function:

◆ areParametersValid()

bool Parameterised::areParametersValid ( const std::string &  value,
bool  report = false,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
staticinherited

◆ buildAdditionalsPopupOptions()

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

◆ buildCenterPopupEntry()

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

Builds an entry which allows to center to the object.

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

Definition at line 280 of file GUIGlObject.cpp.

References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_CENTER, and RECENTERVIEW.

Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNETranship::getPopUpMenu(), GNETransport::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().

Here is the caller graph for this function:

◆ buildNameCopyPopupEntry()

◆ buildPopupHeader()

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

Builds the header.

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

Definition at line 271 of file GUIGlObject.cpp.

References GUIMainWindow::getBoldFont(), GUIGlObject::getFullName(), and GUIGlObject::myIcon.

Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNETranship::getPopUpMenu(), GNETransport::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().

Here is the caller graph for this function:

◆ buildPositionCopyEntry()

void GUIGlObject::buildPositionCopyEntry ( GUIGLObjectPopupMenu ret,
const GUIMainWindow app 
) const
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 330 of file GUIGlObject.cpp.

References GUIDesigns::buildFXMenuCommand(), GEOHACK, GeoConvHelper::getFinal(), GUIIconSubSys::getIcon(), GUIMainWindow::getOnlineMaps(), GOOGLESAT, GUIGLObjectPopupMenu::insertMenuPaneChild(), MID_COPY_CURSOR_GEOPOSITION, MID_COPY_CURSOR_POSITION, MID_SHOW_GEOPOSITION_ONLINE, and OSM.

Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNETranship::getPopUpMenu(), GNETransport::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GNENet::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().

Here is the caller graph for this function:

◆ buildSelectionPopupEntry()

◆ buildShapePopupOptions()

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

build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI

Definition at line 378 of file GUIGlObject.cpp.

References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().

Referenced by GUIPointOfInterest::getPopUpMenu().

Here is the caller graph for this function:

◆ 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 354 of file GUIGlObject.cpp.

References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MANIP, and MID_MANIP.

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

Here is the caller graph for this function:

◆ buildShowParamsPopupEntry()

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

Builds an entry which allows to open the 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 312 of file GUIGlObject.cpp.

References APP_TABLE, GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), and MID_SHOWPARS.

Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNETAZ::getPopUpMenu(), GNETAZSourceSink::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNETranship::getPopUpMenu(), GNETransport::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEWalkingArea::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUILane::getPopUpMenu(), getPopUpMenu(), GUIPerson::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GNEContainer::GNESelectedContainersPopupMenu::GNESelectedContainersPopupMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), and GNEVehicle::GNESingleVehiclePopupMenu::GNESingleVehiclePopupMenu().

Here is the caller graph for this function:

◆ 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 321 of file GUIGlObject.cpp.

References APP_TABLE, GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), and MID_SHOWTYPEPARS.

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

Here is the caller graph for this function:

◆ checkBidiEdges()

bool MSNet::checkBidiEdges ( )
protectedinherited

check wether bidirectional edges occur in the network

Definition at line 1537 of file MSNet.cpp.

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

Referenced by MSNet::closeBuilding().

Here is the caller graph for this function:

◆ checkElevation()

bool MSNet::checkElevation ( )
protectedinherited

check all lanes for elevation data

Definition at line 1512 of file MSNet.cpp.

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

Referenced by MSNet::closeBuilding().

Here is the caller graph for this function:

◆ checkWalkingarea()

bool MSNet::checkWalkingarea ( )
protectedinherited

check all lanes for type walkingArea

Definition at line 1526 of file MSNet.cpp.

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

Referenced by MSNet::closeBuilding().

Here is the caller graph for this function:

◆ cleanupStatic()

void MSNet::cleanupStatic ( )
staticinherited

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

Definition at line 198 of file MSNet.cpp.

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

Referenced by MSNet::~MSNet().

Here is the caller graph for this function:

◆ clearAll()

void MSNet::clearAll ( )
staticinherited

◆ clearParameter()

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 120 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NLHandler::beginEdgeParsing().

Here is the caller graph for this function:

◆ clearState()

◆ 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  junctionHigherSpeeds,
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]junctionHigherSpeedsWhether the network was built with higher junction speeds
[in]versionThe network version
Todo:
Try to move all this to the constructor?

Definition at line 256 of file MSNet.cpp.

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

Referenced by NLBuilder::buildNet().

Here is the caller graph for this function:

◆ closeSimulation()

void MSNet::closeSimulation ( SUMOTime  start,
const std::string &  reason = "" 
)
inherited

◆ createFullName()

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

create full name

Definition at line 479 of file GUIGlObject.cpp.

References GUIGlObject::getMicrosimID(), StringBijection< T >::getString(), GUIGlObject::myGLObjectType, and GUIGlObject::TypeNames.

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

Here is the caller graph for this function:

◆ createTLWrapper()

void GUINet::createTLWrapper ( MSTrafficLightLogic tll)
overridevirtual

creates a wrapper for the given logic

Reimplemented from MSNet.

Definition at line 154 of file GUINet.cpp.

References SUMORTree::addAdditionalGLObject(), Named::getID(), MSTrafficLightLogic::getLinks(), Parameterised::getParameter(), GUITrafficLightLogicWrapper, Parameterised::knowsParameter(), myGrid, myLinks2Logic, MSNet::myLogics, myLogics2Wrapper, and Command_Hotkey_TrafficLight::registerHotkey().

Referenced by initTLMap(), and GUITrafficLightLogicWrapper::switchTLSLogic().

Here is the caller graph for this function:

◆ deleteGLObject()

void GUIGlObject::deleteGLObject ( )
virtualinherited

delete GLObject (Currently used only in NETEDIT)

Reimplemented in GNEAdditional, GNEGenericData, GNEDemandElement, GNEConnection, GNECrossing, GNEEdge, GNEEdgeType, GNEInternalLane, GNEJunction, GNELane, GNELaneType, GNEWalkingArea, and GNENetworkElement.

Definition at line 218 of file GUIGlObject.cpp.

◆ 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 521 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 GUIBaseVehicle, GUIContainer, and GUIPerson.

Definition at line 250 of file GUIGlObject.cpp.

References UNUSED_PARAMETER.

◆ drawName()

◆ existTractionSubstation()

bool MSNet::existTractionSubstation ( const std::string &  substationId)
inherited

return whether given electrical substation exists in the network

Definition at line 1378 of file MSNet.cpp.

References MSNet::myTractionSubstations.

◆ findTractionSubstation()

MSTractionSubstation * MSNet::findTractionSubstation ( const std::string &  substationId)
inherited

find electrical substation by its id

Definition at line 1367 of file MSNet.cpp.

References MSNet::myTractionSubstations.

Referenced by NLTriggerBuilder::parseAndBuildOverheadWireClamp(), and NLTriggerBuilder::parseAndBuildOverheadWireSection().

Here is the caller graph for this function:

◆ generateStatistics()

◆ getAvgDepartDelay()

double GUINet::getAvgDepartDelay ( ) const
inline

Definition at line 221 of file GUINet.h.

References MSDevice_Tripinfo::getAvgDepartDelay().

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ getAvgDuration()

double GUINet::getAvgDuration ( ) const
inline

Definition at line 212 of file GUINet.h.

References MSDevice_Tripinfo::getAvgDuration().

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ getAvgRouteLength()

double GUINet::getAvgRouteLength ( ) const
inline

Definition at line 209 of file GUINet.h.

References MSDevice_Tripinfo::getAvgRouteLength().

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ getAvgTimeLoss()

double GUINet::getAvgTimeLoss ( ) const
inline

Definition at line 218 of file GUINet.h.

References MSDevice_Tripinfo::getAvgTimeLoss().

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ getAvgTripSpeed()

double GUINet::getAvgTripSpeed ( ) const
inline

Definition at line 224 of file GUINet.h.

References MSDevice_Tripinfo::getAvgDuration(), and MSDevice_Tripinfo::getAvgRouteLength().

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ getAvgWaitingTime()

double GUINet::getAvgWaitingTime ( ) const
inline

Definition at line 215 of file GUINet.h.

References MSDevice_Tripinfo::getAvgWaitingTime().

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ getAvgWalkDuration()

double GUINet::getAvgWalkDuration ( ) const
inline

Definition at line 230 of file GUINet.h.

References MSDevice_Tripinfo::getAvgWalkDuration().

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ getAvgWalkRouteLength()

double GUINet::getAvgWalkRouteLength ( ) const
inline

Definition at line 227 of file GUINet.h.

References MSDevice_Tripinfo::getAvgWalkRouteLength().

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ getAvgWalkTimeLoss()

double GUINet::getAvgWalkTimeLoss ( ) const
inline

Definition at line 233 of file GUINet.h.

References MSDevice_Tripinfo::getAvgWalkTimeLoss().

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ getBeginOfTimestepEvents()

◆ getBoundary()

const Boundary & GUINet::getBoundary ( ) const

returns the bounder of the network

Definition at line 121 of file GUINet.cpp.

References myBoundary.

Referenced by getCenteringBoundary().

Here is the caller graph for this function:

◆ 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 526 of file GUINet.cpp.

References getBoundary().

◆ getClickPriority()

virtual double GUIGlObject::getClickPriority ( ) const
inlinevirtualinherited

Returns the priority of receiving mouse clicks.

Reimplemented in GUILane, GNEPOI, GNEPoly, GUIPointOfInterest, and GUIPolygon.

Definition at line 159 of file GUIGlObject.h.

References GUIGlObject::myGLObjectType.

Referenced by GUISUMOAbstractView::getObjectAtPosition().

Here is the caller graph for this function:

◆ getCollisions()

const CollisionMap & MSNet::getCollisions ( ) const
inlineinherited

Definition at line 738 of file MSNet.h.

References MSNet::myCollisions.

◆ getColorValue()

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

Reimplemented in GUIJunctionWrapper, GUIVehicle, GUIMEVehicle, GNEEdgeData, GNEEdgeRelData, GNETAZRelData, GNEJunction, GNELane, GUIBaseVehicle, GUIContainer, GUIEdge, GUILane, and GUIPerson.

Definition at line 198 of file GUIGlObject.h.

Referenced by GNEContainer::drawGL(), GNEPerson::drawGL(), and GNEPerson::setColor().

Here is the caller graph for this function:

◆ 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 136 of file GUINet.cpp.

References MSNet::myContainerControl.

Referenced by GUIApplicationWindow::handleEvent_SimulationStep().

Here is the caller graph for this function:

◆ getCurrentTimeStep()

SUMOTime MSNet::getCurrentTimeStep ( ) const
inlineinherited

Returns the current simulation step.

Returns
the current simulation step

Definition at line 321 of file MSNet.h.

References MSNet::myStep.

Referenced by MSRoutingEngine::_initEdgeWeights(), MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), LIBSUMO_NAMESPACE::Person::add(), LIBSUMO_NAMESPACE::Vehicle::add(), MSPModel_Striping::add(), MSTriggeredRerouter::addParkValues(), GUIEdge::addRerouter(), MSDevice_Vehroutes::addRoute(), MSBaseVehicle::addTransportable(), MSTLLogicControl::addWAUTJunction(), MSVehicle::boardTransportables(), NLDetectorBuilder::buildE2Detector(), MSActuatedTrafficLightLogic::changeStepAndDuration(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSNet::closeSimulation(), NLJunctionControlBuilder::closeTrafficLightLogic(), MSTLLogicControl::closeWAUT(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), MSActuatedTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), TraCIServer::dispatchCommand(), MSDevice_Taxi::dispatchShared(), MSActuatedTrafficLightLogic::duration(), MSVehicle::enterLaneAtInsertion(), Command_SaveTLCoupledDet::execute(), Command_SaveTLCoupledLaneDet::execute(), MSVehicle::executeFractionalMove(), MSCFModel_CC::finalizeSpeed(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), MSActuatedTrafficLightLogic::gapControl(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSTransportable::getAngle(), MSLane::getCriticalLeader(), MSLaneSpeedTrigger::getCurrentFriction(), MSSOTLTrafficLightLogic::getCurrentPhaseElapsed(), GUIApplicationWindow::getCurrentSimTime(), MSLaneSpeedTrigger::getCurrentSpeed(), LIBSUMO_NAMESPACE::Simulation::getCurrentTime(), GUIViewTraffic::getCurrentTimeStep(), MSActuatedTrafficLightLogic::getDetectorPriority(), getEdgeData(), MSTransportable::getEdgePos(), MSLane::getFirstVehicleInformation(), MSInductLoop::getLastDetectionTime(), MSLane::getLastVehicleInformation(), LIBSUMO_NAMESPACE::Lane::getLinks(), MESegment::getMeanSpeed(), MSInsertionControl::getPendingEmits(), MSTransportable::getPosition(), MSVehicle::getPosition(), MSVehicle::getStopDelay(), MSTransportable::getWaitingSeconds(), MSTransportable::getWaitingTime(), MSLink::getZipperSpeed(), GUIApplicationWindow::handleEvent_SimulationStep(), MSMeanData::init(), MSLaneSpeedTrigger::init(), MSSwarmTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), TraCIServer::initialiseSubscription(), MSTLLogicControl::initWautSwitch(), MSBaseVehicle::insertStop(), MSLane::isInsertionSuccess(), MSVehicle::Influencer::isRemoteControlled(), MSPerson::Influencer::isRemoteControlled(), MSSOTLTrafficLightLogic::isThresholdPassed(), GUIRunThread::makeStep(), MEVehicle::mayProceed(), MSDevice_Taxi::MSDevice_Taxi(), MSPModel_Remote::MSPModel_Remote(), MSDevice_Transportable::notifyEnter(), MSDevice_Vehroutes::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Transportable::notifyMove(), GUIApplicationWindow::onCmdTimeToggle(), MSBaseVehicle::onDepart(), GUIViewTraffic::onGamingClick(), TraCIServer::postProcessSimulationStep(), MESegment::prepareDetectorForWriting(), MSVehicle::processLaneAdvances(), MSVehicle::processNextStop(), MSDevice_Routing::rebuildRerouteCommand(), MSRailSignal::recheckGreen(), MSBaseVehicle::replaceStop(), MSRailSignal::LinkInfo::reroute(), MSBaseVehicle::rerouteBetweenStops(), MSVehicle::resetActionOffset(), MSSOTLTrafficLightLogic::resetCTS(), MSTrafficLightLogic::resetLinkStates(), MSVehicle::resumeFromStopping(), TraCIServer::sendOutputToAll(), MSStageTrip::setArrived(), NEMALogic::setCurrentTime(), LIBSUMO_NAMESPACE::TrafficLight::setPhase(), LIBSUMO_NAMESPACE::TrafficLight::setPhaseDuration(), LIBSUMO_NAMESPACE::TrafficLight::setProgramLogic(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSPhasedTrafficLightLogic::setStep(), MSSOTLTrafficLightLogic::setupCTS(), MSStageDriving::tripInfoOutput(), GUIRunThread::tryStep(), MSDelayBasedTrafficLightLogic::trySwitch(), MSSOTLTrafficLightLogic::trySwitch(), MSActuatedTrafficLightLogic::trySwitch(), MSSimpleTrafficLightLogic::trySwitch(), MSVehicle::updateActionOffset(), MSSOTLTrafficLightLogic::updateCTS(), MSRailCrossing::updateCurrentPhase(), MSDevice_Tripinfo::updateParkingStopTime(), MSSwarmTrafficLightLogic::updateSensitivities(), MSVehicle::wasRemoteControlled(), MSNet::writeCollisions(), and MSDevice_Vehroutes::writeOutput().

◆ getDetectorControl()

◆ getDouble()

◆ getDoubles()

std::vector< double > Parameterised::getDoubles ( const std::string &  key,
std::vector< double >  defaultValue = std::vector<double>() 
) const
inherited

Returns the value for a given key converted to a list of doubles.

Parameters
[in]keyThe key to ask for
[in]defaultValueThe default value to return if no value is stored under the key
Returns
The value stored under the key

Definition at line 99 of file Parameterised.cpp.

References StringTokenizer::getVector(), Parameterised::myMap, TL, StringUtils::toDouble(), and WRITE_WARNING.

Referenced by EnergyParams::EnergyParams().

Here is the caller graph for this function:

◆ getDynamicShapeUpdater()

MSDynamicShapeUpdater * MSNet::getDynamicShapeUpdater ( )
inlineinherited

Returns the dynamic shapes updater.

See also
PolygonDynamics

Definition at line 509 of file MSNet.h.

References MSNet::myDynamicShapeUpdater.

◆ getEdgeControl()

MSEdgeControl & MSNet::getEdgeControl ( )
inlineinherited

Returns the edge control.

Returns
The edge control
See also
MSEdgeControl
myEdges

Definition at line 422 of file MSNet.h.

References MSNet::myEdges.

Referenced by MSRoutingEngine::adaptEdgeEfforts(), MSNet::adaptIntermodalRouter(), NLBuilder::build(), MSLane::executeMovements(), MSRoutingEngine::getRouterTT(), MSLane::incorporateVehicle(), MSRoutingEngine::initRouter(), MSStateHandler::myStartElement(), MSVehicle::processLaneAdvances(), MSRoutingEngine::reroute(), MSStateHandler::saveState(), MSFCDExport::write(), MSFullExport::writeEdge(), and MSQueueExport::writeEdge().

Here is the caller graph for this function:

◆ 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 571 of file GUINet.cpp.

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

Referenced by GUIEdge::getColorValue(), and GUILane::getColorValue().

Here is the caller graph for this function:

◆ getEdgeDataAttrs()

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

return list of loaded edgeData attributes

Definition at line 694 of file GUINet.cpp.

References myLoadedEdgeData.

Referenced by GUIViewTraffic::getEdgeDataAttrs().

Here is the caller graph for this function:

◆ 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 149 of file MSNet.cpp.

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

Referenced by MSNet::getRouterEffort().

Here is the caller graph for this function:

◆ getEndOfTimestepEvents()

MSEventControl * MSNet::getEndOfTimestepEvents ( )
inlineinherited

◆ getExaggeration()

double GUINet::getExaggeration ( const GUIVisualizationSettings s) const
overridevirtual

return exaggeration associated with this GLObject

Implements GUIGlObject.

Definition at line 532 of file GUINet.cpp.

◆ getFullName()

◆ getGLIcon()

FXIcon * GUIGlObject::getGLIcon ( ) const
inherited

get icon associated with this GL Object

Definition at line 191 of file GUIGlObject.cpp.

References GUIGlObject::myIcon.

◆ getGlID()

GUIGlID GUIGlObject::getGlID ( ) const
inlineinherited

Returns the numerical id of the object.

Returns
This object's gl-id

Definition at line 102 of file GUIGlObject.h.

References GUIGlObject::myGlID.

Referenced by GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GNECalibrator::drawCalibratorSymbol(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEEntryExitDetector::drawGL(), GNEInductionLoopDetector::drawGL(), GNEInstantInductionLoopDetector::drawGL(), GNELaneAreaDetector::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNERerouterSymbol::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNETAZRelData::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GNEWalkingArea::drawGL(), GUIContainer::drawGL(), GUIEdge::drawGL(), GUILane::drawGL(), GUIPerson::drawGL(), GUIPointOfInterest::drawGL(), GUIPolygon::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUILane::drawLinkRule(), GNEAdditional::drawListedAddtional(), GUIBaseVehicle::drawOnPos(), GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GNEAdditional::drawSquaredAdditional(), GNEStop::drawStopPersonOverBusStop(), GNEStop::drawStopPersonOverEdge(), GNEStop::drawVehicleStop(), GUIJunctionWrapper::getColorValue(), GUIVehicle::getColorValue(), GUIMEVehicle::getColorValue(), GUIContainer::getColorValue(), GUIEdge::getColorValue(), GUIPerson::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::insertIDs(), GUIMEVehicleControl::insertVehicleIDs(), GUIVehicleControl::insertVehicleIDs(), GUILane::isLaneOrEdgeSelected(), GUIVehicle::isSelected(), GUIContainer::isSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUIPerson::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GNEElementTree::onCmdCenterItem(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIDialog_GLChosenEditor::onCmdDeselect(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIDialog_ChooserAbstract::onCmdTrack(), GUIViewTraffic::onGamingClick(), GUIDialog_ChooserAbstract::refreshList(), GLObjectValuePassConnector< T >::removeObject(), GUIVehicle::selectBlockingFoes(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GUIMessageWindow::setCursorPos(), GUIViewTraffic::showLaneReachability(), 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 538 of file GUINet.cpp.

References MSNet::getInstance().

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

Here is the caller graph for this function:

◆ getGUIMEVehicleControl()

GUIMEVehicleControl * GUINet::getGUIMEVehicleControl ( )

Returns the vehicle control.

Returns
The vehicle control
See also
MSVehicleControl
myVehicleControl

Definition at line 565 of file GUINet.cpp.

References MSNet::myVehicleControl.

Referenced by GUIEdge::drawMesoVehicles().

Here is the caller graph for this function:

◆ getGUIVehicleControl()

GUIVehicleControl * GUINet::getGUIVehicleControl ( )

Returns the vehicle control.

Returns
The vehicle control
See also
MSVehicleControl
myVehicleControl

Definition at line 548 of file GUINet.cpp.

References MSNet::myVehicleControl.

Referenced by GUIViewTraffic::getVehicleParamKeys().

Here is the caller graph for this function:

◆ getIdleDuration()

int GUINet::getIdleDuration ( ) const

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

Definition at line 397 of file GUINet.cpp.

References myLastIdleDuration.

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ 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 492 of file MSNet.h.

References MSNet::myInsertionEvents.

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

Here is the caller graph for this function:

◆ 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 183 of file MSNet.cpp.

References MSNet::myInstance.

Referenced by MSRoutingEngine::_initEdgeWeights(), MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSCFModel_CC::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSPerson::MSPersonStage_Walking::abort(), MSStageWaiting::abort(), MSStageDriving::abort(), MSTransportable::abortStage(), MSRoutingEngine::adaptEdgeEfforts(), MSDevice_GLOSA::adaptSpeed(), LIBSUMO_NAMESPACE::Edge::adaptTraveltime(), MSLane::StoringVisitor::add(), LIBSUMO_NAMESPACE::Person::add(), LIBSUMO_NAMESPACE::POI::add(), LIBSUMO_NAMESPACE::Polygon::add(), LIBSUMO_NAMESPACE::Vehicle::add(), MSVehicleTransfer::add(), MSPModel_Striping::add(), MSTractionSubstation::addChargeValueForOutput(), MSChargingStation::addChargeValueForOutput(), MSOverheadWire::addChargeValueForOutput(), LIBSUMO_NAMESPACE::Polygon::addDynamics(), MSRouteHandler::addFlowTransportable(), LIBSUMO_NAMESPACE::Polygon::addHighlightPolygon(), MSTrafficLightLogic::addLink(), MSTLLogicControl::TLSLogicVariants::addLogic(), MSTractionSubstation::addOverheadWireInnerSegmentToCircuit(), MSTractionSubstation::addOverheadWireSegmentToCircuit(), MSTriggeredRerouter::addParkValues(), MSRouteHandler::addPersonTrip(), NLHandler::addPredecessorConstraint(), GUIEdge::addRerouter(), MSRouteHandler::addRideOrTransport(), MSDevice_Vehroutes::addRoute(), MSTractionSubstation::addSolvingCirucitToEndOfTimestepEvents(), MSBaseVehicle::addStop(), MSRouteHandler::addTranship(), MSBaseVehicle::addTransportable(), MSTLLogicControl::addWAUTJunction(), LIBSUMO_NAMESPACE::Person::appendDrivingStage(), LIBSUMO_NAMESPACE::Person::appendWaitingStage(), LIBSUMO_NAMESPACE::Person::appendWalkingStage(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSVehicle::boardTransportables(), MSDevice_BTreceiver::BTreceiverUpdate::BTreceiverUpdate(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), MSDevice_FCD::buildShapeFilter(), libsumo::Helper::buildStopParameters(), NLTriggerBuilder::buildVaporizer(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), LIBSUMO_NAMESPACE::Vehicle::changeLane(), LIBSUMO_NAMESPACE::Vehicle::changeLaneRelative(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSPhasedTrafficLightLogic::changeStepAndDuration(), MSActuatedTrafficLightLogic::changeStepAndDuration(), MSSimpleTrafficLightLogic::changeStepAndDuration(), LIBSUMO_NAMESPACE::Vehicle::changeTarget(), MSLane::checkFailure(), GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), MSVehicleTransfer::checkInsertions(), MSRouteHandler::checkTransportableType(), MSTransportableControl::checkWaiting(), MSVehicle::Influencer::GapControlState::cleanup(), LIBSUMO_NAMESPACE::Simulation::clearPending(), LIBSUMO_NAMESPACE::Simulation::close(), MSRouteHandler::closeFlow(), MSRouteHandler::closeRoute(), MSRouteHandler::closeTransportable(), MSRouteHandler::closeTransportableFlow(), MSRouteHandler::closeVehicle(), MSStateHandler::closeVehicle(), MSRouteHandler::closeVehicleTypeDistribution(), MSRouteHandler::closeVType(), MSTLLogicControl::closeWAUT(), libsumo::Helper::collectObjectsInRange(), Command_SaveTLSProgram::Command_SaveTLSProgram(), Command_SaveTLSState::Command_SaveTLSState(), Command_SaveTLSSwitches::Command_SaveTLSSwitches(), Command_SaveTLSSwitchStates::Command_SaveTLSSwitchStates(), MSDispatch_Greedy::computeDispatch(), MSDispatch_GreedyClosest::computeDispatch(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), LIBSUMO_NAMESPACE::Person::convertTraCIStage(), NLDetectorBuilder::createEdgeLaneMeanData(), MSCalibrator::currentFlow(), MSDevice_Taxi::customerArrived(), MSActuatedTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), MSInsertionControl::determineCandidates(), MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), TraCIServer::dispatchCommand(), MSDevice_Taxi::dispatchShared(), GUIJunctionWrapper::drawGL(), GUITrafficLightLogicWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), MSVehicleType::duplicateType(), MSActuatedTrafficLightLogic::duration(), GUITriggerBuilder::endParkingArea(), GUITriggerBuilder::endStoppingPlace(), MSParkingArea::enter(), MSVehicle::enterLaneAtInsertion(), MSVehicle::Manoeuvre::entryManoeuvreIsComplete(), MSDevice::equippedByDefaultAssignmentOptions(), MSTransportableControl::erase(), Command_SaveTLCoupledDet::execute(), Command_SaveTLCoupledLaneDet::execute(), Command_Hotkey_TrafficLight::execute(), METriggeredCalibrator::execute(), Command_RouteReplacement::execute(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSVTypeProbe::execute(), MSPerson::MSPersonStage_Access::ProceedCmd::execute(), MSCalibrator::execute(), MSVehicle::executeFractionalMove(), MSVehicle::executeMove(), MSLane::executeMovements(), MSEdgeControl::executeMovements(), LIBSUMO_NAMESPACE::Polygon::exists(), MSCFModel_CC::finalizeSpeed(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), MSActuatedTrafficLightLogic::gapControl(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSDevice_Vehroutes::generateOutputForUnfinished(), LIBSUMO_NAMESPACE::Edge::getAdaptedTraveltime(), MSTransportable::getAngle(), MSVehicle::getBackPositionOnLane(), LIBSUMO_NAMESPACE::Simulation::getBusStopIDList(), LIBSUMO_NAMESPACE::Simulation::getBusStopWaiting(), LIBSUMO_NAMESPACE::Simulation::getBusStopWaitingIDList(), LIBSUMO_NAMESPACE::Simulation::getCollisions(), GUIJunctionWrapper::getColorValue(), GUILane::getColorValue(), MSLane::getCriticalLeader(), MSLaneSpeedTrigger::getCurrentFriction(), MSSOTLTrafficLightLogic::getCurrentPhaseElapsed(), MSLaneSpeedTrigger::getCurrentSpeed(), LIBSUMO_NAMESPACE::Simulation::getCurrentTime(), GUIViewTraffic::getCurrentTimeStep(), LIBSUMO_NAMESPACE::InductionLoop::getDetector(), LIBSUMO_NAMESPACE::LaneArea::getDetector(), LIBSUMO_NAMESPACE::MultiEntryExit::getDetector(), MSActuatedTrafficLightLogic::getDetectorPriority(), MSStageMoving::getDirection(), MSRailSignal::LinkInfo::getDriveWay(), libsumo::Helper::getDrivingDistance(), MSTransportable::getEdgePos(), MSNet::getEffort(), LIBSUMO_NAMESPACE::Edge::getEffort(), MSLane::getFirstVehicleInformation(), LIBSUMO_NAMESPACE::Vehicle::getFollowSpeed(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), getGUIInstance(), MSRailSignalControl::getInstance(), LIBSUMO_NAMESPACE::Junction::getJunction(), MSInductLoop::getLastDetectionTime(), LIBSUMO_NAMESPACE::Edge::getLastStepPersonIDs(), MSLane::getLastVehicleInformation(), MSLink::getLeaderInfo(), LIBSUMO_NAMESPACE::Lane::getLinks(), GUILane::getLoadedEdgeWeight(), MSLane::getMaximumBrakeDist(), LIBSUMO_NAMESPACE::MeanData::getMeanData(), MESegment::getMeanSpeed(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), MSPModel_Striping::getNextLane(), GUISUMOViewParent::getObjectIDs(), LIBSUMO_NAMESPACE::OverheadWire::getOverheadWire(), MSCFModel_CC::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GUILane::getParameterWindow(), GUIEdge::getPendingEmits(), GUILane::getPendingEmits(), MSInsertionControl::getPendingEmits(), LIBSUMO_NAMESPACE::Simulation::getPendingVehicles(), LIBSUMO_NAMESPACE::Edge::getPendingVehicles(), LIBSUMO_NAMESPACE::Lane::getPendingVehicles(), libsumo::Helper::getPerson(), MSTLLogicControl::getPhaseDef(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), LIBSUMO_NAMESPACE::POI::getPoI(), GUIViewTraffic::getPOIParamKeys(), LIBSUMO_NAMESPACE::Polygon::getPolygon(), MSTransportable::getPosition(), MSVehicle::getPosition(), MSVTKExport::getPositions(), GUIVehicle::getPreviousLane(), MSCFModel_CC::getRadarMeasurements(), LIBSUMO_NAMESPACE::RouteProbe::getRouteProbe(), MSBaseVehicle::BaseInfluencer::getRouterTT(), MSRoutingEngine::getRouterTT(), LIBSUMO_NAMESPACE::Simulation::getScale(), GUILane::getScaleValue(), LIBSUMO_NAMESPACE::Vehicle::getSecureGap(), MSVTKExport::getSpeed(), MSVehicle::getStopArrivalDelay(), MSVehicle::getStopDelay(), libsumo::Helper::getStoppingPlace(), GUILane::getStoredEdgeTravelTime(), MSEdge::getSuccessors(), libsumo::Helper::getTLS(), LIBSUMO_NAMESPACE::Polygon::getTrafficObject(), MSNet::getTravelTime(), MSEdge::getTravelTimeStatic(), LIBSUMO_NAMESPACE::InductionLoop::getTree(), LIBSUMO_NAMESPACE::Junction::getTree(), LIBSUMO_NAMESPACE::POI::getTree(), LIBSUMO_NAMESPACE::Polygon::getTree(), GUIEdge::getTypeParameterWindow(), libsumo::Helper::getVehicle(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSCFModel_CC::getVehicleInformation(), MSRailSignalConstraint::getVehID(), MSEdge::getViaSuccessors(), LIBSUMO_NAMESPACE::VehicleType::getVType(), MSTransportable::getWaitingSeconds(), MSTransportable::getWaitingTime(), MSLink::getZipperSpeed(), MSLane::handleCollisionBetween(), libsumo::Helper::handleSubscriptions(), MSLane::hasPedestrians(), LIBSUMO_NAMESPACE::POI::highlight(), LIBSUMO_NAMESPACE::Vehicle::highlight(), MSPModel_Striping::PState::ignoreRed(), MSVehicle::ignoreRed(), MSLane::incorporateVehicle(), MSEdge::inferEdgeType(), MSVehicle::influenceChangeDecision(), MSDevice_Vehroutes::init(), MSVehicle::Influencer::GapControlState::init(), MSMeanData::init(), MSCalibrator::init(), MSLaneSpeedTrigger::init(), MSDelayBasedTrafficLightLogic::init(), MSRailCrossing::init(), MSSwarmTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSRailSignal::init(), NEMALogic::init(), MSDevice_ToC::initColorScheme(), MSDevice_Taxi::initDispatch(), MSDevice_SSM::initEdgeFilter(), TraCIServer::initialiseSubscription(), MSTrafficLightLogic::initMesoTLSPenalties(), MSStop::initPars(), MSLane::initRestrictions(), MSRoutingEngine::initRouter(), MSInsertionControl::initScale(), MSVehicleControl::initVehicle(), MSTLLogicControl::initWautSwitch(), MSRoutingEngine::initWeightUpdate(), MSBaseVehicle::insertStop(), MSLane::insertVehicle(), MSEdge::insertVehicle(), MSLane::isInsertionSuccess(), LIBSUMO_NAMESPACE::Vehicle::isOnInit(), MSVehicle::Influencer::isRemoteControlled(), MSPerson::Influencer::isRemoteControlled(), MSTrafficLightLogic::isSelected(), MSSOTLTrafficLightLogic::isThresholdPassed(), MSVehicle::joinTrainPartFront(), MSAbstractLaneChangeModel::laneChangeOutput(), MSParkingArea::leaveFrom(), MSVehicle::leaveLane(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), LIBSUMO_NAMESPACE::Simulation::load(), LIBSUMO_NAMESPACE::Simulation::loadState(), MSLane::loadState(), MSVehicleTransfer::loadState(), MSActuatedTrafficLightLogic::loadState(), MSPModel_Striping::loadState(), MSPerson::MSPersonStage_Walking::loadState(), MSStageDriving::loadState(), MSStageWaiting::loadState(), MSVehicle::Manoeuvre::manoeuvreIsComplete(), MEVehicle::mayProceed(), LIBSUMO_NAMESPACE::Vehicle::moveTo(), MSStageTranship::moveToNextEdge(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSPModel_Striping::PState::moveToXY(), MSDevice_ToC::MRMExecutionStep(), MSDevice_Routing::MSDevice_Routing(), MSDevice_Taxi::MSDevice_Taxi(), MSDevice_ToC::MSDevice_ToC(), MSPModel_Striping::MSPModel_Striping(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSTrafficLightLogic::MSTrafficLightLogic(), MSTransportableControl::MSTransportableControl(), MSTransportableDevice_Routing::MSTransportableDevice_Routing(), MSVTypeProbe::MSVTypeProbe(), GUITriggeredRerouter::myEndElement(), MSStateHandler::myEndElement(), MSTriggeredRerouter::myEndElement(), MSStateHandler::myStartElement(), MSCalibrator::myStartElement(), MSTriggeredRerouter::myStartElement(), NLHandler::myStartElement(), MSLane::nextBlocking(), MSDevice_Routing::notifyEnter(), MSDevice_Taxi::notifyEnter(), MSDevice_Transportable::notifyEnter(), MSDevice_Vehroutes::notifyEnter(), MSCalibrator::VehicleRemover::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Vehroutes::notifyLeave(), MSDevice_ElecHybrid::notifyMove(), MSDevice_Battery::notifyMove(), MSDevice_Bluelight::notifyMove(), MSDevice_Transportable::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), GUIApplicationWindow::onCmdLoadState(), GUIApplicationWindow::onCmdQuickReload(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdRemoveObject(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), GUIApplicationWindow::onCmdSaveState(), MSBaseVehicle::onDepart(), GUIViewTraffic::onGamingClick(), MEVehicle::onRemovalFromNet(), MSRouteHandler::openRoute(), TraCIServer::openSocket(), MSRouteHandler::openVehicleTypeDistribution(), NLTriggerBuilder::parseAndBuildOverheadWireClamp(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), MSVehicle::planMoveInternal(), libsumo::Helper::postProcessRemoteControl(), MSPerson::Influencer::postProcessRemoteControl(), TraCIServer::postProcessSimulationStep(), MESegment::prepareDetectorForWriting(), MSPerson::MSPersonStage_Walking::proceed(), MSTransportable::proceed(), TraCIServer::processCommandsUntilSimStep(), MSDevice_SSM::processEncounters(), TraCIServerAPI_TrafficLight::processGet(), MSVehicle::processLaneAdvances(), MSVehicle::processNextStop(), TraCIServerAPI_Person::processSet(), TraCIServerAPI_Vehicle::processSet(), MEVehicle::processStop(), MSVehicle::processTraCISpeedControl(), MSPModel_Striping::PState::PState(), MSDevice_Routing::rebuildRerouteCommand(), MSEdge::recalcCache(), MESegment::receive(), MSRailSignal::recheckGreen(), Command_Hotkey_InductionLoop::registerHotkey(), Command_Hotkey_TrafficLight::registerHotkey(), libsumo::Helper::registerStateListener(), MSStageDriving::registerWaiting(), METriggeredCalibrator::remainingVehicleCapacity(), MSCalibrator::remainingVehicleCapacity(), LIBSUMO_NAMESPACE::POI::remove(), LIBSUMO_NAMESPACE::Polygon::remove(), LIBSUMO_NAMESPACE::Vehicle::remove(), MSVehicleControl::removePending(), MSCalibrator::removePending(), MSTransportable::removeStage(), MSBaseVehicle::replaceRoute(), MSBaseVehicle::replaceStop(), MSBaseVehicle::replaceVehicleType(), MSTransportable::replaceVehicleType(), MSDevice_ToC::requestToC(), MSBaseVehicle::reroute(), MSRoutingEngine::reroute(), MSRailSignal::LinkInfo::reroute(), MSBaseVehicle::rerouteBetweenStops(), GUIVehicle::rerouteDRTStop(), LIBSUMO_NAMESPACE::Vehicle::rerouteEffort(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), LIBSUMO_NAMESPACE::Person::rerouteTraveltime(), LIBSUMO_NAMESPACE::Vehicle::rerouteTraveltime(), MSVehicle::resetActionOffset(), MSSOTLTrafficLightLogic::resetCTS(), MSTrafficLightLogic::resetLinkStates(), MSDevice_Bluelight::resetVehicle(), MEVehicle::resumeFromStopping(), MSVehicle::resumeFromStopping(), MSActuatedTrafficLightLogic::retrieveDetExpression(), MSRouteHandler::retrieveStoppingPlace(), MSTransportable::routeOutput(), MSStateHandler::saveRNGs(), MSStateHandler::saveState(), LIBSUMO_NAMESPACE::Simulation::saveState(), MSBaseVehicle::saveState(), TraCIServer::sendOutputToAll(), MSTransportable::setAbortWaiting(), LIBSUMO_NAMESPACE::Vehicle::setAcceleration(), MSVehicleType::setActionStepLength(), MSStageTrip::setArrived(), NEMALogic::setCurrentTime(), LIBSUMO_NAMESPACE::Edge::setEffort(), LIBSUMO_NAMESPACE::Calibrator::setFlow(), GUIBaseVehicle::setFunctionalColor(), MSLaneSpeedTrigger::setOverriding(), MSLaneSpeedTrigger::setOverridingValue(), MSTransportableDevice_Routing::setParameter(), MSDevice_ToC::setParameter(), MSRailSignal::setParameter(), LIBSUMO_NAMESPACE::Simulation::setParameter(), MSCFModel_CC::setParameter(), MSTriggeredRerouter::setPermissions(), LIBSUMO_NAMESPACE::TrafficLight::setPhase(), LIBSUMO_NAMESPACE::TrafficLight::setPhaseDuration(), LIBSUMO_NAMESPACE::POI::setPosition(), LIBSUMO_NAMESPACE::TrafficLight::setProgram(), LIBSUMO_NAMESPACE::TrafficLight::setProgramLogic(), LIBSUMO_NAMESPACE::TrafficLight::setRedYellowGreenState(), LIBSUMO_NAMESPACE::Simulation::setScale(), LIBSUMO_NAMESPACE::Polygon::setShape(), LIBSUMO_NAMESPACE::Vehicle::setSpeed(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSPhasedTrafficLightLogic::setStep(), LIBSUMO_NAMESPACE::Person::setType(), LIBSUMO_NAMESPACE::Vehicle::setType(), MSSOTLTrafficLightLogic::setupCTS(), GUITriggeredRerouter::shiftProbs(), signalHandler(), LIBSUMO_NAMESPACE::Vehicle::slowDown(), LIBSUMO_NAMESPACE::Simulation::step(), MSLane::succLinkSec(), MSDevice_ToC::switchHolderType(), MSTLLogicControl::TLSLogicVariants::switchTo(), MELoop::teleportVehicle(), MSDevice_ToC::triggerDownwardToC(), MSDevice_ToC::triggerMRM(), MSPerson::MSPersonStage_Walking::tripInfoOutput(), MSStageDriving::tripInfoOutput(), METriggeredCalibrator::tryEmit(), MSInsertionControl::tryInsert(), MSDelayBasedTrafficLightLogic::trySwitch(), MSSOTLTrafficLightLogic::trySwitch(), MSActuatedTrafficLightLogic::trySwitch(), MSSimpleTrafficLightLogic::trySwitch(), MSVehicle::updateActionOffset(), MSVehicle::updateBestLanes(), MSSOTLTrafficLightLogic::updateCTS(), MSRailCrossing::updateCurrentPhase(), MSSOTLTrafficLightLogic::updateDecayThreshold(), MSDevice_Taxi::updateMove(), MSDevice_Tripinfo::updateParkingStopTime(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MELoop::updateSegmentsForEdge(), MSSwarmTrafficLightLogic::updateSensitivities(), MSAbstractLaneChangeModel::updateShadowLane(), MSPModel_Remote::usingInternalLanes(), MSPModel_Striping::usingInternalLanesStatic(), MELoop::vaporizeCar(), MSDetectorFileOutput::vehicleApplies(), MSTriggeredRerouter::vehicleApplies(), MSVehicleControl::vehicleDeparted(), MSPModel_Striping::PState::walk(), MSPerson::MSPersonStage_Walking::walkDistance(), MSVehicle::wasRemoteControlled(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSAmitranTrajectories::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSElecHybridExport::writeAggregated(), MSFullExport::writeEdge(), MSQueueExport::writeEdge(), MSNet::writeOutput(), MSDevice_Vehroutes::writeOutput(), MSFullExport::writeTLS(), MSFullExport::writeVehicles(), MSDevice_Vehroutes::writeXMLRoute(), 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 462 of file MSNet.h.

References MSNet::myJunctions.

Referenced by NLHandler::addDistrict(), NLBuilder::build(), LIBSUMO_NAMESPACE::Junction::getJunction(), and MSDevice_SSM::initEdgeFilter().

Here is the caller graph for this function:

◆ getJunctionIDs()

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

Definition at line 237 of file GUINet.cpp.

References myJunctionWrapper.

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ getJunctionPosition()

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

returns the position of a junction

Definition at line 182 of file GUINet.cpp.

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

◆ getLinkTLID()

int GUINet::getLinkTLID ( const MSLink *const  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 195 of file GUINet.cpp.

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

Referenced by GUILane::drawLinkRule().

Here is the caller graph for this function:

◆ getLinkTLIndex()

int GUINet::getLinkTLIndex ( const MSLink *const  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 210 of file GUINet.cpp.

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

Referenced by GUILane::drawTLSLinkNo().

Here is the caller graph for this function:

◆ getMeanData()

double GUINet::getMeanData ( const MSLane lane,
const std::string &  id,
const std::string &  attr 
)

retrieve live lane/edge weight for the given meanData id and attribute

Definition at line 588 of file GUINet.cpp.

References SUMOXMLDefinitions::Attrs, nlohmann::detail::get(), MSDetectorControl::getMeanData(), GUIVisualizationSettings::MISSING_DATA, and MSNet::myDetectorControl.

Referenced by GUILane::getColorValue().

Here is the caller graph for this function:

◆ getMeanDataAttrs()

std::vector< std::string > GUINet::getMeanDataAttrs ( const std::string &  meanDataID) const

return list of available attributes for the given meanData id

Definition at line 715 of file GUINet.cpp.

References MSDetectorControl::getMeanData(), and MSNet::myDetectorControl.

Referenced by GUIViewTraffic::getMeanDataAttrs().

Here is the caller graph for this function:

◆ getMeanDataIDs()

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

return list of loaded edgeData ids (being computed in the current simulation)

Definition at line 704 of file GUINet.cpp.

References MSDetectorControl::getMeanData(), and MSNet::myDetectorControl.

Referenced by GUIViewTraffic::getMeanDataIDs().

Here is the caller graph for this function:

◆ getMeanRTFactor()

double GUINet::getMeanRTFactor ( int  duration) const

Returns the simulation speed as a factor to real time.

Definition at line 379 of file GUINet.cpp.

References myOverallSimDuration.

◆ getMeanUPS()

double GUINet::getMeanUPS ( ) const

Returns the update per seconds rate.

Definition at line 388 of file GUINet.cpp.

References myOverallSimDuration, and MSNet::myVehiclesMoved.

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ getMesoType()

◆ getMicrosimID()

const std::string & GUIGlObject::getMicrosimID ( ) const
inlineinherited

Returns the id of the object as known to microsim.

Definition at line 141 of file GUIGlObject.h.

References GUIGlObject::myMicrosimID.

Referenced by SUMORTree::addAdditionalGLObject(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENetHelper::AttributeCarriers::deleteEdgeType(), GNENetHelper::AttributeCarriers::deleteSingleEdge(), GNENetHelper::AttributeCarriers::deleteSingleJunction(), GNEAdditional::drawAdditionalID(), GUIGlObject::drawName(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNEContainerStop::getAttribute(), GNEDestProbReroute::getAttribute(), GNEInductionLoopDetector::getAttribute(), GNEInstantInductionLoopDetector::getAttribute(), GNELaneAreaDetector::getAttribute(), GNEMultiEntryExitDetector::getAttribute(), GNEOverheadWire::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNERerouter::getAttribute(), GNERouteProbe::getAttribute(), GNERouteProbReroute::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNETractionSubstation::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNEContainer::getAttribute(), GNEPerson::getAttribute(), GNERoute::getAttribute(), GNEStop::getAttribute(), GNEVehicle::getAttribute(), GNEVType::getAttribute(), GNEVTypeDistribution::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNEWalkingArea::getAttribute(), GNEWalkingArea::getNBWalkingArea(), GUIDialog_ChooserAbstract::getObjectName(), GNEDialogACChooser::getObjectName(), GNEMultiEntryExitDetector::getParentName(), GNERerouter::getParentName(), GNETAZ::getParentName(), GNETractionSubstation::getParentName(), GNEVariableSpeedSign::getParentName(), GNEVType::getParentName(), GNEVTypeDistribution::getParentName(), GNEPOI::getParentName(), GNEPoly::getParentName(), GNEChange_TLS::GNEChange_TLS(), GNETLSEditorFrame::handleMultiChange(), GNENetHelper::AttributeCarriers::insertEdgeType(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), GNENetHelper::AttributeCarriers::registerEdge(), GNENetHelper::AttributeCarriers::registerEdgeType(), GNENetHelper::AttributeCarriers::registerJunction(), SUMORTree::removeAdditionalGLObject(), and GNENet::splitEdge().

◆ getNetworkVersion()

double MSNet::getNetworkVersion ( ) const
inlineinherited

return the network version

Definition at line 802 of file MSNet.h.

References MSNet::myVersion.

◆ getOptionalName()

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

Returns the name of the object (default "")

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

Definition at line 236 of file GUIGlObject.cpp.

Referenced by GUIDialog_ChooserAbstract::getObjectName().

Here is the caller graph for this function:

◆ getParameter()

const std::string Parameterised::getParameter ( const std::string &  key,
const std::string  defaultValue = "" 
) const
virtualinherited

Returns the value for a given key.

Parameters
[in]keyThe key to ask for
[in]defaultValueThe default value to return if no value is stored under the key
Returns
The value stored under the key

Reimplemented in MSActuatedTrafficLightLogic, MSSimpleTrafficLightLogic, and NEMALogic.

Definition at line 71 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NBEdge::addRestrictedLane(), FareModul::addStop(), NBEdge::append(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_Battery::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), MSRailSignal::constraintsAllow(), createTLWrapper(), GNEEdge::drawEdgeName(), GNEGenericData::drawFilteredAttribute(), GNEConnection::drawGL(), GUIEdge::drawGL(), EnergyParams::EnergyParams(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSSwarmTrafficLightLogic::getChangePlanProbability(), GUIVehicle::getColorValue(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUIEdge::getColorValue(), GUILane::getColorValue(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSSwarmTrafficLightLogic::getForgettingCox(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), RORoutable::getMaxSpeed(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), GUIBaseVehicle::getOptionalName(), GUITrafficLightLogicWrapper::getOptionalName(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), MSSimpleTrafficLightLogic::getParameter(), NEMALogic::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSBaseVehicle::getPrefixedParameter(), MSSwarmTrafficLightLogic::getReinforcementMode(), GUIBaseVehicle::getScaleValue(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSDevice::getStringParam(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSRailSignalConstraint::getVehID(), MSTriggeredRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSLink::ignoreFoe(), MSSOTLPhasePolicy::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), PushButtonLogic::init(), SigmoidLogic::init(), SUMOVTypeParameter::initRailVisualizationParameters(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSAbstractLaneChangeModel::laneChangeOutput(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), MSDevice_GLOSA::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), NBEdgeCont::splitAt(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), NWWriter_DlrNavteq::writeLinksUnsplitted(), MSDevice_SSM::writePositions(), and NWWriter_OpenDrive::writeRoadObjects().

◆ getParametersMap()

const Parameterised::Map & Parameterised::getParametersMap ( ) const
inherited

Returns the inner key/value map.

Definition at line 126 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_SUMO::_loadNetwork(), NBEdge::addLane(), LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEGenericData::drawAttribute(), GNEGenericData::drawFilteredAttribute(), NLDetectorBuilder::endE3Detector(), GNEAccess::getACParametersMap(), GNECalibrator::getACParametersMap(), GNEDetector::getACParametersMap(), GNEMultiEntryExitDetector::getACParametersMap(), GNEOverheadWire::getACParametersMap(), GNEParkingSpace::getACParametersMap(), GNERerouter::getACParametersMap(), GNERouteProbe::getACParametersMap(), GNEStoppingPlace::getACParametersMap(), GNETAZ::getACParametersMap(), GNEVaporizer::getACParametersMap(), GNEVariableSpeedSign::getACParametersMap(), GNEDataInterval::getACParametersMap(), GNEDataSet::getACParametersMap(), GNEGenericData::getACParametersMap(), GNEContainer::getACParametersMap(), GNEPerson::getACParametersMap(), GNEPersonTrip::getACParametersMap(), GNERide::getACParametersMap(), GNERoute::getACParametersMap(), GNEStop::getACParametersMap(), GNETranship::getACParametersMap(), GNETransport::getACParametersMap(), GNEVehicle::getACParametersMap(), GNEVType::getACParametersMap(), GNEWalk::getACParametersMap(), GNEConnection::getACParametersMap(), GNECrossing::getACParametersMap(), GNEEdge::getACParametersMap(), GNEEdgeType::getACParametersMap(), GNEJunction::getACParametersMap(), GNELane::getACParametersMap(), GNELaneType::getACParametersMap(), GNEPOI::getACParametersMap(), GNEPoly::getACParametersMap(), MSRailSignalConstraint_Predecessor::getDescription(), GUILane::getParameterWindow(), GNESingleParametersDialog::GNESingleParametersDialog(), MSRailCrossing::init(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), NIImporter_OpenStreetMap::insertEdge(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), GUIParameterTableWindow::numParams(), GNESingleParametersDialog::onCmdReset(), GNEVType::overwriteVType(), TraCIServerAPI_TrafficLight::processGet(), Parameterised::setParameters(), GNEEdgeData::writeGenericData(), GNEEdgeRelData::writeGenericData(), and GNETAZRelData::writeGenericData().

◆ getParametersStr()

std::string Parameterised::getParametersStr ( const std::string  kvsep = "=",
const std::string  sep = "|" 
) const
inherited

Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".

Definition at line 132 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by GNEAccess::getAttribute(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEContainerStop::getAttribute(), GNEEntryExitDetector::getAttribute(), GNEInductionLoopDetector::getAttribute(), GNEInstantInductionLoopDetector::getAttribute(), GNELaneAreaDetector::getAttribute(), GNEMultiEntryExitDetector::getAttribute(), GNEOverheadWire::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingSpace::getAttribute(), GNERerouter::getAttribute(), GNERouteProbe::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNETractionSubstation::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEEdgeData::getAttribute(), GNEEdgeRelData::getAttribute(), GNETAZRelData::getAttribute(), GNEContainer::getAttribute(), GNEPerson::getAttribute(), GNERoute::getAttribute(), GNEVehicle::getAttribute(), GNEVType::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNELaneType::getAttribute(), GNEPOI::getAttribute(), and GNEPoly::getAttribute().

Here is the caller graph for this function:

◆ 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 437 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::getStoppedVehiclesCount(), 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().

Here is the caller graph for this function:

◆ getParentName()

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

◆ getPedestrianRouter()

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

Definition at line 1417 of file MSNet.cpp.

References MSNet::myPedestrianRouter.

Referenced by MSPModel_Striping::getNextLane(), MSPModel_Striping::PState::PState(), and LIBSUMO_NAMESPACE::Person::rerouteTraveltime().

Here is the caller graph for this function:

◆ 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 127 of file GUINet.cpp.

References MSNet::myPersonControl.

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

Here is the caller graph for this function:

◆ 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 425 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 349 of file MSNet.cpp.

References MSNet::myRestrictions.

Referenced by GUILane::getParameterWindow(), MSEdge::inferEdgeType(), and MSLane::initRestrictions().

Here is the caller graph for this function:

◆ getRouterEffort()

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

◆ getRouterTT()

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

◆ getRTFactor()

double GUINet::getRTFactor ( ) const

Returns the simulation speed as a factor to real time.

Definition at line 361 of file GUINet.cpp.

References DELTA_T, and myLastSimDuration.

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ 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 347 of file GUINet.cpp.

References myLastSimDuration.

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ getStateMessage()

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

Returns the message to show if a certain state occurs.

Returns
Readable description of the state

Definition at line 850 of file MSNet.cpp.

References MSNet::SIMSTATE_CONNECTION_CLOSED, MSNet::SIMSTATE_END_STEP_REACHED, MSNet::SIMSTATE_ERROR_IN_SIM, MSNet::SIMSTATE_INTERRUPTED, MSNet::SIMSTATE_LOADING, MSNet::SIMSTATE_NO_FURTHER_VEHICLES, MSNet::SIMSTATE_RUNNING, and MSNet::SIMSTATE_TOO_MANY_TELEPORTS.

Referenced by GUIRunThread::deleteSim(), GUIApplicationWindow::handleEvent_SimulationEnded(), and MSNet::simulate().

Here is the caller graph for this function:

◆ getStoppingPlace()

MSStoppingPlace * MSNet::getStoppingPlace ( const std::string &  id,
const SumoXMLTag  category 
) const
inherited

◆ 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 1296 of file MSNet.cpp.

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

Referenced by MSTractionSubstation::addOverheadWireSegmentToCircuit(), MSDevice_ElecHybrid::notifyMove(), MSDevice_Battery::notifyMove(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), and MSVehicle::updateBestLanes().

Here is the caller graph for this function:

◆ getStoppingPlaces()

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

Definition at line 1310 of file MSNet.cpp.

References MSNet::myEmptyStoppingPlaceCont, and MSNet::myStoppingPlaces.

Referenced by libsumo::Helper::collectObjectsInRange(), and GUIViewTraffic::onGamingClick().

Here is the caller graph for this function:

◆ getTLSControl()

◆ getTLSIDs()

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

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

Definition at line 249 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 163 of file MSNet.cpp.

References MSVehicle::getBaseInfluencer(), MSRoutingEngine::getEffortExtra(), MSNet::getInstance(), MSEdge::getMinimumTravelTime(), MSBaseVehicle::BaseInfluencer::getRoutingMode(), MSNet::getWeightsStorage(), MSBaseVehicle::getWeightsStorage(), MSEdgeWeightsStorage::retrieveExistingTravelTime(), and libsumo::ROUTING_MODE_AGGREGATED_CUSTOM.

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

Here is the caller graph for this function:

◆ getType()

GUIGlObjectType GUIGlObject::getType ( ) const
inlineinherited

Returns the type of the object as coded in GUIGlObjectType.

See also
GUIGlObjectType

Definition at line 154 of file GUIGlObject.h.

References GUIGlObject::myGLObjectType.

Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIPerson::drawAction_drawWalkingareaPath(), GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNEViewNet::drawDeleteContour(), GNEEdge::drawEdgeGeometryPoints(), GNEVehicle::drawFlowLabel(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEEntryExitDetector::drawGL(), GNEInductionLoopDetector::drawGL(), GNEInstantInductionLoopDetector::drawGL(), GNELaneAreaDetector::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNETAZ::drawGL(), GNEContainer::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIContainer::drawGL(), GUILane::drawGL(), GUIPerson::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIPerson::drawGLAdditional(), GNEDemandElement::drawJunctionLine(), GNEAdditional::drawListedAddtional(), GUIBaseVehicle::drawOnPos(), GNELaneAreaDetector::drawPartialGL(), GNEOverheadWire::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartial(), GNEViewNet::drawSelectContour(), GNEAdditional::drawSquaredAdditional(), GNEVehicle::drawStackLabel(), GNEStop::drawStopPersonOverBusStop(), GNEStop::drawStopPersonOverEdge(), GNEStop::drawVehicleStop(), GNEViewNet::getAttributeCarriersInBoundary(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GNEViewNet::getWalkingAreaAtPopupPosition(), GNEAdditional::isGLObjectLocked(), GNEDemandElement::isGLObjectLocked(), GNENetworkElement::isGLObjectLocked(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUISUMOViewParent::onCmdSpeedFactor(), GUIDialog_ChooserAbstract::onCmdTrack(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOViewParent::onUpdSpeedFactor(), LayeredRTree::selectLayer(), GUIPolygon::setColor(), GNEJunction::setJunctionType(), GNEViewNetHelper::ObjectsUnderCursor::updateGenericDataElements(), GNEViewNetHelper::ObjectsUnderCursor::updateNetworkElements(), GNEViewNetHelper::ObjectsUnderCursor::updateShapeElements(), and GNEViewNetHelper::ObjectsUnderCursor::updateTAZElements().

◆ 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 GUIVehicle, GUIMEVehicle, GUIContainer, GUIEdge, GUIPerson, and GUIBaseVehicle.

Definition at line 197 of file GUIGlObject.cpp.

References UNUSED_PARAMETER.

Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().

Here is the caller graph for this function:

◆ getUPS()

double GUINet::getUPS ( ) const

Returns the update per seconds rate.

Definition at line 370 of file GUINet.cpp.

References myLastSimDuration, and myLastVehicleMovementCount.

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ getVehicleControl()

MSVehicleControl & MSNet::getVehicleControl ( )
inlineinherited

Returns the vehicle control.

Returns
The vehicle control
See also
MSVehicleControl
myVehicleControl

Definition at line 379 of file MSNet.h.

References MSNet::myVehicleControl.

Referenced by MSNet::adaptIntermodalRouter(), LIBSUMO_NAMESPACE::Person::add(), LIBSUMO_NAMESPACE::Vehicle::add(), MSVehicleTransfer::add(), MSRouteHandler::addFlowTransportable(), MSRouteHandler::addPersonTrip(), MSRouteHandler::addRideOrTransport(), MSRouteHandler::addTranship(), MSVehicle::boardTransportables(), NLBuilder::build(), MELoop::changeSegment(), GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), MSVehicleTransfer::checkInsertions(), MSRouteHandler::closeTransportable(), MSRouteHandler::closeTransportableFlow(), MSRouteHandler::closeVehicle(), MSStateHandler::closeVehicle(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), MSInsertionControl::determineCandidates(), MSDevice::equippedByDefaultAssignmentOptions(), METriggeredCalibrator::execute(), Command_RouteReplacement::execute(), MSVTypeProbe::execute(), MSCalibrator::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), MSEdgeControl::executeMovements(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), LIBSUMO_NAMESPACE::Vehicle::getFollowSpeed(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSLane::getMaximumBrakeDist(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), GUISUMOViewParent::getObjectIDs(), getParameterWindow(), MSVTKExport::getPositions(), MSCFModel_CC::getRadarMeasurements(), LIBSUMO_NAMESPACE::Simulation::getScale(), LIBSUMO_NAMESPACE::Vehicle::getSecureGap(), MSVTKExport::getSpeed(), LIBSUMO_NAMESPACE::Polygon::getTrafficObject(), libsumo::Helper::getVehicle(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSRailSignalConstraint::getVehID(), LIBSUMO_NAMESPACE::VehicleType::getVType(), MSLane::handleCollisionBetween(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIApplicationWindow::handleEvent_SimulationStep(), MSDevice_ToC::initColorScheme(), MSInsertionControl::initScale(), LIBSUMO_NAMESPACE::Vehicle::isOnInit(), MSStageDriving::loadState(), MEVehicle::mayProceed(), MSDevice_ToC::MSDevice_ToC(), MSPModel_Striping::MSPModel_Striping(), MSStateHandler::myEndElement(), MSStateHandler::myStartElement(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), MSDevice_Bluelight::notifyMove(), GUIApplicationWindow::onCmdDemandScale(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdRemoveObject(), MSBaseVehicle::onDepart(), GUIViewTraffic::onGamingClick(), MSRouteHandler::openRoute(), MSRouteHandler::openVehicleTypeDistribution(), MSStageDriving::proceed(), MSDevice_SSM::processEncounters(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), MESegment::receive(), METriggeredCalibrator::remainingVehicleCapacity(), MSCalibrator::remainingVehicleCapacity(), LIBSUMO_NAMESPACE::Vehicle::remove(), MSCalibrator::removePending(), MSBaseVehicle::replaceVehicleType(), MSTransportable::replaceVehicleType(), MSDevice_Bluelight::resetVehicle(), MEVehicle::resumeFromStopping(), MSVehicle::resumeFromStopping(), MSStateHandler::saveState(), MSBaseVehicle::saveState(), MSVehicleType::setActionStepLength(), MSStageTrip::setArrived(), LIBSUMO_NAMESPACE::Calibrator::setFlow(), MSDevice_ToC::setParameter(), MSCFModel_CC::setParameter(), LIBSUMO_NAMESPACE::Simulation::setScale(), setSimDuration(), LIBSUMO_NAMESPACE::Person::setType(), LIBSUMO_NAMESPACE::Vehicle::setType(), MSDevice_ToC::switchHolderType(), MELoop::teleportVehicle(), MSDetectorFileOutput::vehicleApplies(), MSTriggeredRerouter::vehicleApplies(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSAmitranTrajectories::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSElecHybridExport::writeAggregated(), 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

Returns the net's internal edge travel times/efforts container.

If the net does not have such a container, it is built.

Returns
The net's knowledge about edge weights

Definition at line 1119 of file MSNet.cpp.

References MSNet::myEdgeWeights.

Referenced by LIBSUMO_NAMESPACE::Edge::adaptTraveltime(), NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::addEdgeWeight(), NLBuilder::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight(), GUILane::getColorValue(), MSNet::getEffort(), GUILane::getLoadedEdgeWeight(), GUILane::getScaleValue(), GUILane::getStoredEdgeTravelTime(), MSNet::getTravelTime(), and LIBSUMO_NAMESPACE::Edge::setEffort().

Here is the caller graph for this function:

◆ 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 341 of file GUINet.cpp.

References myLastIdleDuration, and myLastSimDuration.

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ guiSimulationStep()

void GUINet::guiSimulationStep ( )

Some further steps needed for gui processing.

Definition at line 223 of file GUINet.cpp.

References GLObjectValuePassConnector< T >::updateAll().

Referenced by GUIRunThread::makeStep().

Here is the caller graph for this function:

◆ hasBidiEdges()

bool MSNet::hasBidiEdges ( ) const
inlineinherited

return whether the network contains bidirectional rail edges

Definition at line 797 of file MSNet.h.

References MSNet::myHasBidiEdges.

◆ hasContainers()

bool MSNet::hasContainers ( ) const
inlineinherited

Returns whether containers are simulated.

Definition at line 412 of file MSNet.h.

References MSNet::myContainerControl.

Referenced by MSRouteHandler::addFlowTransportable(), MSVehicle::boardTransportables(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), GUIApplicationWindow::handleEvent_SimulationStep(), MEVehicle::mayProceed(), MSVehicle::processNextStop(), MEVehicle::processStop(), and MSFCDExport::write().

Here is the caller graph for this function:

◆ hasElevation()

bool MSNet::hasElevation ( ) const
inlineinherited

return whether the network contains elevation data

Definition at line 787 of file MSNet.h.

References MSNet::myHasElevation.

Referenced by MSLaneChanger::changeOpposite(), and MSVTypeProbe::execute().

Here is the caller graph for this function:

◆ hasInstance()

static bool MSNet::hasInstance ( )
inlinestaticinherited

Returns whether the network was already constructed.

Returns
whether the network was already constructed

Definition at line 154 of file MSNet.h.

References MSNet::myInstance.

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

Here is the caller graph for this function:

◆ hasInternalLinks()

bool MSNet::hasInternalLinks ( ) const
inlineinherited

return whether the network contains internal links

Definition at line 777 of file MSNet.h.

References MSNet::myHasInternalLinks.

Referenced by MSTriggeredRerouter::addParkValues(), MSNet::closeBuilding(), MSTrafficLightLogic::init(), MSPModel_Remote::usingInternalLanes(), MSPModel_Striping::usingInternalLanesStatic(), MSDevice_Vehroutes::writeOutput(), and MSDevice_Vehroutes::writeXMLRoute().

Here is the caller graph for this function:

◆ hasJunctionHigherSpeeds()

bool MSNet::hasJunctionHigherSpeeds ( ) const
inlineinherited

return whether the network was built with higher junction speeds

Definition at line 782 of file MSNet.h.

References MSNet::myJunctionHigherSpeeds.

Referenced by MSEdge::inferEdgeType().

Here is the caller graph for this function:

◆ hasPedestrianNetwork()

bool MSNet::hasPedestrianNetwork ( ) const
inlineinherited

return whether the network contains walkingareas and crossings

Definition at line 792 of file MSNet.h.

References MSNet::myHasPedestrianNetwork.

Referenced by MSPModel_Striping::usingInternalLanesStatic().

Here is the caller graph for this function:

◆ hasPermissions()

bool MSNet::hasPermissions ( ) const
inlineinherited

Returns whether the network has specific vehicle class permissions.

Returns
whether permissions are present

Definition at line 209 of file MSNet.h.

References MSNet::myHavePermissions.

Referenced by MSRoutingEngine::initRouter().

Here is the caller graph for this function:

◆ hasPersons()

bool MSNet::hasPersons ( ) const
inlineinherited

◆ informTransportableStateListener()

void MSNet::informTransportableStateListener ( const MSTransportable *const  transportable,
TransportableState  to,
const std::string &  info = "" 
)
inherited

Informs all added listeners about a transportable's state change.

Parameters
[in]transportableThe transportable which changed its state
[in]toThe state the transportable has changed to
[in]infoInformation regarding the replacement
See also
TransportableStateListener:TransportableStateChanged

Definition at line 1209 of file MSNet.cpp.

References MSGlobals::gNumThreads, and MSNet::myTransportableStateListeners.

Referenced by MSTransportableControl::checkWaiting(), and MSTransportableControl::erase().

Here is the caller graph for this function:

◆ informVehicleStateListener()

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

Informs all added listeners about a vehicle's state change.

Parameters
[in]vehicleThe vehicle which changed its state
[in]toThe state the vehicle has changed to
[in]infoInformation regarding the replacement
See also
VehicleStateListener:vehicleStateChanged

Definition at line 1181 of file MSNet.cpp.

References MSGlobals::gNumThreads, and MSNet::myVehicleStateListeners.

Referenced by MSVehicleTransfer::add(), MSVehicleTransfer::checkInsertions(), MSVehicle::Manoeuvre::entryManoeuvreIsComplete(), MSVehicle::executeMove(), MSLane::handleCollisionBetween(), MSVehicleControl::initVehicle(), MSVehicle::processNextStop(), MSVehicleControl::removePending(), MSBaseVehicle::replaceRoute(), MSVehicle::resumeFromStopping(), and MSVehicleControl::vehicleDeparted().

Here is the caller graph for this function:

◆ initGUIStructures()

◆ initStatic()

void MSNet::initStatic ( )
staticinherited

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

Definition at line 191 of file MSNet.cpp.

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

Referenced by MSNet::MSNet().

Here is the caller graph for this function:

◆ initTLMap()

void GUINet::initTLMap ( )
private

Initialises the tl-logic map and wrappers.

Definition at line 145 of file GUINet.cpp.

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

Referenced by initGUIStructures().

Here is the caller graph for this function:

◆ interrupt()

void MSNet::interrupt ( )
inlineinherited

Definition at line 809 of file MSNet.h.

References MSNet::myAmInterrupted.

Referenced by signalHandler().

Here is the caller graph for this function:

◆ isBlocked()

bool GUIGlObject::isBlocked ( ) const
inlineinherited

get blocking status

Definition at line 164 of file GUIGlObject.h.

References GUIGlObject::myAmBlocked.

◆ isGLObjectLocked()

bool GUIGlObject::isGLObjectLocked ( )
virtualinherited

check if element is locked (Currently used only in NETEDIT)

Reimplemented in GNEAdditional, GNEDemandElement, and GNENetworkElement.

Definition at line 205 of file GUIGlObject.cpp.

◆ 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 813 of file MSNet.h.

References MSNet::myAmInterrupted.

◆ isParameterValid()

bool Parameterised::isParameterValid ( const std::string &  value,
const std::string &  kvsep,
const std::string &  sep 
)
staticprivateinherited

check if given string can be parsed to a parameter of type "key=value"

Definition at line 251 of file Parameterised.cpp.

References StringTokenizer::getVector(), and SUMOXMLDefinitions::isValidParameterKey().

Referenced by Parameterised::areAttributesValid(), and Parameterised::areParametersValid().

Here is the caller graph for this function:

◆ 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 726 of file GUINet.cpp.

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

◆ knowsParameter()

bool Parameterised::knowsParameter ( const std::string &  key) const
inherited

Returns whether the parameter is known.

Parameters
[in]keyThe key to ask for
Returns
Whether the key is known

Definition at line 65 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NBEdge::append(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), createTLWrapper(), NWWriter_DlrNavteq::getBrunnelType(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), SUMOVTypeParameter::initRailVisualizationParameters(), MSEdge::insertVehicle(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), GNEVType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), MSDevice_SSM::writePositions(), and NWWriter_OpenDrive::writeRoadObjects().

Here is the caller graph for this function:

◆ loadEdgeData()

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

load edgeData from file

Definition at line 663 of file GUINet.cpp.

References GUINet::DiscoverAttributes::firstIntervalBegin, GUINet::DiscoverAttributes::getEdgeAttrs(), OptionsCont::getOptions(), GUINet::DiscoverAttributes::lastIntervalEnd, MAX2(), MSNet::myEdgeDataEndTime, myLoadedEdgeData, GUINet::DiscoverAttributes::numIntervals, XMLSubSys::runParser(), string2time(), time2string(), TL, toString(), WRITE_MESSAGE, and WRITE_WARNING.

Referenced by GUILoadThread::run().

Here is the caller graph for this function:

◆ loadRoutes()

void MSNet::loadRoutes ( )
inherited

loads routes for the next few steps

Definition at line 426 of file MSNet.cpp.

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

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

Here is the caller graph for this function:

◆ loadState()

SUMOTime MSNet::loadState ( const std::string &  fileName)
inherited

load state from file and return new time

Definition at line 1576 of file MSNet.cpp.

References NLBuilder::buildRouteLoaderControl(), MSNet::clearState(), MsgHandler::getErrorInstance(), OptionsCont::getOptions(), MSStateHandler::MSStateTimeHandler::getTime(), MSGlobals::gStateLoaded, MSNet::myRouteLoaders, XMLSubSys::runParser(), and MSNet::updateGUI().

Referenced by LIBSUMO_NAMESPACE::Simulation::loadState(), and GUIApplicationWindow::onCmdLoadState().

Here is the caller graph for this function:

◆ lock()

void GUINet::lock ( )

grant exclusive access to the simulation state

Definition at line 554 of file GUINet.cpp.

References myLock.

Referenced by GUIViewTraffic::doPaintGL().

Here is the caller graph for this function:

◆ logSimulationDuration()

bool MSNet::logSimulationDuration ( ) const
inherited

Returns whether duration shall be logged.

Returns
Whether duration shall be logged

Definition at line 1090 of file MSNet.cpp.

References MSNet::myLogExecutionTime.

Referenced by getParameterWindow().

Here is the caller graph for this function:

◆ makeDynamicShapeUpdater()

MSDynamicShapeUpdater * MSNet::makeDynamicShapeUpdater ( )
inherited

Creates and returns a dynamic shapes updater.

See also
PolygonDynamics

Definition at line 1113 of file MSNet.cpp.

References MSNet::myDynamicShapeUpdater, and MSNet::myShapeContainer.

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

Here is the caller graph for this function:

◆ markAsFrontElement()

void GUIGlObject::markAsFrontElement ( )
virtualinherited

mark element as front element (Currently used only in NETEDIT)

Reimplemented in GNEAdditional, GNEDemandElement, and GNENetworkElement.

Definition at line 212 of file GUIGlObject.cpp.

◆ mouseWithinGeometry() [1/5]

void GUIGlObject::mouseWithinGeometry ( const Position pos,
const double  width,
const double  height,
const double  offsetX,
const double  offsetY,
const double  rot 
) const
protectedinherited

check if mouse is within elements geometry (for rectangles)

Definition at line 456 of file GUIGlObject.cpp.

References PositionVector::add(), GUIPostDrawing::addElementUnderCursor(), PositionVector::around(), DEG2RAD, gPostDrawing, GUIPostDrawing::mousePos, and PositionVector::rotate2D().

◆ mouseWithinGeometry() [2/5]

void GUIGlObject::mouseWithinGeometry ( const Position  center,
const double  radius 
) const
protectedinherited

◆ mouseWithinGeometry() [3/5]

void GUIGlObject::mouseWithinGeometry ( const PositionVector  shape) const
protectedinherited

check if mouse is within elements geometry (for filled shapes)

Definition at line 432 of file GUIGlObject.cpp.

References GUIPostDrawing::addElementUnderCursor(), PositionVector::around(), gPostDrawing, and GUIPostDrawing::mousePos.

◆ mouseWithinGeometry() [4/5]

void GUIGlObject::mouseWithinGeometry ( const PositionVector  shape,
const double  width 
) const
protectedinherited

check if mouse is within elements geometry (for shapes)

Definition at line 440 of file GUIGlObject.cpp.

References GUIPostDrawing::addElementUnderCursor(), PositionVector::distance2D(), gPostDrawing, and GUIPostDrawing::mousePos.

◆ mouseWithinGeometry() [5/5]

void GUIGlObject::mouseWithinGeometry ( const PositionVector  shape,
const double  width,
GUIGlObject parent 
) const
protectedinherited

check if mouse is within elements geometry (for edges)

Definition at line 448 of file GUIGlObject.cpp.

References GUIPostDrawing::addElementUnderCursor(), PositionVector::distance2D(), gPostDrawing, and GUIPostDrawing::mousePos.

◆ onLeftBtnPress()

virtual void GUIGlObject::onLeftBtnPress ( void *  )
inlinevirtualinherited

notify object about left click

Reimplemented in GUITriggeredRerouter::GUITriggeredRerouterEdge.

Definition at line 213 of file GUIGlObject.h.

Referenced by GUISUMOAbstractView::onLeftBtnPress().

Here is the caller graph for this function:

◆ postSimStepOutput()

void MSNet::postSimStepOutput ( ) const
inherited

Prints the statistics of the step at its end.

Called on the end of a simulation step

Definition at line 1134 of file MSNet.cpp.

References DELTA_T, MSVehicleControl::getDepartedVehicleNo(), TraCIServer::getInstance(), MSVehicleControl::getRunningVehicleNo(), MSInsertionControl::getWaitingVehicleNo(), gPrecision, MSNet::myInserter, MSNet::myLogExecutionTime, MSNet::mySimStepDuration, MSNet::myStep, MSNet::myTraCIStepDuration, MSNet::myVehicleControl, time2string(), and TS.

Referenced by MSNet::simulate().

Here is the caller graph for this function:

◆ preSimStepOutput()

void MSNet::preSimStepOutput ( ) const
inherited

Prints the current step number.

Called on the begin of a simulation step

Definition at line 1128 of file MSNet.cpp.

References MSNet::myStep, and time2string().

Referenced by MSNet::simulate().

Here is the caller graph for this function:

◆ quickReload()

void MSNet::quickReload ( )
inherited

reset state to the beginning without reloading the network

Definition at line 1556 of file MSNet.cpp.

References NLBuilder::buildRouteLoaderControl(), MSNet::clearState(), OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::getStringVector(), NLBuilder::initRandomness(), MSNet::myRouteLoaders, PROGRESS_BEGIN_TIME_MESSAGE, PROGRESS_TIME_MESSAGE, XMLSubSys::runParser(), string2time(), and MSNet::updateGUI().

Referenced by MSNet::clearState(), and GUIApplicationWindow::onCmdQuickReload().

Here is the caller graph for this function:

◆ registerCollision()

bool MSNet::registerCollision ( const SUMOTrafficObject collider,
const SUMOTrafficObject victim,
const std::string &  collisionType,
const MSLane lane,
double  pos 
)
inherited

register collision and return whether it was the first one involving these vehicles

Definition at line 1220 of file MSNet.cpp.

References MSNet::Collision::colliderSpeed, MSNet::Collision::colliderType, MSVehicleType::getID(), Named::getID(), SUMOTrafficObject::getSpeed(), SUMOTrafficObject::getVehicleType(), MSNet::Collision::lane, MSNet::myCollisions, MSNet::myStep, MSNet::Collision::pos, MSNet::Collision::time, MSNet::Collision::type, MSNet::Collision::victim, MSNet::Collision::victimSpeed, and MSNet::Collision::victimType.

Referenced by MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), and MSLane::handleCollisionBetween().

Here is the caller graph for this function:

◆ removeActiveAddVisualisation()

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

remove additional user-griggered visualisations

Reimplemented in GUIBaseVehicle, and GUIPerson.

Definition at line 210 of file GUIGlObject.h.

◆ removedPopupMenu()

virtual void GUIGlObject::removedPopupMenu ( )
inlinevirtualinherited

notify object about popup menu removal

Reimplemented in GUIBaseVehicle.

Definition at line 122 of file GUIGlObject.h.

Referenced by GUIGLObjectPopupMenu::~GUIGLObjectPopupMenu().

Here is the caller graph for this function:

◆ removeOutdatedCollisions()

void MSNet::removeOutdatedCollisions ( )
protectedinherited

remove collisions from the previous simulation step

Definition at line 1252 of file MSNet.cpp.

References MSNet::myCollisions, and MSNet::myStep.

Referenced by MSNet::simulationStep().

Here is the caller graph for this function:

◆ 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 369 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().

Here is the caller graph for this function:

◆ removeTransportableStateListener()

void MSNet::removeTransportableStateListener ( TransportableStateListener listener)
inherited

Removes a transportable states listener.

Parameters
[in]listenerThe listener to remove

Definition at line 1200 of file MSNet.cpp.

References MSNet::myTransportableStateListeners.

◆ removeVehicleStateListener()

void MSNet::removeVehicleStateListener ( VehicleStateListener listener)
inherited

Removes a vehicle states listener.

Parameters
[in]listenerThe listener to remove

Definition at line 1172 of file MSNet.cpp.

References MSNet::myVehicleStateListeners.

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

Here is the caller graph for this function:

◆ selectGLObject()

void GUIGlObject::selectGLObject ( )
virtualinherited

select GLObject (Currently used only in NETEDIT)

Reimplemented in GNEAdditional, GNEGenericData, GNEDemandElement, and GNENetworkElement.

Definition at line 224 of file GUIGlObject.cpp.

◆ setBlocked()

void GUIGlObject::setBlocked ( const bool  state = true)
inlineinherited

set blocking status

Definition at line 169 of file GUIGlObject.h.

References GUIGlObject::myAmBlocked.

Referenced by GUIGlObjectStorage::getObjectBlocking().

Here is the caller graph for this function:

◆ 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 329 of file MSNet.h.

References MSNet::myStep.

Referenced by NLBuilder::build(), GUIRunThread::init(), and LIBSUMO_NAMESPACE::Simulation::load().

Here is the caller graph for this function:

◆ setIdleDuration()

void GUINet::setIdleDuration ( int  val)

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

Definition at line 419 of file GUINet.cpp.

References myLastIdleDuration.

Referenced by GUIRunThread::tryStep().

Here is the caller graph for this function:

◆ setMicrosimID()

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

Changes the microsimID of the object.

Note
happens in NETEDIT

Reimplemented in GNEEdge.

Definition at line 242 of file GUIGlObject.cpp.

References GUIGlObjectStorage::changeName(), GUIGlObject::createFullName(), GUIGlObjectStorage::gIDStorage, GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.

Referenced by GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEClosingReroute::setAttribute(), GNEContainerStop::setAttribute(), GNEDestProbReroute::setAttribute(), GNEInductionLoopDetector::setAttribute(), GNEInstantInductionLoopDetector::setAttribute(), GNELaneAreaDetector::setAttribute(), GNEMultiEntryExitDetector::setAttribute(), GNEOverheadWire::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNERerouter::setAttribute(), GNERouteProbe::setAttribute(), GNERouteProbReroute::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNETractionSubstation::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEContainer::setAttribute(), GNEPerson::setAttribute(), GNERoute::setAttribute(), GNEVehicle::setAttribute(), GNEVType::setAttribute(), GNEVTypeDistribution::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNELane::setIndex(), GNEEdge::setMicrosimID(), GNENetHelper::AttributeCarriers::updateEdgeTypeID(), GNEConnection::updateID(), and GNENetHelper::AttributeCarriers::updateJunctionID().

Here is the caller graph for this function:

◆ setParameter()

void Parameterised::setParameter ( const std::string &  key,
const std::string &  value 
)
virtualinherited

◆ setParameters()

void Parameterised::setParameters ( const Parameterised params)
inherited

set the inner key/value map in map<string, string> format

Definition at line 148 of file Parameterised.cpp.

References Parameterised::getParametersMap(), Parameterised::myMap, and Parameterised::setParameter().

◆ setParametersMap()

void Parameterised::setParametersMap ( const Parameterised::Map paramsMap)
inherited

set the inner key/value map in map<string, string> format

Definition at line 159 of file Parameterised.cpp.

References Parameterised::myMap, and Parameterised::setParameter().

Referenced by GNESingleParametersDialog::onCmdAccept().

Here is the caller graph for this function:

◆ setParametersStr()

void Parameterised::setParametersStr ( const std::string &  paramsString,
const std::string  kvsep = "=",
const std::string  sep = "|" 
)
inherited

set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"

Parameters
[in]paramsStringA serialized key-value map
[in]kvsepThe separater between key and value
[in]sepThe separater between map entries

Definition at line 170 of file Parameterised.cpp.

References StringTokenizer::getVector(), Parameterised::myMap, and Parameterised::setParameter().

Referenced by MSDevice_Taxi::initDispatch(), GNEAccess::setAttribute(), GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEContainerStop::setAttribute(), GNEEntryExitDetector::setAttribute(), GNEInductionLoopDetector::setAttribute(), GNEInstantInductionLoopDetector::setAttribute(), GNELaneAreaDetector::setAttribute(), GNEMultiEntryExitDetector::setAttribute(), GNEOverheadWire::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingSpace::setAttribute(), GNERerouter::setAttribute(), GNERouteProbe::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNETractionSubstation::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEEdgeData::setAttribute(), GNEEdgeRelData::setAttribute(), GNETAZRelData::setAttribute(), GNEContainer::setAttribute(), GNEPerson::setAttribute(), GNERoute::setAttribute(), GNEVehicle::setAttribute(), GNEVType::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), GNELane::setAttribute(), GNELaneType::setAttribute(), GNEPOI::setAttribute(), and GNEPoly::setAttribute().

Here is the caller graph for this function:

◆ setPermissionsFound()

void MSNet::setPermissionsFound ( )
inlineinherited

Labels the network to contain vehicle class permissions.

Definition at line 215 of file MSNet.h.

References MSNet::myHavePermissions.

Referenced by NLHandler::addLane().

Here is the caller graph for this function:

◆ setSimDuration()

void GUINet::setSimDuration ( int  val)

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

Definition at line 403 of file GUINet.cpp.

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

Referenced by GUIRunThread::tryStep().

Here is the caller graph for this function:

◆ 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

What exceptions may occure?

Definition at line 384 of file MSNet.cpp.

References MSNet::adaptToState(), MSNet::closeSimulation(), MSNet::getStateMessage(), MSNet::myLogStepNumber, MSNet::myLogStepPeriod, MSNet::myStep, MSNet::postSimStepOutput(), MSNet::preSimStepOutput(), MSNet::SIMSTATE_RUNNING, SIMTIME, MSNet::simulationState(), MSNet::simulationStep(), time2string(), TL, and WRITE_MESSAGEF.

Referenced by main().

Here is the caller graph for this function:

◆ simulationState()

MSNet::SimulationState MSNet::simulationState ( SUMOTime  stopTime) const
inherited

◆ simulationStep()

void GUINet::simulationStep ( )

Performs a single simulation step (locking the simulation)

Definition at line 230 of file GUINet.cpp.

References myLock, and MSNet::simulationStep().

Referenced by GUIRunThread::makeStep().

Here is the caller graph for this function:

◆ unlock()

void GUINet::unlock ( )

release exclusive access to the simulation state

Definition at line 560 of file GUINet.cpp.

References myLock.

Referenced by GUIViewTraffic::doPaintGL().

Here is the caller graph for this function:

◆ unsetParameter()

void Parameterised::unsetParameter ( const std::string &  key)
inherited

Removes a parameter.

Parameters
[in]keyThe parameter's name

Definition at line 51 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NIImporter_OpenStreetMap::insertEdge(), MSLane::isInsertionSuccess(), and GNEVType::setAttribute().

Here is the caller graph for this function:

◆ updateGLObject()

void GUIGlObject::updateGLObject ( )
virtualinherited

update GLObject (geometry, ID, etc.) (optional)

Reimplemented in GNEAdditional, GNEGenericData, GNEDemandElement, GNEConnection, GNECrossing, GNEEdge, GNEEdgeType, GNEInternalLane, GNEJunction, GNELane, GNELaneType, and GNEWalkingArea.

Definition at line 230 of file GUIGlObject.cpp.

◆ updateGUI()

void GUINet::updateGUI ( ) const
overridevirtual

update view after simulation.loadState

Reimplemented from MSNet.

Definition at line 732 of file GUINet.cpp.

References GUIMainWindow::getInstance(), and GUIApplicationWindow::handleEvent_SimulationStep().

◆ updateParameters()

void Parameterised::updateParameters ( const Parameterised::Map mapArg)
inherited

Adds or updates all given parameters from the map.

Parameters
[in]mapArgThe keys/values to insert

Definition at line 57 of file Parameterised.cpp.

References Parameterised::setParameter().

Referenced by NIImporter_SUMO::_loadNetwork(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NLJunctionControlBuilder::closeTrafficLightLogic(), NBTrafficLightDefinition::compute(), NLDetectorBuilder::endE3Detector(), NIImporter_OpenStreetMap::insertEdge(), NBEdge::NBEdge(), and NBLoadedSUMOTLDef::NBLoadedSUMOTLDef().

Here is the caller graph for this function:

◆ vehicleExists()

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

returns the information whether the vehicle still exists

Definition at line 189 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 1547 of file MSNet.cpp.

References MSNet::myWarnedOnce.

Referenced by MSBaseVehicle::addStop().

Here is the caller graph for this function:

◆ writeChargingStationOutput()

void MSNet::writeChargingStationOutput ( ) const
inherited

write charging station output

Definition at line 1321 of file MSNet.cpp.

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

Referenced by MSNet::closeSimulation(), and MSNet::writeChargingStationOutput().

Here is the caller graph for this function:

◆ writeCollisions()

void MSNet::writeCollisions ( ) const
inherited

write collision output to (xml) file

Definition at line 502 of file MSNet.cpp.

References OutputDevice::closeTag(), MSNet::getCurrentTimeStep(), OutputDevice::getDeviceByOption(), MSNet::myCollisions, OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().

Referenced by MSNet::writeOutput().

Here is the caller graph for this function:

◆ writeOutput()

void MSNet::writeOutput ( )
inherited

Write netstate, summary and detector output.

Todo:
Which exceptions may occur?

Definition at line 956 of file MSNet.cpp.

References OutputDevice::closeTag(), DELTA_T, OptionsCont::getBool(), OutputDevice::getDevice(), SUMOVehicle::getDevice(), OutputDevice::getDeviceByOption(), MSEdgeControl::getEdges(), Named::getID(), MSNet::getInstance(), MSDevice_SSM::getInstances(), MSDevice_ToC::getInstances(), OptionsCont::getInt(), MSDevice_ElecHybrid::getMaximumBatteryCapacity(), OptionsCont::getOptions(), OptionsCont::getString(), MSNet::getVehicleControl(), MSGlobals::gHaveEmissions, MSGlobals::gOverheadWireRecuperation, SUMOVehicle::isOnRoad(), OptionsCont::isSet(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), MSNet::myDetectorControl, MSNet::myEdges, MSNet::myHasElevation, MSNet::myStep, OutputDevice::openTag(), STEPS2TIME, SUMO_ATTR_ID, SUMO_ATTR_MAXIMUMBATTERYCAPACITY, SUMO_ATTR_RECUPERATIONENABLE, SUMO_ATTR_VEHICLE, time2string(), toString(), MSDetectorControl::updateDetectors(), MSXMLRawOut::write(), MSAmitranTrajectories::write(), MSElecHybridExport::write(), MSFullExport::write(), MSQueueExport::write(), MSVTKExport::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSElecHybridExport::writeAggregated(), OutputDevice::writeAttr(), MSNet::writeCollisions(), MSDetectorControl::writeOutput(), MSNet::writeSummaryOutput(), and OutputDevice::writeXMLHeader().

Referenced by MSNet::simulationStep().

Here is the caller graph for this function:

◆ writeOverheadWireSegmentOutput()

void MSNet::writeOverheadWireSegmentOutput ( ) const
inherited

write the output generated by an overhead wire segment

Definition at line 1344 of file MSNet.cpp.

References OutputDevice::getDeviceByOption(), MSNet::myStoppingPlaces, SUMO_TAG_OVERHEAD_WIRE_SEGMENT, and MSNet::writeOverheadWireSegmentOutput().

Referenced by MSNet::closeSimulation(), and MSNet::writeOverheadWireSegmentOutput().

Here is the caller graph for this function:

◆ writeParams()

void Parameterised::writeParams ( OutputDevice device) const
inherited

write Params in the given outputdevice

Definition at line 185 of file Parameterised.cpp.

References OutputDevice::closeTag(), StringUtils::escapeXML(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().

Referenced by MSTransportable::routeOutput(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), SUMOVTypeParameter::write(), NBPTStop::write(), MSRailSignalConstraint_Predecessor::write(), GNEBusStop::writeAdditional(), GNECalibrator::writeAdditional(), GNECalibratorFlow::writeAdditional(), GNEChargingStation::writeAdditional(), GNEContainerStop::writeAdditional(), GNEInductionLoopDetector::writeAdditional(), GNEInstantInductionLoopDetector::writeAdditional(), GNELaneAreaDetector::writeAdditional(), GNEMultiEntryExitDetector::writeAdditional(), GNEOverheadWire::writeAdditional(), GNEParkingArea::writeAdditional(), GNEParkingSpace::writeAdditional(), GNERerouter::writeAdditional(), GNERouteProbe::writeAdditional(), GNETAZ::writeAdditional(), GNETractionSubstation::writeAdditional(), GNEVaporizer::writeAdditional(), GNEVariableSpeedSign::writeAdditional(), NWWriter_SUMO::writeConnection(), GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), GNERoute::writeDemandElement(), GNEVehicle::writeDemandElement(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeJunction(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), MSDevice_Vehroutes::writeOutput(), NWWriter_SUMO::writeTrafficLight(), SUMOPolygon::writeXML(), and PointOfInterest::writeXML().

Here is the caller graph for this function:

◆ writeRailSignalBlocks()

void MSNet::writeRailSignalBlocks ( ) const
inherited

write rail signal block output

Definition at line 1332 of file MSNet.cpp.

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

Referenced by MSNet::closeSimulation().

Here is the caller graph for this function:

◆ writeStatistics()

◆ writeSubstationOutput()

void MSNet::writeSubstationOutput ( ) const
inherited

write electrical substation output

Definition at line 1355 of file MSNet.cpp.

References OutputDevice::getDeviceByOption(), OptionsCont::getOptions(), MSNet::myTractionSubstations, and OutputDevice::setPrecision().

Referenced by MSNet::closeSimulation().

Here is the caller graph for this function:

◆ writeSummaryOutput()

void MSNet::writeSummaryOutput ( )
inherited

write summary-output to (xml) file

Definition at line 555 of file MSNet.cpp.

References OutputDevice::closeTag(), MSTransportableControl::getArrivedNumber(), MSVehicleControl::getArrivedVehicleNo(), MSVehicleControl::getCollisionCount(), MSTransportableControl::getDepartedNumber(), MSVehicleControl::getDepartedVehicleNo(), OutputDevice::getDeviceByOption(), MSTransportableControl::getEndedNumber(), MSVehicleControl::getEndedVehicleNo(), MSVehicleControl::getHaltingVehicleNo(), MSTransportableControl::getJammedNumber(), MSTransportableControl::getLoadedNumber(), MSVehicleControl::getLoadedVehicleNo(), MSTransportableControl::getMovingNumber(), OptionsCont::getOptions(), MSNet::getPersonControl(), MSTransportableControl::getRidingNumber(), MSVehicleControl::getRunningVehicleNo(), MSVehicleControl::getStoppedVehiclesCount(), OptionsCont::getString(), MSVehicleControl::getTeleportCount(), MSVehicleControl::getTotalDepartureDelay(), MSVehicleControl::getTotalTravelTime(), MSVehicleControl::getVehicleMeanSpeeds(), MSTransportableControl::getWaitingForVehicleNumber(), MSTransportableControl::getWaitingUntilNumber(), MSInsertionControl::getWaitingVehicleNo(), OptionsCont::isSet(), MSNet::myInserter, MSNet::myLogExecutionTime, MSNet::mySimStepDuration, MSNet::myStep, MSNet::myVehicleControl, OutputDevice::openTag(), string2time(), time2string(), and OutputDevice::writeAttr().

Referenced by MSNet::writeOutput().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ GUIOSGBuilder

friend class GUIOSGBuilder
friend

Definition at line 364 of file GUINet.h.

◆ GUITrafficLightLogicWrapper

Definition at line 84 of file GUINet.h.

Referenced by createTLWrapper().

Field Documentation

◆ GUIGlObjectTypeNamesInitializer

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

vector for TypeNames Initializer

Definition at line 343 of file GUIGlObject.h.

◆ INVALID_ID

◆ myAmBlocked

bool GUIGlObject::myAmBlocked
privateinherited

whether the object can be deleted

Definition at line 329 of file GUIGlObject.h.

Referenced by GUIGlObject::isBlocked(), and GUIGlObject::setBlocked().

◆ myAmInterrupted

bool MSNet::myAmInterrupted
protectedinherited

whether an interrupt occured

Definition at line 857 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 881 of file MSNet.h.

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

◆ myBoundary

Boundary GUINet::myBoundary
protected

The networks boundary.

Definition at line 371 of file GUINet.h.

Referenced by getBoundary(), and initGUIStructures().

◆ myCalibratorWrapper

std::vector<GUICalibrator*> GUINet::myCalibratorWrapper
protected

A calibrator dictionary.

Definition at line 383 of file GUINet.h.

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

◆ myCollisions

CollisionMap MSNet::myCollisions
protectedinherited

collisions in the current time step

Definition at line 985 of file MSNet.h.

Referenced by MSNet::getCollisions(), MSNet::registerCollision(), MSNet::removeOutdatedCollisions(), and MSNet::writeCollisions().

◆ myContainerControl

◆ myDetectorControl

◆ myDetectorWrapper

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

A detector dictionary.

Definition at line 380 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 1015 of file MSNet.h.

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

◆ myEdgeDataEndTime

SUMOTime MSNet::myEdgeDataEndTime
protectedinherited

end of loaded edgeData

Definition at line 970 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 889 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 374 of file GUINet.h.

Referenced by initGUIStructures().

◆ myEmptyStoppingPlaceCont

const NamedObjectCont< MSStoppingPlace * > MSNet::myEmptyStoppingPlaceCont
staticprotectedinherited

Definition at line 994 of file MSNet.h.

Referenced by MSNet::getStoppingPlaces().

◆ myEndOfTimestepEvents

MSEventControl* MSNet::myEndOfTimestepEvents
protectedinherited

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

See also
MSEventControl

Definition at line 883 of file MSNet.h.

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

◆ myFullName

std::string GUIGlObject::myFullName
privateinherited

full name of GL Object

Definition at line 323 of file GUIGlObject.h.

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

◆ myGlID

const GUIGlID GUIGlObject::myGlID
privateinherited

The numerical id of the object.

Definition at line 314 of file GUIGlObject.h.

Referenced by GUIGlObject::getGlID().

◆ myGLObjectType

const GUIGlObjectType GUIGlObject::myGLObjectType
privateinherited

◆ myGrid

LayeredRTree GUINet::myGrid
protected

The visualization speed-up.

Definition at line 368 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 961 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 955 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 949 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 958 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 940 of file MSNet.h.

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

◆ myIcon

FXIcon* GUIGlObject::myIcon
privateinherited

icon associatd with this GL Object

Definition at line 326 of file GUIGlObject.h.

Referenced by GUIGlObject::buildPopupHeader(), and GUIGlObject::getGLIcon().

◆ myInserter

◆ myInsertionEvents

MSEventControl* MSNet::myInsertionEvents
protectedinherited

Controls insertion events;.

See also
MSEventControl

Definition at line 885 of file MSNet.h.

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

◆ myInstance

MSNet * MSNet::myInstance = nullptr
staticprotectedinherited

Unique instance of MSNet.

Definition at line 845 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 1007 of file MSNet.h.

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

◆ myJunctionHigherSpeeds

bool MSNet::myJunctionHigherSpeeds
protectedinherited

Whether the network was built with higher speed on junctions.

Definition at line 952 of file MSNet.h.

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

◆ myJunctions

MSJunctionControl* MSNet::myJunctions
protectedinherited

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

See also
MSJunctionControl

Definition at line 873 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 377 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 1010 of file MSNet.h.

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

◆ myLastIdleDuration

int GUINet::myLastIdleDuration
protected

Definition at line 398 of file GUINet.h.

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

◆ myLastSimDuration

int GUINet::myLastSimDuration
protected

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

Definition at line 398 of file GUINet.h.

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

◆ myLastVehicleMovementCount

long GUINet::myLastVehicleMovementCount
protected

Definition at line 400 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 964 of file MSNet.h.

◆ myLinks2Logic

Links2LogicMap GUINet::myLinks2Logic
protected

The link-to-logic-id map.

Definition at line 388 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 404 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 448 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 898 of file MSNet.h.

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

◆ myLogics

MSTLLogicControl* MSNet::myLogics
protectedinherited

◆ myLogics2Wrapper

Logics2WrapperMap GUINet::myLogics2Wrapper
protected

The traffic light-to-wrapper map.

Definition at line 394 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 901 of file MSNet.h.

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

◆ myLogStepPeriod

int MSNet::myLogStepPeriod
protectedinherited

Period between successive step-log outputs.

Definition at line 903 of file MSNet.h.

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

◆ myMap

◆ myMaxTeleports

int MSNet::myMaxTeleports
protectedinherited

Maximum number of teleports.

Definition at line 854 of file MSNet.h.

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

◆ myMesoEdgeTypes

std::map<std::string, MESegment::MesoEdgeType> MSNet::myMesoEdgeTypes
protectedinherited

The edge type specific meso parameters.

Definition at line 946 of file MSNet.h.

Referenced by MSNet::addMesoType(), and MSNet::getMesoType().

◆ myMicrosimID

std::string GUIGlObject::myMicrosimID
privateinherited

ID of GL object.

Definition at line 320 of file GUIGlObject.h.

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

◆ myOverallSimDuration

long GUINet::myOverallSimDuration
protected

Definition at line 401 of file GUINet.h.

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

◆ myOverallVehicleCount

long GUINet::myOverallVehicleCount
protected

Definition at line 400 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 332 of file GUIGlObject.h.

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

◆ myPedestrianRouter

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

Definition at line 1006 of file MSNet.h.

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

◆ myPeriodicStateFiles

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

The names of the last K periodic state files (only only K shall be kept)

Definition at line 929 of file MSNet.h.

Referenced by MSNet::simulationStep().

◆ myPersonControl

◆ myPersonsMoved

long long int MSNet::myPersonsMoved
protectedinherited

Definition at line 916 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 943 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 848 of file MSNet.h.

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

◆ myRouterEffort

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

Definition at line 1005 of file MSNet.h.

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

◆ myRouterTT

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

Definition at line 1004 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 887 of file MSNet.h.

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

◆ mySimBeginMillis

long MSNet::mySimBeginMillis
protectedinherited

The overall simulation duration.

Definition at line 909 of file MSNet.h.

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

◆ mySimStepDuration

long MSNet::mySimStepDuration = 0
protectedinherited

◆ myStateDumpFiles

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

The names for the state files.

Definition at line 927 of file MSNet.h.

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

◆ myStateDumpPeriod

SUMOTime MSNet::myStateDumpPeriod
protectedinherited

The period for writing state.

Definition at line 931 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 933 of file MSNet.h.

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

◆ myStateDumpSuffix

std::string MSNet::myStateDumpSuffix
protectedinherited

Definition at line 934 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 925 of file MSNet.h.

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

◆ myStep

◆ myStoppingPlaces

◆ myTraCIMillis

long MSNet::myTraCIMillis
protectedinherited

The overall time spent waiting for traci operations including.

Definition at line 912 of file MSNet.h.

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

◆ myTraCIStepDuration

long MSNet::myTraCIStepDuration = 0
protectedinherited

The last simulation step duration.

Definition at line 906 of file MSNet.h.

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

◆ myTractionSubstations

std::vector<MSTractionSubstation*> MSNet::myTractionSubstations
protectedinherited

Dictionary of traction substations.

Definition at line 976 of file MSNet.h.

Referenced by MSNet::addTractionSubstation(), MSNet::existTractionSubstation(), MSNet::findTractionSubstation(), and MSNet::writeSubstationOutput().

◆ myTransportableStateListeners

std::vector<TransportableStateListener*> MSNet::myTransportableStateListeners
protectedinherited

Container for transportable state listener.

Definition at line 982 of file MSNet.h.

Referenced by MSNet::addTransportableStateListener(), MSNet::informTransportableStateListener(), and MSNet::removeTransportableStateListener().

◆ myVehicleControl

◆ myVehiclesMoved

long long int MSNet::myVehiclesMoved
protectedinherited

The overall number of vehicle movements.

Definition at line 915 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 979 of file MSNet.h.

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

◆ myVersion

double MSNet::myVersion
protectedinherited

the network version

Definition at line 967 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 997 of file MSNet.h.

Referenced by MSNet::warnOnce().

◆ STAGE_EVENTS

const std::string MSNet::STAGE_EVENTS
staticinherited

string constants for simstep stages

Definition at line 824 of file MSNet.h.

Referenced by MSNet::simulationStep().

◆ STAGE_INSERTIONS

const std::string MSNet::STAGE_INSERTIONS
staticinherited

Definition at line 827 of file MSNet.h.

Referenced by MSNet::simulationStep().

◆ STAGE_LANECHANGE

const std::string MSNet::STAGE_LANECHANGE
staticinherited

Definition at line 826 of file MSNet.h.

Referenced by MSNet::simulationStep().

◆ STAGE_MOVEMENTS

const std::string MSNet::STAGE_MOVEMENTS
staticinherited

Definition at line 825 of file MSNet.h.

Referenced by MSLane::detectCollisions(), and MSNet::simulationStep().

◆ STAGE_REMOTECONTROL

const std::string MSNet::STAGE_REMOTECONTROL
staticinherited

Definition at line 828 of file MSNet.h.

Referenced by MSNet::simulationStep().

◆ TypeNames

StringBijection< GUIGlObjectType > GUIGlObject::TypeNames
staticinherited

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