Eclipse SUMO - Simulation of Urban MObility
|
The simulated network and simulation perfomer. More...
#include <MSNet.h>
Data Structures | |
struct | Collision |
collision tracking More... | |
class | TransportableStateListener |
Interface for objects listening to transportable state changes. More... | |
class | VehicleStateListener |
Interface for objects listening to vehicle state changes. More... | |
Public Types | |
typedef std::map< std::string, std::vector< Collision > > | CollisionMap |
typedef std::map< std::string, std::string > | Map |
parameters map | |
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. | |
void | addMesoType (const std::string &typeID, const MESegment::MesoEdgeType &edgeType) |
Adds edge type specific meso parameters. | |
void | addRestriction (const std::string &id, const SUMOVehicleClass svc, const double speed) |
Adds a restriction for an edge type. | |
void | clearParameter () |
Clears the parameter map. | |
void | clearState (const SUMOTime step, bool quickReload=false) |
Resets events when quick-loading state. | |
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, const MMVersion &version) |
Closes the network's building process. | |
void | closeSimulation (SUMOTime start, const std::string &reason="") |
Closes the simulation (all files, connections, etc.) | |
virtual void | createTLWrapper (MSTrafficLightLogic *) |
creates a wrapper for the given logic (see GUINet) | |
bool | existTractionSubstation (const std::string &substationId) |
return whether given electrical substation exists in the network | |
MSTractionSubstation * | findTractionSubstation (const std::string &substationId) |
find electrical substation by its id | |
const std::string | generateStatistics (const SUMOTime start, const long now) |
Writes performance output and running vehicle stats. | |
const CollisionMap & | getCollisions () const |
SUMOTime | getCurrentTimeStep () const |
Returns the current simulation step. | |
double | getDouble (const std::string &key, const double defaultValue) const |
Returns the value for a given key converted to a double. | |
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. | |
MSTransportableRouter & | getIntermodalRouter (const int rngIndex, const int routingMode=0, const MSEdgeVector &prohibited=MSEdgeVector()) const |
const MESegment::MesoEdgeType & | getMesoType (const std::string &typeID) |
Returns edge type specific meso parameters if no type specific parameters have been loaded, default values are returned. | |
MMVersion | getNetworkVersion () const |
return the network version | |
virtual const std::string | getParameter (const std::string &key, const std::string defaultValue="") const |
Returns the value for a given key. | |
const Parameterised::Map & | getParametersMap () const |
Returns the inner key/value map. | |
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". | |
MSPedestrianRouter & | getPedestrianRouter (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. | |
MSVehicleRouter & | getRouterEffort (const int rngIndex, const MSEdgeVector &prohibited=MSEdgeVector()) const |
MSVehicleRouter & | getRouterTT (const int rngIndex, const MSEdgeVector &prohibited=MSEdgeVector()) const |
const NamedObjectCont< MSStoppingPlace * > & | getStoppingPlaces (SumoXMLTag category) const |
bool | hasBidiEdges () const |
return whether the network contains bidirectional rail edges | |
bool | hasElevation () const |
return whether the network contains elevation data | |
bool | hasFlow (const std::string &id) const |
return whether the given flow is known | |
bool | hasInternalLinks () const |
return whether the network contains internal links | |
bool | hasJunctionHigherSpeeds () const |
return whether the network was built with higher junction speeds | |
bool | hasParameter (const std::string &key) const |
Returns whether the parameter is set. | |
bool | hasPedestrianNetwork () const |
return whether the network contains walkingareas and crossings | |
bool | hasPermissions () const |
Returns whether the network has specific vehicle class permissions. | |
void | interrupt () |
virtual bool | isGUINet () const |
Returns whether this is a GUI Net. | |
bool | isInterrupted () const |
virtual bool | isSelected (const MSTrafficLightLogic *) const |
return wheter the given logic (or rather its wrapper) is selected in the GUI | |
void | loadRoutes () |
loads routes for the next few steps | |
SUMOTime | loadState (const std::string &fileName, const bool catchExceptions) |
load state from file and return new time | |
bool | logSimulationDuration () const |
Returns whether duration shall be logged. | |
void | mergeParameters (const Parameterised::Map &mapArg, const std::string separator=" ", bool uniqueValues=true) |
Adds or appends all given parameters from the map. | |
MSNet (MSVehicleControl *vc, MSEventControl *beginOfTimestepEvents, MSEventControl *endOfTimestepEvents, MSEventControl *insertionEvents, ShapeContainer *shapeCont=0) | |
Constructor. | |
void | quickReload () |
reset state to the beginning without reloading the network | |
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 | |
void | setCurrentTimeStep (const SUMOTime step) |
Sets the current simulation step (used by state loading) | |
virtual void | setParameter (const std::string &key, const std::string &value) |
Sets a parameter. | |
void | setParameters (const Parameterised ¶ms) |
set the inner key/value map in map<string, string> format | |
void | setParametersStr (const std::string ¶msString, const std::string kvsep="=", const std::string sep="|") |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN" | |
void | setPermissionsFound () |
Labels the network to contain vehicle class permissions. | |
SimulationState | simulate (SUMOTime start, SUMOTime stop) |
Simulates from timestep start to stop. | |
SimulationState | simulationState (SUMOTime stopTime) const |
This method returns the current simulation state. It should not modify status. | |
void | simulationStep (const bool onlyMove=false) |
Performs a single simulation step. | |
virtual bool | skipFinalReset () const |
gui may prevent final meanData reset to keep live data visible | |
void | unsetParameter (const std::string &key) |
Removes a parameter. | |
virtual void | updateGUI () const |
update view after simulation.loadState | |
void | updateParameters (const Parameterised::Map &mapArg) |
Adds or updates all given parameters from the map. | |
bool | warnOnce (const std::string &typeAndID) |
return whether a warning regarding the given object shall be issued | |
void | writeChargingStationOutput () const |
write charging station output | |
void | writeCollisions () const |
write collision output to (xml) file | |
void | writeOutput () |
Write netstate, summary and detector output. | |
void | writeOverheadWireSegmentOutput () const |
write the output generated by an overhead wire segment | |
void | writeParams (OutputDevice &device) const |
write Params in the given outputdevice | |
void | writeRailSignalBlocks () const |
write rail signal block output | |
void | writeStatistics (const SUMOTime start, const long now) const |
write statistic output to (xml) file | |
void | writeSubstationOutput () const |
write electrical substation output | |
void | writeSummaryOutput () |
write summary-output to (xml) file | |
virtual | ~MSNet () |
Destructor. | |
Output during the simulation | |
void | preSimStepOutput () const |
Prints the current step number. | |
void | postSimStepOutput () const |
Prints the statistics of the step at its end. | |
Retrieval of references to substructures | |
MSVehicleControl & | getVehicleControl () |
Returns the vehicle control. | |
virtual MSTransportableControl & | getPersonControl () |
Returns the person control. | |
bool | hasPersons () const |
Returns whether persons are simulated. | |
virtual MSTransportableControl & | getContainerControl () |
Returns the container control. | |
bool | hasContainers () const |
Returns whether containers are simulated. | |
MSEdgeControl & | getEdgeControl () |
Returns the edge control. | |
MSInsertionControl & | getInsertionControl () |
Returns the insertion control. | |
MSDetectorControl & | getDetectorControl () |
Returns the detector control. | |
MSTLLogicControl & | getTLSControl () |
Returns the tls logics control. | |
MSJunctionControl & | getJunctionControl () |
Returns the junctions control. | |
MSEventControl * | getBeginOfTimestepEvents () |
Returns the event control for events executed at the begin of a time step. | |
MSEventControl * | getEndOfTimestepEvents () |
Returns the event control for events executed at the end of a time step. | |
MSEventControl * | getInsertionEvents () |
Returns the event control for insertion events. | |
ShapeContainer & | getShapeContainer () |
Returns the shapes container. | |
MSDynamicShapeUpdater * | getDynamicShapeUpdater () |
Returns the dynamic shapes updater. | |
MSDynamicShapeUpdater * | makeDynamicShapeUpdater () |
Creates and returns a dynamic shapes updater. | |
MSEdgeWeightsStorage & | getWeightsStorage () |
Returns the net's internal edge travel times/efforts container. | |
Insertion and retrieval of stopping places | |
bool | addStoppingPlace (const SumoXMLTag category, MSStoppingPlace *stop) |
Adds a stopping place. | |
bool | addTractionSubstation (MSTractionSubstation *substation) |
Adds a traction substation. | |
MSStoppingPlace * | getStoppingPlace (const std::string &id, const SumoXMLTag category) const |
Returns the named stopping place of the given category. | |
MSStoppingPlace * | getStoppingPlace (const std::string &id) const |
Returns the named stopping place by looking through all categories. | |
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. | |
Static Public Member Functions | |
static void | adaptIntermodalRouter (MSTransportableRouter &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) | |
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" | |
static void | cleanupStatic () |
Place for static initializations of simulation components (called after successful net build) | |
static void | clearAll () |
Clears all dictionaries. | |
static double | getEffort (const MSEdge *const e, const SUMOVehicle *const v, double t) |
Returns the effort to pass an edge. | |
static MSNet * | getInstance () |
Returns the pointer to the unique instance of MSNet (singleton). | |
static std::string | getStateMessage (SimulationState state) |
Returns the message to show if a certain state occurs. | |
static double | getTravelTime (const MSEdge *const e, const SUMOVehicle *const v, double t) |
Returns the travel time to pass an edge. | |
static bool | hasInstance () |
Returns whether the network was already constructed. | |
static void | initStatic () |
Place for static initializations of simulation components (called after successful net build) | |
Static Public Attributes | |
static const std::string | STAGE_EVENTS |
string constants for simstep stages | |
static const std::string | STAGE_INSERTIONS |
static const std::string | STAGE_LANECHANGE |
static const std::string | STAGE_MOVEMENTS |
static const std::string | STAGE_REMOTECONTROL |
Protected Member Functions | |
bool | checkBidiEdges () |
check wether bidirectional edges occur in the network | |
bool | checkElevation () |
check all lanes for elevation data | |
bool | checkWalkingarea () |
check all lanes for type walkingArea | |
void | postMoveStep () |
Performs the parts of the simulation step which happen after the move. | |
void | removeOutdatedCollisions () |
remove collisions from the previous simulation step | |
Protected Attributes | |
bool | myAmInterrupted |
whether an interrupt occured | |
CollisionMap | myCollisions |
collisions in the current time step | |
std::unique_ptr< MSDynamicShapeUpdater > | myDynamicShapeUpdater |
Updater for dynamic shapes that are tracking traffic objects (ensures removal of shape dynamics when the objects are removed) | |
SUMOTime | myEdgeDataEndTime |
end of loaded edgeData | |
bool | myHasBidiEdges |
Whether the network contains bidirectional rail edges. | |
bool | myHasElevation |
Whether the network contains elevation data. | |
bool | myHasInternalLinks |
Whether the network contains internal links/lanes/edges. | |
bool | myHasPedestrianNetwork |
Whether the network contains pedestrian network elements. | |
bool | myHavePermissions |
Whether the network contains edges which not all vehicles may pass. | |
std::map< int, MSTransportableRouter * > | myIntermodalRouter |
bool | myJunctionHigherSpeeds |
Whether the network was built with higher speed on junctions. | |
std::pair< bool, NamedRTree > | myLanesRTree |
An RTree structure holding lane IDs. | |
bool | myLefthand |
Whether the network was built for left-hand traffic. | |
int | myMaxTeleports |
Maximum number of teleports. | |
std::map< std::string, MESegment::MesoEdgeType > | myMesoEdgeTypes |
The edge type specific meso parameters. | |
std::map< int, MSPedestrianRouter * > | myPedestrianRouter |
std::map< std::string, std::map< SUMOVehicleClass, double > > | myRestrictions |
The vehicle class specific speed restrictions. | |
SUMORouteLoaderControl * | myRouteLoaders |
Route loader for dynamic loading of routes. | |
std::map< int, MSVehicleRouter * > | myRouterEffort |
std::map< int, MSVehicleRouter * > | myRouterTT |
SUMOTime | myStep |
Current time step. | |
bool | myStepCompletionMissing = false |
whether libsumo triggered a partial step (executeMove) | |
std::map< SumoXMLTag, NamedObjectCont< MSStoppingPlace * > > | myStoppingPlaces |
Dictionary of bus / container stops. | |
std::vector< MSTractionSubstation * > | myTractionSubstations |
Dictionary of traction substations. | |
std::vector< TransportableStateListener * > | myTransportableStateListeners |
Container for transportable state listener. | |
std::vector< VehicleStateListener * > | myVehicleStateListeners |
Container for vehicle state listener. | |
MMVersion | myVersion |
the network version | |
std::map< std::string, bool > | myWarnedOnce |
container to record warnings that shall only be issued once | |
Substructures | |
MSVehicleControl * | myVehicleControl |
Controls vehicle building and deletion;. | |
MSTransportableControl * | myPersonControl |
Controls person building and deletion;. | |
MSTransportableControl * | myContainerControl |
Controls container building and deletion;. | |
MSEdgeControl * | myEdges |
Controls edges, performs vehicle movement;. | |
MSJunctionControl * | myJunctions |
Controls junctions, realizes right-of-way rules;. | |
MSTLLogicControl * | myLogics |
Controls tls logics, realizes waiting on tls rules;. | |
MSInsertionControl * | myInserter |
Controls vehicle insertion;. | |
MSDetectorControl * | myDetectorControl |
Controls detectors;. | |
MSEventControl * | myBeginOfTimestepEvents |
Controls events executed at the begin of a time step;. | |
MSEventControl * | myEndOfTimestepEvents |
Controls events executed at the end of a time step;. | |
MSEventControl * | myInsertionEvents |
Controls insertion events;. | |
ShapeContainer * | myShapeContainer |
A container for geometrical shapes;. | |
MSEdgeWeightsStorage * | myEdgeWeights |
The net's knowledge about edge efforts/travel times;. | |
data needed for computing performance values | |
bool | myLogExecutionTime |
Information whether the simulation duration shall be logged. | |
bool | myLogStepNumber |
Information whether the number of the simulation step shall be logged. | |
int | myLogStepPeriod |
Period between successive step-log outputs. | |
long | myTraCIStepDuration = 0 |
The last simulation step duration. | |
long | mySimStepDuration = 0 |
long | mySimBeginMillis |
The overall simulation duration. | |
long | myTraCIMillis |
The overall time spent waiting for traci operations including. | |
long long int | myVehiclesMoved |
The overall number of vehicle movements. | |
long long int | myPersonsMoved |
State output variables | |
std::vector< SUMOTime > | myStateDumpTimes |
Times at which a state shall be written. | |
std::vector< std::string > | myStateDumpFiles |
The names for the state files. | |
std::vector< std::string > | myPeriodicStateFiles |
The names of the last K periodic state files (only only K shall be kept) | |
SUMOTime | myStateDumpPeriod |
The period for writing state. | |
std::string | myStateDumpPrefix |
name components for periodic state | |
std::string | myStateDumpSuffix |
Static Protected Attributes | |
static const NamedObjectCont< MSStoppingPlace * > | myEmptyStoppingPlaceCont |
static MSNet * | myInstance = nullptr |
Unique instance of MSNet. | |
Private Member Functions | |
MSNet (const MSNet &) | |
Invalidated copy constructor. | |
MSNet & | operator= (const MSNet &) |
Invalidated assignment operator. | |
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" | |
Private Attributes | |
Parameterised::Map | myMap |
The key->value map. | |
Notification about vehicle state changes | |
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... | |
void | addVehicleStateListener (VehicleStateListener *listener) |
Adds a vehicle states listener. | |
void | removeVehicleStateListener (VehicleStateListener *listener) |
Removes a vehicle states listener. | |
void | informVehicleStateListener (const SUMOVehicle *const vehicle, VehicleState to, const std::string &info="") |
Informs all added listeners about a vehicle's state change. | |
Notification about transportable state changes | |
enum class | TransportableState { PERSON_DEPARTED , PERSON_ARRIVED , CONTAINER_DEPARTED , CONTAINER_ARRIVED } |
Definition of a transportable state. More... | |
void | addTransportableStateListener (TransportableStateListener *listener) |
Adds a transportable states listener. | |
void | removeTransportableStateListener (TransportableStateListener *listener) |
Removes a transportable states listener. | |
void | informTransportableStateListener (const MSTransportable *const transportable, TransportableState to, const std::string &info="") |
Informs all added listeners about a transportable's state change. | |
typedef std::map<std::string, std::vector<Collision> > MSNet::CollisionMap |
|
inherited |
parameters map
Definition at line 45 of file Parameterised.h.
Possible states of a simulation - running or stopped with different reasons.
|
strong |
Definition of a transportable state.
|
strong |
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. |
MSNet::MSNet | ( | MSVehicleControl * | vc, |
MSEventControl * | beginOfTimestepEvents, | ||
MSEventControl * | endOfTimestepEvents, | ||
MSEventControl * | insertionEvents, | ||
ShapeContainer * | shapeCont = 0 |
||
) |
Constructor.
This constructor builds a net of which only some basic structures are initialised. It prepares the network for being filled while loading. As soon as all edge/junction/traffic lights and other containers are build, they must be initialised using "closeBuilding".
[in] | vc | The vehicle control to use |
[in] | beginOfTimestepEvents | The event control to use for simulation step begin events |
[in] | endOfTimestepEvents | The event control to use for simulation step end events |
[in] | insertionEvents | The event control to use for insertion events |
[in] | shapeCont | The shape container to use |
ProcessError | If a network was already constructed |
Definition at line 208 of file MSNet.cpp.
References OptionsCont::getBool(), OptionsCont::getInt(), OptionsCont::getOptions(), OptionsCont::getString(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, initStatic(), myBeginOfTimestepEvents, myContainerControl, myDetectorControl, myEdges, myEdgeWeights, myEndOfTimestepEvents, myInserter, myInsertionEvents, myInstance, myJunctions, myLanesRTree, myLogExecutionTime, myLogics, myLogStepNumber, myLogStepPeriod, myMaxTeleports, myPersonControl, myRouteLoaders, myShapeContainer, myStep, myVehicleControl, string2time(), and TL.
|
virtual |
Destructor.
Definition at line 294 of file MSNet.cpp.
References cleanupStatic(), clearAll(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, myBeginOfTimestepEvents, myContainerControl, myDetectorControl, myEdges, myEdgeWeights, myEndOfTimestepEvents, myInserter, myInsertionEvents, myInstance, myIntermodalRouter, myJunctions, myLanesRTree, myLogics, myPedestrianRouter, myPersonControl, myRouteLoaders, myRouterEffort, myRouterTT, myShapeContainer, and myVehicleControl.
|
private |
Invalidated copy constructor.
|
static |
Definition at line 1563 of file MSNet.cpp.
References MSInsertionControl::adaptIntermodalRouter(), MSVehicleControl::adaptIntermodalRouter(), IntermodalNetwork< E, L, N, V >::addAccess(), IntermodalNetwork< E, L, N, V >::addCarAccess(), EffortCalculator::addStop(), IntermodalRouter< E, L, N, V >::getCarWalkTransfer(), getEdgeControl(), MSEdgeControl::getEdges(), IntermodalRouter< E, L, N, V >::getExternalEffort(), getInsertionControl(), IntermodalRouter< E, L, N, V >::getNetwork(), IntermodalEdge< E, L, N, V >::getNumericalID(), OptionsCont::getOptions(), IntermodalNetwork< E, L, N, V >::getStopEdge(), getVehicleControl(), myInstance, myStoppingPlaces, STEPS2TIME, string2time(), SUMO_TAG_BUS_STOP, SVC_PEDESTRIAN, SVC_TAXI, and TAXI_PICKUP_ANYWHERE.
Referenced by getIntermodalRouter(), and MSRoutingEngine::initRouter().
MSNet::SimulationState MSNet::adaptToState | ( | const SimulationState | state, |
const bool | isLibsumo = false |
||
) | const |
Called after a simulation step, this method adapts the current simulation state if necessary.
[in] | state | The current simulation state |
Definition at line 912 of file MSNet.cpp.
References MSTransportableControl::abortAnyWaitingForVehicle(), MSVehicleControl::abortWaiting(), TraCIServer::getInstance(), TraCIServer::getLoadArgs(), myContainerControl, myPersonControl, myVehicleControl, OptionsIO::setArgs(), SIMSTATE_LOADING, SIMSTATE_NO_FURTHER_VEHICLES, SIMSTATE_RUNNING, and TraCIServer::wasClosed().
Referenced by GUIRunThread::makeStep(), and simulate().
void MSNet::addMesoType | ( | const std::string & | typeID, |
const MESegment::MesoEdgeType & | edgeType | ||
) |
Adds edge type specific meso parameters.
[in] | id | The id of the type |
[in] | edgeType | The parameter object |
Definition at line 364 of file MSNet.cpp.
References myMesoEdgeTypes.
Referenced by NLHandler::addMesoEdgeType().
void MSNet::addRestriction | ( | const std::string & | id, |
const SUMOVehicleClass | svc, | ||
const double | speed | ||
) |
Adds a restriction for an edge type.
[in] | id | The id of the type |
[in] | svc | The vehicle class the restriction refers to |
[in] | speed | The restricted speed |
Definition at line 349 of file MSNet.cpp.
References myRestrictions.
Referenced by MSEdge::inferEdgeType(), and NLHandler::myStartElement().
bool MSNet::addStoppingPlace | ( | const SumoXMLTag | category, |
MSStoppingPlace * | stop | ||
) |
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.
[in] | stop | The stop to add |
Definition at line 1363 of file MSNet.cpp.
References Named::getID(), 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().
bool MSNet::addTractionSubstation | ( | MSTractionSubstation * | substation | ) |
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.
[in] | substation | The traction substation to add |
Definition at line 1369 of file MSNet.cpp.
References myTractionSubstations.
Referenced by NLTriggerBuilder::buildTractionSubstation().
void MSNet::addTransportableStateListener | ( | TransportableStateListener * | listener | ) |
Adds a transportable states listener.
[in] | listener | The listener to add |
Definition at line 1284 of file MSNet.cpp.
References myTransportableStateListeners.
Referenced by TraCIServer::openSocket(), and libsumo::Helper::registerStateListener().
void MSNet::addVehicleStateListener | ( | VehicleStateListener * | listener | ) |
Adds a vehicle states listener.
[in] | listener | The listener to add |
Definition at line 1256 of file MSNet.cpp.
References myVehicleStateListeners.
Referenced by LIBSUMO_NAMESPACE::Polygon::addDynamics(), MSRailSignalControl::getInstance(), MSDevice_Vehroutes::init(), MSVehicle::Influencer::GapControlState::init(), TraCIServer::openSocket(), and libsumo::Helper::registerStateListener().
|
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 219 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.
Referenced by GNEFrameAttributeModules::GenericDataAttributes::areAttributesValid(), GNEEdgeData::isValid(), GNEEdgeRelData::isValid(), and GNETAZRelData::isValid().
|
staticinherited |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 200 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.
Referenced by GNEDetector::isDetectorValid(), GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEMultiEntryExitDetector::isValid(), GNEOverheadWire::isValid(), GNEParkingArea::isValid(), GNEParkingSpace::isValid(), GNERerouter::isValid(), GNERouteProbe::isValid(), GNETAZ::isValid(), GNETAZSourceSink::isValid(), GNETractionSubstation::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSign::isValid(), GNEContainer::isValid(), GNEPerson::isValid(), GNERoute::isValid(), GNEStop::isValid(), GNEVehicle::isValid(), GNEVType::isValid(), GNEConnection::isValid(), GNECrossing::isValid(), GNEEdge::isValid(), GNEEdgeType::isValid(), GNEJunction::isValid(), GNELane::isValid(), GNELaneType::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), GNETLSEditorFrame::TLSAttributes::isValidParameters(), and GNEFrameAttributeModules::GenericDataAttributes::onCmdSetParameters().
|
protected |
check wether bidirectional edges occur in the network
Definition at line 1624 of file MSNet.cpp.
References MSEdgeControl::getEdges(), and myEdges.
Referenced by closeBuilding().
|
protected |
check all lanes for elevation data
Definition at line 1599 of file MSNet.cpp.
References MSEdgeControl::getEdges(), and myEdges.
Referenced by closeBuilding().
|
protected |
check all lanes for type walkingArea
Definition at line 1613 of file MSNet.cpp.
References MSEdgeControl::getEdges(), myEdges, and WALKINGAREA.
Referenced by closeBuilding().
|
static |
Place for static initializations of simulation components (called after successful net build)
Definition at line 201 of file MSNet.cpp.
References MSVehicle::Influencer::cleanup(), and MSGlobals::gUseMesoSim.
Referenced by ~MSNet().
|
static |
Clears all dictionaries.
Definition at line 958 of file MSNet.cpp.
References libsumo::Helper::cleanup(), MSDevice_BTsender::cleanup(), MSDevice_SSM::cleanup(), MSDevice_ToC::cleanup(), MSStopOut::cleanup(), MSDriveWay::cleanup(), MSRailSignalConstraint::cleanup(), MSRailSignalControl::cleanup(), MSCalibrator::cleanup(), TraCIServer::cleanup(), MSDevice::cleanupAll(), MSEdge::clear(), MSLane::clear(), MSRoute::clear(), OutputDevice::closeAll(), MSVehicleTransfer::getInstance(), TraCIServer::getInstance(), MSLaneSpeedTrigger::getInstances(), and MSTriggeredRerouter::getInstances().
Referenced by GUILoadThread::run(), and ~MSNet().
|
inherited |
Clears the parameter map.
Definition at line 139 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing(), and GNESingleParametersDialog::onCmdAccept().
void MSNet::clearState | ( | const SUMOTime | step, |
bool | quickReload = false |
||
) |
Resets events when quick-loading state.
step | The new simulation step |
Definition at line 989 of file MSNet.cpp.
References MELoop::clearState(), MSInsertionControl::clearState(), MSVehicleTransfer::clearState(), MSDriveWay::clearState(), MSRailSignalControl::clearState(), MSTransportableControl::clearState(), ShapeContainer::clearState(), MSVehicleControl::clearState(), MSEventControl::clearState(), MSDetectorControl::clearState(), MSTLLogicControl::clearState(), MSRoute::dict_clearState(), MSGlobals::gClearState, MSEdge::getAllEdges(), MSVehicleTransfer::getInstance(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, myBeginOfTimestepEvents, myContainerControl, myDetectorControl, myEndOfTimestepEvents, myInserter, myInsertionEvents, myLogics, myPersonControl, myShapeContainer, myStep, myStoppingPlaces, myVehicleControl, quickReload(), MSDetectorControl::updateDetectors(), and MSDetectorControl::writeOutput().
Referenced by loadState(), and quickReload().
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, | ||
const MMVersion & | version | ||
) |
Closes the network's building process.
Assigns the structures built while loading to this network.
[in] | oc | The options to use |
[in] | edges | The control of edges which belong to this network |
[in] | junctions | The control of junctions which belong to this network |
[in] | routeLoaders | The route loaders used |
[in] | tlc | The control of traffic lights which belong to this network |
[in] | stateDumpTimes | List of time steps at which state shall be written |
[in] | stateDumpFiles | Filenames for states |
[in] | hasInternalLinks | Whether the network actually contains internal links |
[in] | junctionHigherSpeeds | Whether the network was built with higher junction speeds |
[in] | version | The network version |
Definition at line 259 of file MSNet.cpp.
References checkBidiEdges(), checkElevation(), checkWalkingarea(), SysUtils::getCurrentMillis(), OptionsCont::getString(), MSGlobals::gUsingInternalLanes, MSGlobals::gWeightsSeparateTurns, hasInternalLinks(), myEdges, myHasBidiEdges, myHasElevation, myHasInternalLinks, myHasPedestrianNetwork, myJunctionHigherSpeeds, myJunctions, myLogics, myRouteLoaders, mySimBeginMillis, myStateDumpFiles, myStateDumpPeriod, myStateDumpPrefix, myStateDumpSuffix, myStateDumpTimes, myTraCIMillis, myVersion, string2time(), and TL.
Referenced by NLBuilder::buildNet().
void MSNet::closeSimulation | ( | SUMOTime | start, |
const std::string & | reason = "" |
||
) |
Closes the simulation (all files, connections, etc.)
Writes also performance output
[in] | start | The step the simulation was started with |
Definition at line 678 of file MSNet.cpp.
References MSStopOut::active(), MSDetectorControl::close(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSStopOut::generateOutputForUnfinished(), generateStatistics(), SysUtils::getCurrentMillis(), getCurrentTimeStep(), MSStopOut::getInstance(), OptionsCont::getOptions(), myDetectorControl, myLogExecutionTime, myStep, time2string(), TL, TLF, WRITE_MESSAGE, writeChargingStationOutput(), writeOverheadWireSegmentOutput(), MSDevice_Vehroutes::writePendingOutput(), writeRailSignalBlocks(), writeStatistics(), and writeSubstationOutput().
Referenced by LIBSUMO_NAMESPACE::Simulation::close(), GUIRunThread::deleteSim(), and simulate().
|
inlinevirtual |
creates a wrapper for the given logic (see GUINet)
Reimplemented in GUINet.
Definition at line 583 of file MSNet.h.
Referenced by LIBSUMO_NAMESPACE::TrafficLight::setProgramLogic(), and MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline().
bool MSNet::existTractionSubstation | ( | const std::string & | substationId | ) |
return whether given electrical substation exists in the network
Definition at line 1495 of file MSNet.cpp.
References myTractionSubstations.
MSTractionSubstation * MSNet::findTractionSubstation | ( | const std::string & | substationId | ) |
find electrical substation by its id
Definition at line 1484 of file MSNet.cpp.
References myTractionSubstations.
Referenced by NLTriggerBuilder::parseAndBuildOverheadWireClamp(), and NLTriggerBuilder::parseAndBuildOverheadWireSection().
const std::string MSNet::generateStatistics | ( | const SUMOTime | start, |
const long | now | ||
) |
Writes performance output and running vehicle stats.
[in] | start | The step the simulation was started with |
Definition at line 446 of file MSNet.cpp.
References elapsedMs2string(), MSVehicleControl::getCollisionCount(), MSVehicleControl::getDepartedVehicleNo(), MSVehicleControl::getEmergencyBrakingCount(), MSVehicleControl::getEmergencyStops(), TraCIServer::getInstance(), MSTransportableControl::getJammedNumber(), MSTransportableControl::getLoadedNumber(), MSVehicleControl::getLoadedVehicleNo(), OptionsCont::getOptions(), MSTransportableControl::getRunningNumber(), MSVehicleControl::getRunningVehicleNo(), MSVehicleControl::getTeleportCount(), MSTransportableControl::getTeleportCount(), MSTransportableControl::getTeleportsAbortWait(), MSVehicleControl::getTeleportsJam(), MSTransportableControl::getTeleportsWrongDest(), MSVehicleControl::getTeleportsWrongLane(), MSVehicleControl::getTeleportsYield(), MSInsertionControl::getWaitingVehicleNo(), joinToString(), myContainerControl, myInserter, myLogExecutionTime, myPersonControl, myPersonsMoved, mySimBeginMillis, myStep, myTraCIMillis, myVehicleControl, myVehiclesMoved, MSDevice_Tripinfo::printStatistics(), STEPS2TIME, and toString().
Referenced by closeSimulation(), and signalHandler().
|
inline |
Returns the event control for events executed at the begin of a time step.
Definition at line 471 of file MSNet.h.
References myBeginOfTimestepEvents.
Referenced by MSPModel_NonInteracting::add(), MSPModel_Striping::add(), MSTransportableDevice_FCDReplay::buildDevices(), NLTriggerBuilder::buildVaporizer(), MSActuatedTrafficLightLogic::changeStepAndDuration(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSRouteHandler::closeVehicle(), MSTLLogicControl::closeWAUT(), MSDevice_StationFinder::implementChargingStrategy(), MSDevice_FCDReplay::init(), MSLaneSpeedTrigger::init(), MSStageDriving::init(), MSActuatedTrafficLightLogic::loadState(), MSPModel_NonInteracting::loadState(), MSPModel_Striping::loadState(), MSPModel_JuPedSim::MSPModel_JuPedSim(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSTrafficLightLogic::MSTrafficLightLogic(), MSTriggeredRerouter::myEndElement(), MSDevice_StationFinder::notifyMove(), MSPerson::MSPersonStage_Access::proceed(), MSDevice_Routing::rebuildRerouteCommand(), MSDevice_ToC::requestToC(), MSTransportable::setAbortWaiting(), MSTriggeredRerouter::setPermissions(), MSDevice_ToC::triggerDownwardToC(), and MSDevice_ToC::triggerMRM().
|
inline |
Definition at line 743 of file MSNet.h.
References myCollisions.
Referenced by LIBSUMO_NAMESPACE::Simulation::getCollisions().
|
virtual |
Returns the container control.
If the container control does not exist, yet, it is created.
Reimplemented in GUINet.
Definition at line 1197 of file MSNet.cpp.
References myContainerControl.
Referenced by MSStageWaiting::abort(), MSStageDriving::abort(), MSTransportable::abortStage(), MSRouteHandler::addFlowTransportable(), MSVehicle::boardTransportables(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), GUISUMOViewParent::getObjectIDs(), MSStageWaiting::loadState(), MEVehicle::mayProceed(), MSStageTranship::moveToNextEdge(), MSStateHandler::myEndElement(), MSStateHandler::myStartElement(), MSDevice_Transportable::notifyLeave(), MSDevice_Transportable::notifyMove(), MSStageTranship::proceed(), MSStageWaiting::proceed(), MSVehicle::processNextStop(), MEVehicle::processStop(), MSStageDriving::registerWaiting(), MSStateHandler::saveState(), MSDevice_Transportable::transferAtSplitOrJoin(), MSFCDExport::write(), and MSDevice_Transportable::~MSDevice_Transportable().
|
inline |
Returns the current simulation step.
Definition at line 320 of file MSNet.h.
References myStep.
Referenced by MSRoutingEngine::_initEdgeWeights(), MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSDevice_GLOSA::adaptSpeed(), MSLane::StoringVisitor::add(), LIBSUMO_NAMESPACE::Person::add(), LIBSUMO_NAMESPACE::Vehicle::add(), MSPModel_Striping::add(), GUIEdge::addRerouter(), MSDevice_Vehroutes::addRoute(), MSBaseVehicle::addTransportable(), MSTLLogicControl::addWAUTJunction(), MSVehicle::boardTransportables(), NLDetectorBuilder::buildE2Detector(), NLDetectorBuilder::buildE2Detector(), MSActuatedTrafficLightLogic::changeStepAndDuration(), MSSimpleTrafficLightLogic::changeStepAndDuration(), closeSimulation(), NLJunctionControlBuilder::closeTrafficLightLogic(), MSTLLogicControl::closeWAUT(), MSCFModel_CC::commitToLaneChange(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), MSDevice_Taxi::customerArrived(), 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(), GUINet::getEdgeData(), MSTransportable::getEdgePos(), MSLane::getFirstVehicleInformation(), MSInductLoop::getLastDetectionTime(), MSLane::getLastVehicleInformation(), LIBSUMO_NAMESPACE::Lane::getLinks(), MESegment::getMeanSpeed(), LIBSUMO_NAMESPACE::Vehicle::getNextLinks(), MSInsertionControl::getPendingEmits(), MSTransportable::getPosition(), MSVehicle::getPosition(), MSVehicle::getStopDelay(), MSTransportable::getWaitingSeconds(), MSTransportable::getWaitingTime(), MSLink::getZipperSpeed(), GUIApplicationWindow::handleEvent_SimulationStep(), MSMeanData::init(), MSLaneSpeedTrigger::init(), MSStageDriving::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_JuPedSim::MSPModel_JuPedSim(), MSDevice_Transportable::notifyEnter(), MSDevice_Vehroutes::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(), MSBaseVehicle::replaceStop(), MSRailSignal::LinkInfo::reroute(), MSBaseVehicle::rerouteBetweenStops(), MSVehicle::resetActionOffset(), MSSOTLTrafficLightLogic::resetCTS(), MSTrafficLightLogic::resetLinkStates(), MSVehicle::resumeFromStopping(), TraCIServer::sendOutputToAll(), NEMALogic::setCurrentTime(), LIBSUMO_NAMESPACE::TrafficLight::setPhase(), LIBSUMO_NAMESPACE::TrafficLight::setPhaseDuration(), LIBSUMO_NAMESPACE::TrafficLight::setProgramLogic(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSSOTLTrafficLightLogic::setStep(), MSSOTLTrafficLightLogic::setupCTS(), MSTriggeredRerouter::triggerRouting(), MSStageDriving::tripInfoOutput(), MSStageWalking::tripInfoOutput(), GUIRunThread::tryStep(), MSRailCrossing::trySwitch(), MSSOTLTrafficLightLogic::trySwitch(), MSActuatedTrafficLightLogic::trySwitch(), MSDelayBasedTrafficLightLogic::trySwitch(), MSSimpleTrafficLightLogic::trySwitch(), MSVehicle::updateActionOffset(), MSSOTLTrafficLightLogic::updateCTS(), MSRailCrossing::updateCurrentPhase(), MSDevice_Tripinfo::updateParkingStopTime(), MSSwarmTrafficLightLogic::updateSensitivities(), MSVehicle::wasRemoteControlled(), writeCollisions(), and MSDevice_Vehroutes::writeOutput().
|
inline |
Returns the detector control.
Definition at line 441 of file MSNet.h.
References myDetectorControl.
Referenced by MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NLDetectorBuilder::buildE2Detector(), NLDetectorBuilder::buildE2Detector(), NLDetectorBuilder::buildInductLoop(), NLDetectorBuilder::buildInstantInductLoop(), NLDetectorBuilder::buildRouteProbe(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NLDetectorBuilder::createEdgeLaneMeanData(), NLDetectorBuilder::endE3Detector(), LIBSUMO_NAMESPACE::LaneArea::getDetector(), LIBSUMO_NAMESPACE::MultiEntryExit::getDetector(), LIBSUMO_NAMESPACE::InductionLoop::getDetector(), LIBSUMO_NAMESPACE::MeanData::getMeanData(), LIBSUMO_NAMESPACE::InductionLoop::getMEDetector(), LIBSUMO_NAMESPACE::RouteProbe::getRouteProbe(), LIBSUMO_NAMESPACE::InductionLoop::getTree(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), NEMALogic::init(), NLTriggerBuilder::parseAndBuildCalibrator(), and MSActuatedTrafficLightLogic::retrieveDetExpression().
|
inherited |
Returns the value for a given key converted to a double.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 100 of file Parameterised.cpp.
References Parameterised::myMap, TL, StringUtils::toDouble(), WRITE_WARNING, and WRITE_WARNINGF.
Referenced by MSPModel_JuPedSim::add(), MSVehicleType::build(), MSVehicleType::check(), EnergyParams::EnergyParams(), MSSOTLPolicy5DStimulus::getStimCox(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut(), MSSOTLPolicy5DStimulus::getStimCoxExpIn(), MSSOTLPolicy5DStimulus::getStimCoxExpOut(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionIn(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionOut(), MSSOTLPolicy5DStimulus::getStimDivisorIn(), MSSOTLPolicy5DStimulus::getStimDivisorOut(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionIn(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionOut(), MSSOTLPolicy5DStimulus::getStimOffsetIn(), MSSOTLPolicy5DStimulus::getStimOffsetOut(), MSActuatedTrafficLightLogic::init(), MSDevice_ElecHybrid::MSDevice_ElecHybrid(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), and MSDevice_Battery::readParameterValue().
|
inherited |
Returns the value for a given key converted to a list of doubles.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 118 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, TL, StringUtils::toDouble(), WRITE_WARNING, and WRITE_WARNINGF.
Referenced by EnergyParams::EnergyParams().
|
inline |
Returns the dynamic shapes updater.
Definition at line 508 of file MSNet.h.
References myDynamicShapeUpdater.
|
inline |
Returns the edge control.
Definition at line 421 of file MSNet.h.
References myEdges.
Referenced by MSRoutingEngine::_initEdgeWeights(), MSRoutingEngine::adaptEdgeEfforts(), adaptIntermodalRouter(), NLBuilder::build(), MSPModel_JuPedSim::buildPedestrianNetwork(), MSLane::executeMovements(), MSRoutingEngine::getIntermodalRouterTT(), MSRoutingEngine::getRouterTT(), MSLane::incorporateVehicle(), MSMeanData::init(), MSRoutingEngine::initRouter(), MSStateHandler::myStartElement(), MSVehicle::processLaneAdvances(), MSRoutingEngine::reroute(), MSRoutingEngine::reroute(), MSStateHandler::saveState(), MSFCDExport::write(), MSFullExport::writeEdge(), and MSQueueExport::writeEdge().
|
static |
Returns the effort to pass an edge.
[in] | e | The edge for which the effort to be passed shall be returned |
[in] | v | The vehicle that is rerouted |
[in] | t | The time for which the effort shall be returned [s] |
Definition at line 151 of file MSNet.cpp.
References getInstance(), getWeightsStorage(), MSBaseVehicle::getWeightsStorage(), and MSEdgeWeightsStorage::retrieveExistingEffort().
Referenced by getRouterEffort().
|
inline |
Returns the event control for events executed at the end of a time step.
Definition at line 481 of file MSNet.h.
References myEndOfTimestepEvents.
Referenced by LIBSUMO_NAMESPACE::Polygon::addDynamics(), MSTractionSubstation::addSolvingCircuitToEndOfTimestepEvents(), MSDevice_BTreceiver::BTreceiverUpdate::BTreceiverUpdate(), MSRouteHandler::closeVehicle(), Command_SaveTLSProgram::Command_SaveTLSProgram(), Command_SaveTLSState::Command_SaveTLSState(), Command_SaveTLSSwitches::Command_SaveTLSSwitches(), Command_SaveTLSSwitchStates::Command_SaveTLSSwitchStates(), MSVehicleControl::deleteKeptVehicle(), MSParkingArea::enter(), MSCalibrator::init(), MSDevice_Taxi::initDispatch(), MSRoutingEngine::initWeightUpdate(), MSParkingArea::leaveFrom(), and MSVTypeProbe::MSVTypeProbe().
|
inline |
Returns the insertion control.
Definition at line 431 of file MSNet.h.
References myInserter.
Referenced by adaptIntermodalRouter(), LIBSUMO_NAMESPACE::Vehicle::add(), MSRouteHandler::addFlowTransportable(), MSRouteHandler::addRideOrTransport(), MSLane::checkFailure(), LIBSUMO_NAMESPACE::Simulation::clearPending(), MSStateHandler::closeVehicle(), MSRouteHandler::closeVehicle(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), GUINet::getParameterWindow(), GUIEdge::getPendingEmits(), GUILane::getPendingEmits(), LIBSUMO_NAMESPACE::Simulation::getPendingVehicles(), LIBSUMO_NAMESPACE::Edge::getPendingVehicles(), LIBSUMO_NAMESPACE::Lane::getPendingVehicles(), GUILane::getScaleValue(), GUIApplicationWindow::handleEvent_SimulationStep(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MSVehicleTransfer::loadState(), LIBSUMO_NAMESPACE::Vehicle::moveTo(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSStateHandler::myStartElement(), MSStageDriving::proceed(), MSVehicle::processNextStop(), LIBSUMO_NAMESPACE::Vehicle::remove(), MSBaseVehicle::reroute(), MSStateHandler::saveState(), MSVehicleType::setScale(), and MSDevice_FCDReplay::FCDHandler::updateTrafficObjects().
|
inline |
Returns the event control for insertion events.
Definition at line 491 of file MSNet.h.
References myInsertionEvents.
Referenced by MSDevice_Routing::MSDevice_Routing(), MSTransportableDevice_Routing::MSTransportableDevice_Routing(), and MSTransportableDevice_Routing::setParameter().
|
static |
Returns the pointer to the unique instance of MSNet (singleton).
ProcessError | If a network was not yet constructed |
Definition at line 185 of file MSNet.cpp.
References myInstance, and TL.
Referenced by MSRoutingEngine::_initEdgeWeights(), MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSCFModel_CC::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSStageWaiting::abort(), MSStageWalking::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_JuPedSim::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(), MSRouteHandler::addPersonTrip(), NLHandler::addPredecessorConstraint(), GUIEdge::addRerouter(), MSRouteHandler::addRideOrTransport(), MSDevice_Vehroutes::addRoute(), MSTractionSubstation::addSolvingCircuitToEndOfTimestepEvents(), MSRouteHandler::addStop(), MSBaseVehicle::addStop(), MSRouteHandler::addTranship(), MSRouteHandler::addTransportable(), MSBaseVehicle::addTransportable(), MSPModel_JuPedSim::addWaitingSet(), MSTLLogicControl::addWAUTJunction(), LIBSUMO_NAMESPACE::Person::appendDrivingStage(), LIBSUMO_NAMESPACE::Person::appendWaitingStage(), LIBSUMO_NAMESPACE::Person::appendWalkingStage(), MSTriggeredRerouter::applies(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSVehicle::boardTransportables(), MSDevice_BTreceiver::BTreceiverUpdate::BTreceiverUpdate(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), MSTransportableDevice_FCDReplay::buildDevices(), 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(), GUIViewTraffic::changePedestrianNetworkColor(), MELoop::changeSegment(), MSActuatedTrafficLightLogic::changeStepAndDuration(), MSSimpleTrafficLightLogic::changeStepAndDuration(), LIBSUMO_NAMESPACE::Vehicle::changeTarget(), MSLane::checkFailure(), GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), MSVehicleTransfer::checkInsertions(), MSDevice_FCDReplay::FCDHandler::checkRoute(), MSBaseVehicle::checkRouteRemoval(), MSTransportableControl::checkWaiting(), MSVehicle::Influencer::GapControlState::cleanup(), LIBSUMO_NAMESPACE::Simulation::clearPending(), LIBSUMO_NAMESPACE::Simulation::close(), MSRouteHandler::closeFlow(), MSRouteHandler::closeRoute(), MSRouteHandler::closeTransportable(), MSRouteHandler::closeTransportableFlow(), MSStateHandler::closeVehicle(), MSRouteHandler::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(), MSCFModel_CC::commitToLaneChange(), 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(), MSVehicleControl::deleteKeptVehicle(), MSLane::detectCollisions(), MSInsertionControl::determineCandidates(), MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), TraCIServer::dispatchCommand(), MSDevice_Taxi::dispatchShared(), GUIJunctionWrapper::drawGL(), GUITrafficLightLogicWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUIViewTraffic::drawPedestrianNetwork(), MSVehicleType::duplicateType(), MSActuatedTrafficLightLogic::duration(), GUITriggerBuilder::endParkingArea(), GUITriggerBuilder::endStoppingPlace(), MSParkingArea::enter(), MSVehicle::enterLaneAtInsertion(), MSVehicle::Manoeuvre::entryManoeuvreIsComplete(), MSDevice::equippedByDefaultAssignmentOptions(), MSTransportableControl::erase(), MSStoppingPlaceRerouter::evaluateDestination(), Command_SaveTLCoupledDet::execute(), Command_SaveTLCoupledLaneDet::execute(), Command_Hotkey_TrafficLight::execute(), METriggeredCalibrator::execute(), Command_RouteReplacement::execute(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSTransportableDevice_FCDReplay::MovePedestrians::execute(), MSVehicleControl::DeleteKeptVehicle::execute(), MSVTypeProbe::execute(), MSPerson::MSPersonStage_Access::ProceedCmd::execute(), MSCalibrator::execute(), MSDevice_FCDReplay::MoveVehicles::execute(), MSVehicle::executeFractionalMove(), LIBSUMO_NAMESPACE::Simulation::executeMove(), MSVehicle::executeMove(), MSLane::executeMovements(), MSEdgeControl::executeMovements(), LIBSUMO_NAMESPACE::Polygon::exists(), MSCFModel_CC::finalizeSpeed(), MSDevice_StationFinder::findChargingStation(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), MSCFModel_CC::findVehicle(), MSActuatedTrafficLightLogic::gapControl(), MSDevice_Tripinfo::generateOutputForUnfinished(), LIBSUMO_NAMESPACE::Edge::getAdaptedTraveltime(), MSTransportable::getAngle(), MSVehicle::getBackPosition(), 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::LaneArea::getDetector(), LIBSUMO_NAMESPACE::MultiEntryExit::getDetector(), LIBSUMO_NAMESPACE::InductionLoop::getDetector(), MSActuatedTrafficLightLogic::getDetectorPriority(), MSRailSignal::LinkInfo::getDriveWay(), libsumo::Helper::getDrivingDistance(), MSTransportable::getEdgePos(), getEffort(), LIBSUMO_NAMESPACE::Edge::getEffort(), MSLane::getFirstVehicleInformation(), LIBSUMO_NAMESPACE::Vehicle::getFollowSpeed(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), GUINet::getGUIInstance(), MSRailSignalControl::getInstance(), MSRoutingEngine::getIntermodalRouterTT(), LIBSUMO_NAMESPACE::Junction::getJunction(), MSInductLoop::getLastDetectionTime(), MSInsertionControl::getLastFlowVehicle(), LIBSUMO_NAMESPACE::Edge::getLastStepPersonIDs(), MSLane::getLastVehicleInformation(), MSLink::getLeaderInfo(), MSBaseVehicle::getLeavingPersonNumber(), LIBSUMO_NAMESPACE::Lane::getLinks(), GUILane::getLoadedEdgeWeight(), LIBSUMO_NAMESPACE::Vehicle::getLoadedIDList(), MSLane::getMaximumBrakeDist(), LIBSUMO_NAMESPACE::MeanData::getMeanData(), MESegment::getMeanSpeed(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), LIBSUMO_NAMESPACE::InductionLoop::getMEDetector(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), MSPModel_Striping::getNextLane(), LIBSUMO_NAMESPACE::Vehicle::getNextLinks(), GUISUMOViewParent::getObjectIDs(), LIBSUMO_NAMESPACE::OverheadWire::getOverheadWire(), MSCFModel_CC::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GUILane::getParameterWindow(), NLTriggerBuilder::getParkingArea(), 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(), MSVehicle::getPreviousLane(), LIBSUMO_NAMESPACE::RouteProbe::getRouteProbe(), MSStoppingPlaceRerouter::getRouter(), MSBaseVehicle::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_NAMESPACE::Vehicle::getTeleportingIDList(), libsumo::Helper::getTLS(), LIBSUMO_NAMESPACE::Polygon::getTrafficObject(), getTravelTime(), MSEdge::getTravelTimeStatic(), LIBSUMO_NAMESPACE::InductionLoop::getTree(), LIBSUMO_NAMESPACE::Junction::getTree(), LIBSUMO_NAMESPACE::POI::getTree(), LIBSUMO_NAMESPACE::Polygon::getTree(), GUIEdge::getTypeParameterWindow(), MSRailSignalConstraint::getVeh(), libsumo::Helper::getVehicle(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSCFModel_CC::getVehicleInformation(), MSEdge::getViaSuccessors(), LIBSUMO_NAMESPACE::VehicleType::getVType(), MSTransportable::getWaitingSeconds(), MSTransportable::getWaitingTime(), MSLink::getZipperSpeed(), MSLane::handleCollisionBetween(), MSLane::handleIntermodalCollisionBetween(), libsumo::Helper::handleSubscriptions(), MSLane::hasPedestrians(), LIBSUMO_NAMESPACE::POI::highlight(), LIBSUMO_NAMESPACE::Vehicle::highlight(), MSPModel_Striping::PState::ignoreRed(), MSVehicle::ignoreRed(), MSDevice_StationFinder::implementChargingStrategy(), MSLane::incorporateVehicle(), MSEdge::inferEdgeType(), MSVehicle::influenceChangeDecision(), MSDevice_FCDReplay::init(), MSDevice_Vehroutes::init(), MSVehicle::Influencer::GapControlState::init(), MSMeanData::init(), MSCalibrator::init(), MSLaneSpeedTrigger::init(), MSStageDriving::init(), MSRailCrossing::init(), MSSwarmTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::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(), MSLCM_SL2015::isBidi(), MSLane::isInsertionSuccess(), LIBSUMO_NAMESPACE::Vehicle::isOnInit(), MSVehicle::Influencer::isRemoteControlled(), MSPerson::Influencer::isRemoteControlled(), MSTrafficLightLogic::isSelected(), MSSOTLTrafficLightLogic::isThresholdPassed(), MSVehicle::joinTrainPart(), MSVehicle::joinTrainPartFront(), MSAbstractLaneChangeModel::laneChangeOutput(), MSParkingArea::leaveFrom(), MSVehicle::leaveLane(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), LIBSUMO_NAMESPACE::Simulation::load(), LIBSUMO_NAMESPACE::Simulation::loadState(), MSLane::loadState(), MSDevice_Battery::loadState(), MSDevice_StationFinder::loadState(), MSVehicleTransfer::loadState(), MSDriveWay::loadState(), MSActuatedTrafficLightLogic::loadState(), MSPModel_Striping::loadState(), MSStageDriving::loadState(), MSStageWaiting::loadState(), MSStageWalking::loadState(), MSDevice_FCDReplay::FCDHandler::makePlan(), MSVehicle::Manoeuvre::manoeuvreIsComplete(), MSVehicle::Manoeuvre::manoeuvreIsComplete(), MEVehicle::mayProceed(), MSTransportableDevice_FCDReplay::move(), LIBSUMO_NAMESPACE::Vehicle::moveTo(), MSStageTranship::moveToNextEdge(), MSStageWalking::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(), MSDevice_Transportable::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Vehroutes::notifyLeave(), MSCalibrator::VehicleRemover::notifyLeave(), MSDevice_ElecHybrid::notifyMove(), MSDevice_Battery::notifyMove(), MSDevice_Bluelight::notifyMove(), MSDevice_Transportable::notifyMove(), MSDevice_StationFinder::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), GUIApplicationWindow::onCmdLoadState(), GUIApplicationWindow::onCmdQuickReload(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdRemoveObject(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), GUIApplicationWindow::onCmdSaveState(), MSBaseVehicle::onDepart(), GUIViewTraffic::onGamingClick(), MEVehicle::onRemovalFromNet(), TraCIServer::openSocket(), MSRouteHandler::openVehicleTypeDistribution(), NLTriggerBuilder::parseAndBuildOverheadWireClamp(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), MSRouteHandler::parseFromViaTo(), libsumo::Helper::postProcessRemoteControl(), MSPerson::Influencer::postProcessRemoteControl(), TraCIServer::postProcessSimulationStep(), MESegment::prepareDetectorForWriting(), MSStageWalking::proceed(), MSTransportable::proceed(), TraCIServer::processCommands(), 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(), 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(), MSStageTrip::reroute(), MSRoutingEngine::reroute(), MSBaseVehicle::reroute(), MSRoutingEngine::reroute(), MSRailSignal::LinkInfo::reroute(), MSBaseVehicle::rerouteBetweenStops(), GUIVehicle::rerouteDRTStop(), LIBSUMO_NAMESPACE::Vehicle::rerouteEffort(), 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(), MSStageDriving::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(), 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(), MSVehicleType::setScale(), LIBSUMO_NAMESPACE::Polygon::setShape(), LIBSUMO_NAMESPACE::Vehicle::setSpeed(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSSOTLTrafficLightLogic::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_Transportable::transferAtSplitOrJoin(), MSDevice_ToC::triggerDownwardToC(), MSDevice_ToC::triggerMRM(), MSTriggeredRerouter::triggerRouting(), MSStageDriving::tripInfoOutput(), MSStageWalking::tripInfoOutput(), METriggeredCalibrator::tryEmit(), MSInsertionControl::tryInsert(), MSRailCrossing::trySwitch(), MSSOTLTrafficLightLogic::trySwitch(), MSActuatedTrafficLightLogic::trySwitch(), MSDelayBasedTrafficLightLogic::trySwitch(), MSSimpleTrafficLightLogic::trySwitch(), MSBaseVehicle::unregisterWaiting(), MSVehicle::updateActionOffset(), MSVehicle::updateBestLanes(), MSSOTLTrafficLightLogic::updateCTS(), MSRailCrossing::updateCurrentPhase(), MSSOTLTrafficLightLogic::updateDecayThreshold(), MSDevice_Taxi::updateMove(), MSDevice_Tripinfo::updateParkingStopTime(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MELoop::updateSegmentsForEdge(), MSSwarmTrafficLightLogic::updateSensitivities(), MSAbstractLaneChangeModel::updateShadowLane(), MSVehicle::updateState(), MSDevice_FCDReplay::FCDHandler::updateTrafficObjects(), MSPModel_Interacting::usingInternalLanesStatic(), MELoop::vaporizeCar(), MSDetectorFileOutput::vehicleApplies(), MSVehicleControl::vehicleDeparted(), MSPModel_Striping::PState::walk(), MSStageWalking::walkDistance(), MSVehicle::wasRemoteControlled(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSAmitranTrajectories::write(), MSChargingStationExport::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSMeanData::writeAggregated(), MSElecHybridExport::writeAggregated(), MSMeanData::writeEdge(), MSFullExport::writeEdge(), MSQueueExport::writeEdge(), writeOutput(), MSDevice_Vehroutes::writeOutput(), MSDevice_Vehroutes::writePendingOutput(), MSFullExport::writeTLS(), MSFullExport::writeVehicles(), MSDevice_Vehroutes::writeXMLRoute(), MSDevice_BTreceiver::BTreceiverUpdate::~BTreceiverUpdate(), MSDevice_Transportable::~MSDevice_Transportable(), MSTransportable::~MSTransportable(), and MSVehicle::~MSVehicle().
MSTransportableRouter & MSNet::getIntermodalRouter | ( | const int | rngIndex, |
const int | routingMode = 0 , |
||
const MSEdgeVector & | prohibited = MSEdgeVector() |
||
) | const |
Definition at line 1544 of file MSNet.cpp.
References adaptIntermodalRouter(), OptionsCont::getInt(), OptionsCont::getOptions(), OptionsCont::getString(), MSDevice_Taxi::getTaxi(), myIntermodalRouter, SUMOVehicleParserHelper::parseCarWalkTransfer(), libsumo::ROUTING_MODE_COMBINED, STEPS2TIME, and string2time().
Referenced by LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), MSStageTrip::setArrived(), and MSTriggeredRerouter::triggerRouting().
|
inline |
Returns the junctions control.
Definition at line 461 of file MSNet.h.
References myJunctions.
Referenced by NLHandler::addDistrict(), NLNetShapeHandler::addJunction(), NLBuilder::build(), MSPModel_JuPedSim::buildPedestrianNetwork(), LIBSUMO_NAMESPACE::Junction::getJunction(), LIBSUMO_NAMESPACE::Junction::getTree(), MSDevice_SSM::initEdgeFilter(), and NLTriggerBuilder::parseAndBuildCalibrator().
const MESegment::MesoEdgeType & MSNet::getMesoType | ( | const std::string & | typeID | ) |
Returns edge type specific meso parameters if no type specific parameters have been loaded, default values are returned.
Definition at line 369 of file MSNet.cpp.
References OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getOptions(), OptionsCont::getString(), MESegment::MesoEdgeType::jamThreshold, MESegment::MesoEdgeType::junctionControl, MESegment::MesoEdgeType::minorPenalty, myMesoEdgeTypes, MESegment::MesoEdgeType::overtaking, string2time(), MESegment::MesoEdgeType::tauff, MESegment::MesoEdgeType::taufj, MESegment::MesoEdgeType::taujf, MESegment::MesoEdgeType::taujj, MESegment::MesoEdgeType::tlsFlowPenalty, and MESegment::MesoEdgeType::tlsPenalty.
Referenced by NLHandler::addMesoEdgeType(), MELoop::buildSegmentsFor(), GUIEdge::getTypeParameterWindow(), MSTrafficLightLogic::initMesoTLSPenalties(), MSEdge::recalcCache(), and MELoop::updateSegmentsForEdge().
|
inline |
|
virtualinherited |
Returns the value for a given key.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Reimplemented in MSActuatedTrafficLightLogic, MSSimpleTrafficLightLogic, and NEMALogic.
Definition at line 90 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSPModel_JuPedSim::add(), NBRailwayTopologyAnalyzer::addBidiEdge(), NBEdge::addRestrictedLane(), FareModul::addStop(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), MSVehicleType::check(), MSRailSignal::constraintsAllow(), GUINet::createTLWrapper(), GNEEdge::drawEdgeName(), GNEConnection::drawEdgeValues(), GNEGenericData::drawFilteredAttribute(), GUIEdge::drawGL(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), GUIVehicle::getColorValue(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUIEdge::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), RORoutable::getMaxSpeed(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), GUIBaseVehicle::getOptionalName(), GUITrafficLightLogicWrapper::getOptionalName(), MSDevice_SSM::getOutputFilename(), MSSimpleTrafficLightLogic::getParameter(), NEMALogic::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSBaseVehicle::getPrefixedParameter(), GUIBaseVehicle::getScaleValue(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), SUMOTrafficObject::getStringParam(), MSRailSignalConstraint::getVeh(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSStoppingPlaceRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSRailSignalControl::haveDeadlock(), MSLink::ignoreFoe(), MSSOTLPhasePolicy::init(), MSStageDriving::init(), PushButtonLogic::init(), SigmoidLogic::init(), SUMOVTypeParameter::initRailVisualizationParameters(), NIImporter_OpenStreetMap::insertNodeChecking(), MSAbstractLaneChangeModel::laneChangeOutput(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSDevice_GLOSA::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), MSVehicle::slowDownForSchedule(), NBEdgeCont::splitAt(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), NWWriter_DlrNavteq::writeLinksUnsplitted(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPOI(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().
|
inherited |
Returns the inner key/value map.
Definition at line 145 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::addCrossing(), NBEdge::addLane(), NBEdge::append(), 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(), GNEStopPlan::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(), NWWriter_OpenDrive::getDividerType(), GUILane::getParameterWindow(), GNESingleParametersDialog::GNESingleParametersDialog(), MSRailCrossing::init(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), MSPModel_JuPedSim::initialize(), MSBaseVehicle::initTransientModelParams(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), NBTrafficLightLogic::NBTrafficLightLogic(), GUIParameterTableWindow::numParams(), GNESingleParametersDialog::onCmdReset(), GNEVType::overwriteVType(), TraCIServerAPI_TrafficLight::processGet(), Parameterised::setParameters(), LIBSUMO_NAMESPACE::TrafficLight::swapConstraints(), GNEEdgeData::writeGenericData(), GNEEdgeRelData::writeGenericData(), and GNETAZRelData::writeGenericData().
|
inherited |
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
Definition at line 151 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by GNEAccess::getAttribute(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEContainerStop::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(), GNEStop::getAttribute(), GNEVehicle::getAttribute(), GNEVType::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNELaneType::getAttribute(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), and GNEDetector::getDetectorAttribute().
MSPedestrianRouter & MSNet::getPedestrianRouter | ( | const int | rngIndex, |
const MSEdgeVector & | prohibited = MSEdgeVector() |
||
) | const |
Definition at line 1534 of file MSNet.cpp.
References myPedestrianRouter.
Referenced by MSPModel_JuPedSim::add(), MSPModel_Striping::getNextLane(), MSPModel_Striping::PState::PState(), and LIBSUMO_NAMESPACE::Person::rerouteTraveltime().
|
virtual |
Returns the person control.
If the person control does not exist, yet, it is created.
Reimplemented in GUINet.
Definition at line 1188 of file MSNet.cpp.
References myPersonControl.
Referenced by MSStageWaiting::abort(), MSStageWalking::abort(), MSStageDriving::abort(), MSTransportable::abortStage(), LIBSUMO_NAMESPACE::Person::add(), MSRouteHandler::addFlowTransportable(), MSVehicle::boardTransportables(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSTransportableDevice_FCDReplay::MovePedestrians::execute(), MSPerson::MSPersonStage_Access::ProceedCmd::execute(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSLink::getLeaderInfo(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), GUISUMOViewParent::getObjectIDs(), LIBSUMO_NAMESPACE::Simulation::getParameter(), libsumo::Helper::getPerson(), LIBSUMO_NAMESPACE::Polygon::getTrafficObject(), libsumo::Helper::handleSubscriptions(), MSLane::hasPedestrians(), MSStageWaiting::loadState(), MSStageWalking::loadState(), MEVehicle::mayProceed(), MSTransportableDevice_FCDReplay::move(), MSStageTranship::moveToNextEdge(), MSStageWalking::moveToNextEdge(), MSPModel_Striping::PState::moveToXY(), MSStateHandler::myEndElement(), MSStateHandler::myStartElement(), MSLane::nextBlocking(), MSDevice_Transportable::notifyLeave(), MSDevice_Transportable::notifyMove(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), libsumo::Helper::postProcessRemoteControl(), TraCIServer::postProcessSimulationStep(), MSPerson::MSPersonStage_Access::proceed(), MSStageWalking::proceed(), MSStageTranship::proceed(), MSStageWaiting::proceed(), MSTransportable::proceed(), MSVehicle::processNextStop(), TraCIServerAPI_Person::processSet(), MEVehicle::processStop(), MSStageDriving::registerWaiting(), MSTransportable::removeStage(), MSStateHandler::saveState(), MSDevice_Transportable::transferAtSplitOrJoin(), MSDevice_FCDReplay::FCDHandler::updateTrafficObjects(), MSPModel_Striping::PState::walk(), MSStageWalking::walkDistance(), MSFCDExport::write(), MSDevice_Vehroutes::writePendingOutput(), writeSummaryOutput(), and MSDevice_Transportable::~MSDevice_Transportable().
const std::map< SUMOVehicleClass, double > * MSNet::getRestrictions | ( | const std::string & | id | ) | const |
Returns the restrictions for an edge type If no restrictions are present, 0 is returned.
[in] | id | The id of the type |
Definition at line 355 of file MSNet.cpp.
References myRestrictions.
Referenced by GUILane::getParameterWindow(), MSEdge::inferEdgeType(), and MSLane::initRestrictions().
MSVehicleRouter & MSNet::getRouterEffort | ( | const int | rngIndex, |
const MSEdgeVector & | prohibited = MSEdgeVector() |
||
) | const |
Definition at line 1524 of file MSNet.cpp.
References MSEdge::getAllEdges(), getEffort(), getTravelTime(), and myRouterEffort.
MSVehicleRouter & MSNet::getRouterTT | ( | const int | rngIndex, |
const MSEdgeVector & | prohibited = MSEdgeVector() |
||
) | const |
Definition at line 1506 of file MSNet.cpp.
References MSEdge::getAllEdges(), OptionsCont::getOptions(), OptionsCont::getString(), getTravelTime(), myRouterTT, TL, and WRITE_WARNINGF.
Referenced by MSDevice_FCDReplay::FCDHandler::checkRoute(), MSDispatch_Greedy::computeDispatch(), MSDispatch_GreedyClosest::computeDispatch(), LIBSUMO_NAMESPACE::Simulation::findRoute(), libsumo::Helper::getDrivingDistance(), MSStoppingPlaceRerouter::getRouter(), MSBaseVehicle::getRouterTT(), GUIVehicle::rerouteDRTStop(), and MSTriggeredRerouter::triggerRouting().
|
inline |
Returns the shapes container.
Definition at line 501 of file MSNet.h.
References myShapeContainer.
Referenced by LIBSUMO_NAMESPACE::POI::add(), LIBSUMO_NAMESPACE::Polygon::add(), MSPModel_JuPedSim::add(), NLHandler::addDistrict(), LIBSUMO_NAMESPACE::Polygon::addDynamics(), LIBSUMO_NAMESPACE::Polygon::addHighlightPolygon(), NLBuilder::build(), MSPModel_JuPedSim::buildPedestrianNetwork(), MSDevice_FCD::buildShapeFilter(), GUIViewTraffic::changePedestrianNetworkColor(), GUIViewTraffic::drawPedestrianNetwork(), LIBSUMO_NAMESPACE::Polygon::exists(), GUISUMOViewParent::getObjectIDs(), LIBSUMO_NAMESPACE::POI::getPoI(), GUIViewTraffic::getPOIParamKeys(), LIBSUMO_NAMESPACE::Polygon::getPolygon(), LIBSUMO_NAMESPACE::POI::getTree(), LIBSUMO_NAMESPACE::Polygon::getTree(), MSPModel_JuPedSim::initialize(), GUIApplicationWindow::onCmdOpenShapes(), LIBSUMO_NAMESPACE::POI::remove(), LIBSUMO_NAMESPACE::Polygon::remove(), LIBSUMO_NAMESPACE::POI::setPosition(), and LIBSUMO_NAMESPACE::Polygon::setShape().
|
static |
Returns the message to show if a certain state occurs.
Definition at line 933 of file MSNet.cpp.
References SIMSTATE_CONNECTION_CLOSED, SIMSTATE_END_STEP_REACHED, SIMSTATE_ERROR_IN_SIM, SIMSTATE_INTERRUPTED, SIMSTATE_LOADING, SIMSTATE_NO_FURTHER_VEHICLES, SIMSTATE_RUNNING, SIMSTATE_TOO_MANY_TELEPORTS, and TL.
Referenced by GUIRunThread::deleteSim(), GUIApplicationWindow::handleEvent_SimulationEnded(), and simulate().
MSStoppingPlace * MSNet::getStoppingPlace | ( | const std::string & | id | ) | const |
Returns the named stopping place by looking through all categories.
[in] | id | The id of the stop to return. |
Definition at line 1388 of file MSNet.cpp.
References getStoppingPlace(), SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_OVERHEAD_WIRE_SEGMENT, and SUMO_TAG_PARKING_AREA.
MSStoppingPlace * MSNet::getStoppingPlace | ( | const std::string & | id, |
const SumoXMLTag | category | ||
) | const |
Returns the named stopping place of the given category.
[in] | id | The id of the stop to return. |
[in] | category | The type of stop |
Definition at line 1379 of file MSNet.cpp.
References myStoppingPlaces.
Referenced by MSTractionSubstation::addOverheadWireInnerSegmentToCircuit(), MSTractionSubstation::addOverheadWireSegmentToCircuit(), LIBSUMO_NAMESPACE::Person::appendDrivingStage(), LIBSUMO_NAMESPACE::Person::appendWaitingStage(), LIBSUMO_NAMESPACE::Person::appendWalkingStage(), libsumo::Helper::buildStopParameters(), LIBSUMO_NAMESPACE::Person::convertTraCIStage(), LIBSUMO_NAMESPACE::Simulation::getBusStopWaiting(), LIBSUMO_NAMESPACE::Simulation::getBusStopWaitingIDList(), LIBSUMO_NAMESPACE::OverheadWire::getOverheadWire(), LIBSUMO_NAMESPACE::Simulation::getParameter(), NLTriggerBuilder::getParkingArea(), getStoppingPlace(), libsumo::Helper::getStoppingPlace(), MSStop::initPars(), MSBaseVehicle::insertStop(), MSDevice_Battery::loadState(), MSDevice_StationFinder::loadState(), MSDevice_FCDReplay::FCDHandler::makePlan(), MSTriggeredRerouter::myStartElement(), MSDevice_ElecHybrid::notifyMove(), MSDevice_Battery::notifyMove(), NLTriggerBuilder::parseAndBuildOverheadWireClamp(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), MSBaseVehicle::replaceStop(), MSStageTrip::reroute(), MSVehicle::rerouteParkingArea(), MSRouteHandler::retrieveStoppingPlace(), and MSDevice_ToC::triggerMRM().
std::string MSNet::getStoppingPlaceID | ( | const MSLane * | lane, |
const double | pos, | ||
const SumoXMLTag | category | ||
) | const |
Returns the stop of the given category close to the given position.
[in] | lane | the lane of the stop to return. |
[in] | pos | the position of the stop to return. |
[in] | category | The type of stop |
Definition at line 1400 of file MSNet.cpp.
References MSStoppingPlace::getBeginLanePosition(), MSStoppingPlace::getEndLanePosition(), Named::getID(), MSStoppingPlace::getLane(), and myStoppingPlaces.
Referenced by MSTractionSubstation::addOverheadWireSegmentToCircuit(), MSDevice_FCDReplay::FCDHandler::makePlan(), MSDevice_ElecHybrid::notifyMove(), MSDevice_Battery::notifyMove(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), and MSVehicle::updateBestLanes().
const NamedObjectCont< MSStoppingPlace * > & MSNet::getStoppingPlaces | ( | SumoXMLTag | category | ) | const |
Definition at line 1414 of file MSNet.cpp.
References myEmptyStoppingPlaceCont, and myStoppingPlaces.
Referenced by libsumo::Helper::collectObjectsInRange(), MSPModel_JuPedSim::execute(), MSDevice_StationFinder::findChargingStation(), LIBSUMO_NAMESPACE::Simulation::getBusStopIDList(), GUILane::getColorValue(), GUIViewTraffic::onGamingClick(), and MSChargingStationExport::write().
|
inline |
Returns the tls logics control.
Definition at line 451 of file MSNet.h.
References myLogics.
Referenced by NLHandler::addPredecessorConstraint(), NLBuilder::build(), NLDiscreteEventBuilder::buildSaveTLSProgramCommand(), NLDiscreteEventBuilder::buildSaveTLStateCommand(), NLDiscreteEventBuilder::buildSaveTLSwitchesCommand(), NLDiscreteEventBuilder::buildSaveTLSwitchStatesCommand(), GUIJunctionWrapper::drawGL(), Command_Hotkey_TrafficLight::execute(), NLJunctionControlBuilder::getTLLogicControlToUse(), libsumo::Helper::getTLS(), GUINet::initGUIStructures(), GUINet::initTLMap(), MSStateHandler::myStartElement(), NLHandler::myStartElement(), GUIViewTraffic::onGamingClick(), TraCIServerAPI_TrafficLight::processGet(), MSStateHandler::saveState(), LIBSUMO_NAMESPACE::TrafficLight::setProgramLogic(), and MSFullExport::writeTLS().
|
static |
Returns the travel time to pass an edge.
[in] | e | The edge for which the travel time to be passed shall be returned |
[in] | v | The vehicle that is rerouted |
[in] | t | The time for which the travel time shall be returned [s] |
Definition at line 165 of file MSNet.cpp.
References MSRoutingEngine::getEffortExtra(), getInstance(), MSEdge::getMinimumTravelTime(), MSBaseVehicle::getRoutingMode(), getWeightsStorage(), MSBaseVehicle::getWeightsStorage(), MSEdgeWeightsStorage::retrieveExistingTravelTime(), and libsumo::ROUTING_MODE_AGGREGATED_CUSTOM.
Referenced by MSRoutingEngine::_initEdgeWeights(), getRouterEffort(), getRouterTT(), MSEdge::getTravelTimeStatic(), and MSRoutingEngine::initRouter().
|
inline |
Returns the vehicle control.
Definition at line 378 of file MSNet.h.
References myVehicleControl.
Referenced by adaptIntermodalRouter(), LIBSUMO_NAMESPACE::Person::add(), LIBSUMO_NAMESPACE::Vehicle::add(), MSVehicleTransfer::add(), MSRouteHandler::addFlowTransportable(), MSRouteHandler::addPersonTrip(), MSRouteHandler::addRideOrTransport(), MSRouteHandler::addStop(), MSRouteHandler::addTranship(), MSTriggeredRerouter::applies(), MSVehicle::boardTransportables(), NLBuilder::build(), MELoop::changeSegment(), GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), MSVehicleTransfer::checkInsertions(), MSRouteHandler::closeRoute(), MSRouteHandler::closeTransportable(), MSRouteHandler::closeTransportableFlow(), MSStateHandler::closeVehicle(), MSRouteHandler::closeVehicle(), MSLane::detectCollisions(), MSInsertionControl::determineCandidates(), MSDevice::equippedByDefaultAssignmentOptions(), METriggeredCalibrator::execute(), Command_RouteReplacement::execute(), MSVehicleControl::DeleteKeptVehicle::execute(), MSVTypeProbe::execute(), MSCalibrator::execute(), MSDevice_FCDReplay::MoveVehicles::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), MSEdgeControl::executeMovements(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), MSCFModel_CC::findVehicle(), LIBSUMO_NAMESPACE::Vehicle::getFollowSpeed(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSInsertionControl::getLastFlowVehicle(), MSBaseVehicle::getLeavingPersonNumber(), LIBSUMO_NAMESPACE::Vehicle::getLoadedIDList(), MSLane::getMaximumBrakeDist(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), GUISUMOViewParent::getObjectIDs(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GUINet::getParameterWindow(), MSVTKExport::getPositions(), LIBSUMO_NAMESPACE::Simulation::getScale(), LIBSUMO_NAMESPACE::Vehicle::getSecureGap(), MSVTKExport::getSpeed(), LIBSUMO_NAMESPACE::Vehicle::getTeleportingIDList(), LIBSUMO_NAMESPACE::Polygon::getTrafficObject(), MSRailSignalConstraint::getVeh(), libsumo::Helper::getVehicle(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), LIBSUMO_NAMESPACE::VehicleType::getVType(), MSLane::handleCollisionBetween(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIApplicationWindow::handleEvent_SimulationStep(), MSLane::handleIntermodalCollisionBetween(), MSDevice_ToC::initColorScheme(), MSInsertionControl::initScale(), LIBSUMO_NAMESPACE::Vehicle::isOnInit(), MSVehicle::joinTrainPart(), MSVehicle::joinTrainPartFront(), MSDriveWay::loadState(), MSStageDriving::loadState(), MEVehicle::mayProceed(), MSDevice_ToC::MSDevice_ToC(), MSPModel_Striping::MSPModel_Striping(), MSStateHandler::myEndElement(), MSStateHandler::myStartElement(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), MSDevice_Bluelight::notifyMove(), MSDevice_Transportable::notifyMove(), GUIApplicationWindow::onCmdDemandScale(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdRemoveObject(), MSBaseVehicle::onDepart(), GUIViewTraffic::onGamingClick(), MSRouteHandler::openVehicleTypeDistribution(), MSRouteHandler::parseFromViaTo(), libsumo::Helper::postProcessRemoteControl(), 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(), MSStageTrip::reroute(), MSDevice_Bluelight::resetVehicle(), MEVehicle::resumeFromStopping(), MSVehicle::resumeFromStopping(), MSStateHandler::saveState(), MSBaseVehicle::saveState(), MSVehicleType::setActionStepLength(), MSStageDriving::setArrived(), LIBSUMO_NAMESPACE::Calibrator::setFlow(), MSDevice_ToC::setParameter(), LIBSUMO_NAMESPACE::Simulation::setScale(), GUINet::setSimDuration(), LIBSUMO_NAMESPACE::Person::setType(), LIBSUMO_NAMESPACE::Vehicle::setType(), MSDevice_ToC::switchHolderType(), MELoop::teleportVehicle(), MSBaseVehicle::unregisterWaiting(), MSVehicle::updateState(), MSDevice_FCDReplay::FCDHandler::updateTrafficObjects(), MSDetectorFileOutput::vehicleApplies(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSAmitranTrajectories::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSElecHybridExport::writeAggregated(), writeOutput(), MSFullExport::writeVehicles(), MSTransportable::~MSTransportable(), and MSVehicle::~MSVehicle().
MSEdgeWeightsStorage & MSNet::getWeightsStorage | ( | ) |
Returns the net's internal edge travel times/efforts container.
If the net does not have such a container, it is built.
Definition at line 1211 of file MSNet.cpp.
References myEdgeWeights.
Referenced by LIBSUMO_NAMESPACE::Edge::adaptTraveltime(), NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::addEdgeWeight(), NLBuilder::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight(), GUILane::getColorValue(), getEffort(), GUILane::getLoadedEdgeWeight(), GUILane::getScaleValue(), GUILane::getStoredEdgeTravelTime(), getTravelTime(), and LIBSUMO_NAMESPACE::Edge::setEffort().
|
inline |
return whether the network contains bidirectional rail edges
Definition at line 800 of file MSNet.h.
References myHasBidiEdges.
|
inline |
Returns whether containers are simulated.
Definition at line 411 of file MSNet.h.
References myContainerControl.
Referenced by MSRouteHandler::addFlowTransportable(), MSVehicle::boardTransportables(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), GUIApplicationWindow::handleEvent_SimulationStep(), MEVehicle::mayProceed(), MSVehicle::processNextStop(), MEVehicle::processStop(), and MSFCDExport::write().
|
inline |
return whether the network contains elevation data
Definition at line 790 of file MSNet.h.
References myHasElevation.
Referenced by MSLaneChanger::changeOpposite(), MSVTypeProbe::execute(), and MSVehicle::getBackPosition().
bool MSNet::hasFlow | ( | const std::string & | id | ) | const |
return whether the given flow is known
Definition at line 391 of file MSNet.cpp.
References MSInsertionControl::hasFlow(), and myInserter.
Referenced by MSStageDriving::proceed().
|
inlinestatic |
Returns whether the network was already constructed.
Definition at line 152 of file MSNet.h.
References myInstance.
Referenced by MSBaseVehicle::checkRouteRemoval(), LIBSUMO_NAMESPACE::Simulation::close(), MSVehicle::Influencer::GapControlState::init(), LIBSUMO_NAMESPACE::Simulation::isLoaded(), libsumo::Helper::registerStateListener(), and signalHandler().
|
inline |
return whether the network contains internal links
Definition at line 780 of file MSNet.h.
References myHasInternalLinks.
Referenced by NLNetShapeHandler::addJunction(), NLNetShapeHandler::addLane(), closeBuilding(), MSStoppingPlaceRerouter::evaluateDestination(), MSTrafficLightLogic::init(), NLNetShapeHandler::myStartElement(), MSPModel_Interacting::usingInternalLanesStatic(), MSDevice_Vehroutes::writeOutput(), and MSDevice_Vehroutes::writeXMLRoute().
|
inline |
return whether the network was built with higher junction speeds
Definition at line 785 of file MSNet.h.
References myJunctionHigherSpeeds.
Referenced by MSEdge::inferEdgeType().
|
inherited |
Returns whether the parameter is set.
[in] | key | The key to ask for |
Definition at line 84 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSStageWalking::activateEntryReminders(), NBEdge::append(), MSVehicleType::build(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), GUINet::createTLWrapper(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), NWWriter_DlrNavteq::getBrunnelType(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSStoppingPlaceRerouter::getWeight(), MSStageDriving::init(), SUMOVTypeParameter::initRailVisualizationParameters(), MSEdge::insertVehicle(), NIImporter_OpenStreetMap::load(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSVehicle::slowDownForSchedule(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().
|
inline |
return whether the network contains walkingareas and crossings
Definition at line 795 of file MSNet.h.
References myHasPedestrianNetwork.
Referenced by MSPModel_Interacting::usingInternalLanesStatic().
|
inline |
Returns whether the network has specific vehicle class permissions.
Definition at line 207 of file MSNet.h.
References myHavePermissions.
Referenced by MSRoutingEngine::initRouter().
|
inline |
Returns whether persons are simulated.
Definition at line 395 of file MSNet.h.
References myPersonControl.
Referenced by MSRouteHandler::addFlowTransportable(), MSVehicle::boardTransportables(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSLink::getLeaderInfo(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GUIApplicationWindow::handleEvent_SimulationStep(), MSLane::hasPedestrians(), MEVehicle::mayProceed(), MSVehicle::processNextStop(), MEVehicle::processStop(), MSFCDExport::write(), and MSDevice_Vehroutes::writePendingOutput().
void MSNet::informTransportableStateListener | ( | const MSTransportable *const | transportable, |
TransportableState | to, | ||
const std::string & | info = "" |
||
) |
Informs all added listeners about a transportable's state change.
[in] | transportable | The transportable which changed its state |
[in] | to | The state the transportable has changed to |
[in] | info | Information regarding the replacement |
Definition at line 1301 of file MSNet.cpp.
References MSGlobals::gNumThreads, and myTransportableStateListeners.
Referenced by MSTransportableControl::checkWaiting(), and MSTransportableControl::erase().
void MSNet::informVehicleStateListener | ( | const SUMOVehicle *const | vehicle, |
VehicleState | to, | ||
const std::string & | info = "" |
||
) |
Informs all added listeners about a vehicle's state change.
[in] | vehicle | The vehicle which changed its state |
[in] | to | The state the vehicle has changed to |
[in] | info | Information regarding the replacement |
Definition at line 1273 of file MSNet.cpp.
References MSGlobals::gNumThreads, and myVehicleStateListeners.
Referenced by MSVehicleTransfer::add(), MSVehicleTransfer::checkInsertions(), MSVehicle::Manoeuvre::entryManoeuvreIsComplete(), MSVehicle::executeMove(), MSLane::handleCollisionBetween(), MSLane::handleIntermodalCollisionBetween(), MSVehicleControl::initVehicle(), MSVehicle::processNextStop(), MSVehicleControl::removePending(), MSBaseVehicle::replaceRoute(), MSVehicle::resumeFromStopping(), and MSVehicleControl::vehicleDeparted().
|
static |
Place for static initializations of simulation components (called after successful net build)
Definition at line 193 of file MSNet.cpp.
References MSGlobals::gUseMesoSim, MSVehicle::Influencer::init(), and MSDriveWay::init().
Referenced by MSNet().
|
inline |
Definition at line 812 of file MSNet.h.
References myAmInterrupted.
Referenced by signalHandler().
|
inlinevirtual |
|
inline |
Definition at line 816 of file MSNet.h.
References myAmInterrupted.
|
staticprivateinherited |
check if given string can be parsed to a parameter of type "key=value"
Definition at line 254 of file Parameterised.cpp.
References StringTokenizer::getVector(), and SUMOXMLDefinitions::isValidParameterKey().
Referenced by Parameterised::areAttributesValid(), and Parameterised::areParametersValid().
|
inlinevirtual |
return wheter the given logic (or rather its wrapper) is selected in the GUI
Reimplemented in GUINet.
Definition at line 592 of file MSNet.h.
Referenced by MSTrafficLightLogic::isSelected().
void MSNet::loadRoutes | ( | ) |
loads routes for the next few steps
Definition at line 440 of file MSNet.cpp.
References SUMORouteLoaderControl::loadNext(), myRouteLoaders, and myStep.
Referenced by NLBuilder::init(), GUIRunThread::init(), and simulationStep().
SUMOTime MSNet::loadState | ( | const std::string & | fileName, |
const bool | catchExceptions | ||
) |
load state from file and return new time
Definition at line 1664 of file MSNet.cpp.
References NLBuilder::buildRouteLoaderControl(), clearState(), MsgHandler::getErrorInstance(), OptionsCont::getOptions(), MSStateHandler::MSStateTimeHandler::getTime(), MSGlobals::gStateLoaded, myRouteLoaders, XMLSubSys::runParser(), TLF, and updateGUI().
Referenced by LIBSUMO_NAMESPACE::Simulation::loadState(), and GUIApplicationWindow::onCmdLoadState().
bool MSNet::logSimulationDuration | ( | ) | const |
Returns whether duration shall be logged.
Definition at line 1182 of file MSNet.cpp.
References myLogExecutionTime.
Referenced by GUINet::getParameterWindow().
MSDynamicShapeUpdater * MSNet::makeDynamicShapeUpdater | ( | ) |
Creates and returns a dynamic shapes updater.
Definition at line 1205 of file MSNet.cpp.
References myDynamicShapeUpdater, and myShapeContainer.
Referenced by LIBSUMO_NAMESPACE::Polygon::addDynamics().
|
inherited |
Adds or appends all given parameters from the map.
[in] | mapArg | The keys/values to insert |
Definition at line 65 of file Parameterised.cpp.
References Parameterised::getParameter(), Parameterised::hasParameter(), and Parameterised::setParameter().
Referenced by NBEdge::append().
|
protected |
Performs the parts of the simulation step which happen after the move.
Definition at line 853 of file MSNet.cpp.
References DELTA_T, MSEdgeControl::detectCollisions(), MSGlobals::gCheck4Accidents, SysUtils::getCurrentMillis(), MSTransportableControl::getRunningNumber(), MSVehicleControl::getRunningVehicleNo(), MSGlobals::gUseMesoSim, myEdges, myLogExecutionTime, myPersonControl, myPersonsMoved, mySimStepDuration, myStep, myTraCIMillis, myTraCIStepDuration, myVehicleControl, myVehiclesMoved, libsumo::Helper::postProcessRemoteControl(), removeOutdatedCollisions(), STAGE_REMOTECONTROL, and writeOutput().
Referenced by simulationStep().
void MSNet::postSimStepOutput | ( | ) | const |
Prints the statistics of the step at its end.
Called on the end of a simulation step
Definition at line 1226 of file MSNet.cpp.
References DELTA_T, MSVehicleControl::getDepartedVehicleNo(), TraCIServer::getInstance(), MSVehicleControl::getRunningVehicleNo(), MSInsertionControl::getWaitingVehicleNo(), gPrecision, myInserter, myLogExecutionTime, mySimStepDuration, myStep, myTraCIStepDuration, myVehicleControl, time2string(), and TS.
Referenced by simulate().
void MSNet::preSimStepOutput | ( | ) | const |
Prints the current step number.
Called on the begin of a simulation step
Definition at line 1220 of file MSNet.cpp.
References myStep, and time2string().
Referenced by simulate().
void MSNet::quickReload | ( | ) |
reset state to the beginning without reloading the network
Definition at line 1643 of file MSNet.cpp.
References NLBuilder::buildRouteLoaderControl(), clearState(), OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::getStringVector(), NLBuilder::initRandomness(), myRouteLoaders, PROGRESS_BEGIN_TIME_MESSAGE, PROGRESS_TIME_MESSAGE, XMLSubSys::runParser(), string2time(), TLF, and updateGUI().
Referenced by clearState(), and GUIApplicationWindow::onCmdQuickReload().
bool MSNet::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
Definition at line 1312 of file MSNet.cpp.
References MSNet::Collision::colliderSpeed, MSNet::Collision::colliderType, MSVehicleType::getID(), Named::getID(), SUMOTrafficObject::getSpeed(), SUMOTrafficObject::getVehicleType(), MSNet::Collision::lane, myCollisions, myStep, MSNet::Collision::pos, MSNet::Collision::time, MSNet::Collision::type, MSNet::Collision::victim, MSNet::Collision::victimSpeed, and MSNet::Collision::victimType.
Referenced by MSLane::handleCollisionBetween(), and MSLane::handleIntermodalCollisionBetween().
|
protected |
remove collisions from the previous simulation step
Definition at line 1344 of file MSNet.cpp.
References myCollisions, and myStep.
Referenced by postMoveStep().
void MSNet::removeTransportableStateListener | ( | TransportableStateListener * | listener | ) |
Removes a transportable states listener.
[in] | listener | The listener to remove |
Definition at line 1292 of file MSNet.cpp.
References myTransportableStateListeners.
void MSNet::removeVehicleStateListener | ( | VehicleStateListener * | listener | ) |
Removes a vehicle states listener.
[in] | listener | The listener to remove |
Definition at line 1264 of file MSNet.cpp.
References myVehicleStateListeners.
Referenced by MSVehicle::Influencer::GapControlState::cleanup().
|
inline |
Sets the current simulation step (used by state loading)
step | the current simulation step |
Definition at line 328 of file MSNet.h.
References myStep.
Referenced by NLBuilder::build(), GUIRunThread::init(), and LIBSUMO_NAMESPACE::Simulation::load().
|
virtualinherited |
Sets a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Reimplemented in MSRailCrossing, MSActuatedTrafficLightLogic, MSRailSignal, MSSimpleTrafficLightLogic, and NEMALogic.
Definition at line 45 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdge(), NLHandler::addDistrict(), RONetHandler::addParam(), ShapeHandler::addPOI(), NBOwnTLDef::buildNemaPhases(), MSParkingArea::enter(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSStateHandler::myStartElement(), NIXMLConnectionsHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), MSDevice_Bluelight::notifyMove(), GNESingleParametersDialog::onCmdAccept(), NBRailwayTopologyAnalyzer::reverseEdges(), GNEVType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), MSRailCrossing::setParameter(), MSActuatedTrafficLightLogic::setParameter(), MSRailSignal::setParameter(), MSSimpleTrafficLightLogic::setParameter(), NEMALogic::setParameter(), LIBSUMO_NAMESPACE::Simulation::setParameter(), Parameterised::setParametersStr(), LIBSUMO_NAMESPACE::Vehicle::setStopParameter(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), Parameterised::updateParameters(), NWWriter_OpenDrive::writeNetwork(), and NIImporter_OpenDrive::writeRoadObjects().
|
inherited |
set the inner key/value map in map<string, string> format
Definition at line 167 of file Parameterised.cpp.
References Parameterised::getParametersMap(), and Parameterised::myMap.
Referenced by MSStageDriving::clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), and MSStageTrip::reroute().
|
inherited |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
[in] | paramsString | A serialized key-value map |
[in] | kvsep | The separater between key and value |
[in] | sep | The separater between map entries |
Definition at line 173 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(), 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(), GNEStop::setAttribute(), GNEVehicle::setAttribute(), GNEVType::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), GNELane::setAttribute(), GNELaneType::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), and GNEDetector::setDetectorAttribute().
|
inline |
Labels the network to contain vehicle class permissions.
Definition at line 213 of file MSNet.h.
References myHavePermissions.
Referenced by NLHandler::addLane().
MSNet::SimulationState MSNet::simulate | ( | SUMOTime | start, |
SUMOTime | stop | ||
) |
Simulates from timestep start to stop.
[in] | start | The begin time step of the simulation |
[in] | stop | The end time step of the simulation |
Recheck return value
What exceptions may occure?
Definition at line 398 of file MSNet.cpp.
References adaptToState(), closeSimulation(), getStateMessage(), myLogStepNumber, myLogStepPeriod, myStep, postSimStepOutput(), preSimStepOutput(), SIMSTATE_RUNNING, SIMTIME, simulationState(), simulationStep(), time2string(), TL, and WRITE_MESSAGEF.
Referenced by main().
MSNet::SimulationState MSNet::simulationState | ( | SUMOTime | stopTime | ) | const |
This method returns the current simulation state. It should not modify status.
[in] | stopTime | The time the simulation shall stop at |
Definition at line 882 of file MSNet.cpp.
References MSVehicleControl::getActiveVehicleCount(), TraCIServer::getInstance(), MSInsertionControl::getPendingFlowCount(), MSVehicleControl::getTeleportCount(), MSTransportableControl::hasNonWaiting(), MSDevice_Taxi::hasServableReservations(), myAmInterrupted, myContainerControl, myEdgeDataEndTime, myInserter, myMaxTeleports, myPersonControl, myStep, myVehicleControl, SIMSTATE_CONNECTION_CLOSED, SIMSTATE_END_STEP_REACHED, SIMSTATE_INTERRUPTED, SIMSTATE_LOADING, SIMSTATE_NO_FURTHER_VEHICLES, SIMSTATE_RUNNING, SIMSTATE_TOO_MANY_TELEPORTS, and TraCIServer::wasClosed().
Referenced by GUIRunThread::deleteSim(), GUIRunThread::makeStep(), and simulate().
void MSNet::simulationStep | ( | const bool | onlyMove = false | ) |
Performs a single simulation step.
Definition at line 713 of file MSNet.cpp.
References MSEdgeControl::changeLanes(), MSTLLogicControl::check2Switch(), MSVehicleTransfer::checkInsertions(), MSTransportableControl::checkWaiting(), libsumo::CMD_EXECUTEMOVE, MSEdgeControl::detectCollisions(), MSInsertionControl::determineCandidates(), MSInsertionControl::emitVehicles(), MSEventControl::execute(), MSEdgeControl::executeMovements(), MSGlobals::gCheck4Accidents, SysUtils::getCurrentMillis(), MSVehicleTransfer::getInstance(), MSRailSignalControl::getInstance(), TraCIServer::getInstance(), OptionsCont::getInt(), TraCIServer::getLoadArgs(), OptionsCont::getOptions(), TraCIServer::getTargetTime(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, MSRailSignalControl::hasInstance(), MSTransportableControl::hasTransportables(), loadRoutes(), myBeginOfTimestepEvents, myContainerControl, myEdges, myEndOfTimestepEvents, myInserter, myInsertionEvents, myLogExecutionTime, myLogics, myPeriodicStateFiles, myPersonControl, mySimStepDuration, myStateDumpFiles, myStateDumpPeriod, myStateDumpPrefix, myStateDumpSuffix, myStateDumpTimes, myStep, myStepCompletionMissing, myTraCIStepDuration, myVehicleControl, MSEdgeControl::patchActiveLanes(), MSEdgeControl::planMovements(), postMoveStep(), TraCIServer::processCommands(), MSVehicleControl::removePending(), MSRailSignalControl::resetWaitRelations(), MSStateHandler::saveState(), MSEdgeControl::setJunctionApproaches(), SIMTIME, MELoop::simulate(), STAGE_EVENTS, STAGE_INSERTIONS, STAGE_LANECHANGE, STAGE_MOVEMENTS, time2string(), MSRailSignalControl::updateSignals(), and TraCIServer::wasClosed().
Referenced by LIBSUMO_NAMESPACE::Simulation::executeMove(), simulate(), GUINet::simulationStep(), and LIBSUMO_NAMESPACE::Simulation::step().
|
inlinevirtual |
gui may prevent final meanData reset to keep live data visible
Reimplemented in GUINet.
Definition at line 821 of file MSNet.h.
Referenced by MSMeanData::writeAggregated(), and MSMeanData::writeEdge().
|
inherited |
Removes a parameter.
[in] | key | The parameter's name |
Definition at line 51 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_OpenStreetMap::insertEdge(), MSLane::isInsertionSuccess(), NIImporter_OpenStreetMap::load(), GNEVType::setAttribute(), and LIBSUMO_NAMESPACE::TrafficLight::swapParameters().
|
inlinevirtual |
update view after simulation.loadState
Reimplemented in GUINet.
Definition at line 596 of file MSNet.h.
Referenced by loadState(), and quickReload().
|
inherited |
Adds or updates all given parameters from the map.
[in] | mapArg | The keys/values to insert |
Definition at line 57 of file Parameterised.cpp.
References Parameterised::setParameter().
Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::addCrossing(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NLJunctionControlBuilder::closeTrafficLightLogic(), NBTrafficLightDefinition::compute(), NLDetectorBuilder::endE3Detector(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), NBTrafficLightLogic::NBTrafficLightLogic(), and LIBSUMO_NAMESPACE::TrafficLight::swapConstraints().
bool MSNet::warnOnce | ( | const std::string & | typeAndID | ) |
return whether a warning regarding the given object shall be issued
Definition at line 1634 of file MSNet.cpp.
References myWarnedOnce.
Referenced by MSBaseVehicle::addStop().
void MSNet::writeChargingStationOutput | ( | ) | const |
write charging station output
Definition at line 1425 of file MSNet.cpp.
References OutputDevice::getDeviceByOption(), myStoppingPlaces, SUMO_TAG_CHARGING_STATION, and writeChargingStationOutput().
Referenced by closeSimulation(), and writeChargingStationOutput().
void MSNet::writeCollisions | ( | ) | const |
write collision output to (xml) file
Definition at line 542 of file MSNet.cpp.
References OutputDevice::closeTag(), getCurrentTimeStep(), OutputDevice::getDeviceByOption(), myCollisions, OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
Referenced by writeOutput().
void MSNet::writeOutput | ( | ) |
Write netstate, summary and detector output.
Definition at line 1043 of file MSNet.cpp.
References OutputDevice::closeTag(), DELTA_T, OptionsCont::getBool(), OutputDevice::getDevice(), SUMOTrafficObject::getDevice(), OutputDevice::getDeviceByOption(), MSEdgeControl::getEdges(), Named::getID(), getInstance(), MSDevice_SSM::getInstances(), MSDevice_ToC::getInstances(), OptionsCont::getInt(), MSDevice_ElecHybrid::getMaximumBatteryCapacity(), OptionsCont::getOptions(), OptionsCont::getString(), getVehicleControl(), MSGlobals::gHaveEmissions, MSGlobals::gOverheadWireRecuperation, SUMOVehicle::isOnRoad(), OptionsCont::isSet(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), myDetectorControl, myEdges, myHasElevation, 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(), MSChargingStationExport::write(), MSFullExport::write(), MSQueueExport::write(), MSVTKExport::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSElecHybridExport::writeAggregated(), OutputDevice::writeAttr(), writeCollisions(), MSDetectorControl::writeOutput(), writeSummaryOutput(), and OutputDevice::writeXMLHeader().
Referenced by postMoveStep().
void MSNet::writeOverheadWireSegmentOutput | ( | ) | const |
write the output generated by an overhead wire segment
Definition at line 1461 of file MSNet.cpp.
References OutputDevice::getDeviceByOption(), myStoppingPlaces, SUMO_TAG_OVERHEAD_WIRE_SEGMENT, and writeOverheadWireSegmentOutput().
Referenced by closeSimulation(), and writeOverheadWireSegmentOutput().
|
inherited |
write Params in the given outputdevice
Definition at line 188 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 MSStageWaiting::routeOutput(), MSTransportable::routeOutput(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), MSStop::write(), SUMOVTypeParameter::write(), SUMOVehicleParameter::Stop::write(), NBPTStop::write(), MSRailSignalConstraint_Predecessor::write(), GNEBusStop::writeAdditional(), GNECalibrator::writeAdditional(), GNECalibratorFlow::writeAdditional(), GNEChargingStation::writeAdditional(), GNEContainerStop::writeAdditional(), GNEEntryExitDetector::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().
void MSNet::writeRailSignalBlocks | ( | ) | const |
write rail signal block output
Definition at line 1436 of file MSNet.cpp.
References MSTLLogicControl::getAllLogics(), OutputDevice::getDeviceByOption(), OptionsCont::getOptions(), myLogics, MSRailSignal::writeBlocks(), and MSDriveWay::writeDepatureBlocks().
Referenced by closeSimulation().
void MSNet::writeStatistics | ( | const SUMOTime | start, |
const long | now | ||
) | const |
write statistic output to (xml) file
Definition at line 564 of file MSNet.cpp.
References OutputDevice::closeTag(), OptionsCont::getBool(), MSVehicleControl::getCollisionCount(), MSVehicleControl::getDepartedVehicleNo(), OutputDevice::getDeviceByOption(), MSVehicleControl::getEmergencyBrakingCount(), MSVehicleControl::getEmergencyStops(), MSTransportableControl::getJammedNumber(), MSTransportableControl::getLoadedNumber(), MSVehicleControl::getLoadedVehicleNo(), OptionsCont::getOptions(), MSTransportableControl::getRunningNumber(), MSVehicleControl::getRunningVehicleNo(), MSVehicleControl::getTeleportCount(), MSTransportableControl::getTeleportCount(), MSTransportableControl::getTeleportsAbortWait(), MSVehicleControl::getTeleportsJam(), MSTransportableControl::getTeleportsWrongDest(), MSVehicleControl::getTeleportsWrongLane(), MSVehicleControl::getTeleportsYield(), MSInsertionControl::getWaitingVehicleNo(), OptionsCont::isSet(), myInserter, myPersonControl, myPersonsMoved, mySimBeginMillis, myStep, myTraCIMillis, myVehicleControl, myVehiclesMoved, OutputDevice::openTag(), time2string(), OutputDevice::writeAttr(), and MSDevice_Tripinfo::writeStatistics().
Referenced by closeSimulation().
void MSNet::writeSubstationOutput | ( | ) | const |
write electrical substation output
Definition at line 1472 of file MSNet.cpp.
References OutputDevice::getDeviceByOption(), OptionsCont::getOptions(), myTractionSubstations, and OutputDevice::setPrecision().
Referenced by closeSimulation().
void MSNet::writeSummaryOutput | ( | ) |
write summary-output to (xml) file
Definition at line 614 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(), getPersonControl(), MSTransportableControl::getRidingNumber(), MSVehicleControl::getRunningVehicleNo(), MSVehicleControl::getStoppedVehiclesCount(), OptionsCont::getString(), MSVehicleControl::getTeleportCount(), MSTransportableControl::getTeleportCount(), MSVehicleControl::getTotalDepartureDelay(), MSVehicleControl::getTotalTravelTime(), MSVehicleControl::getVehicleMeanSpeeds(), MSTransportableControl::getWaitingForVehicleNumber(), MSTransportableControl::getWaitingUntilNumber(), MSInsertionControl::getWaitingVehicleNo(), OptionsCont::isSet(), myInserter, myLogExecutionTime, mySimStepDuration, myStep, myVehicleControl, OutputDevice::openTag(), string2time(), time2string(), and OutputDevice::writeAttr().
Referenced by writeOutput().
|
protected |
whether an interrupt occured
Definition at line 872 of file MSNet.h.
Referenced by interrupt(), isInterrupted(), and simulationState().
|
protected |
Controls events executed at the begin of a time step;.
Definition at line 896 of file MSNet.h.
Referenced by clearState(), getBeginOfTimestepEvents(), MSNet(), simulationStep(), and ~MSNet().
|
protected |
collisions in the current time step
Definition at line 1000 of file MSNet.h.
Referenced by getCollisions(), registerCollision(), removeOutdatedCollisions(), and writeCollisions().
|
protected |
Controls container building and deletion;.
Definition at line 884 of file MSNet.h.
Referenced by adaptToState(), clearState(), generateStatistics(), getContainerControl(), GUINet::getContainerControl(), hasContainers(), MSNet(), simulationState(), simulationStep(), and ~MSNet().
|
protected |
Controls detectors;.
Definition at line 894 of file MSNet.h.
Referenced by clearState(), closeSimulation(), GUINet::flushOutputsAtEnd(), getDetectorControl(), GUINet::getMeanData(), GUINet::getMeanDataAttrs(), GUINet::getMeanDataIDs(), GUINet::initGUIStructures(), MSNet(), writeOutput(), and ~MSNet().
|
protected |
Updater for dynamic shapes that are tracking traffic objects (ensures removal of shape dynamics when the objects are removed)
Definition at line 1030 of file MSNet.h.
Referenced by getDynamicShapeUpdater(), and makeDynamicShapeUpdater().
|
protected |
end of loaded edgeData
Definition at line 985 of file MSNet.h.
Referenced by GUINet::loadEdgeData(), and simulationState().
|
protected |
Controls edges, performs vehicle movement;.
Definition at line 886 of file MSNet.h.
Referenced by checkBidiEdges(), checkElevation(), checkWalkingarea(), closeBuilding(), getEdgeControl(), MSNet(), postMoveStep(), simulationStep(), writeOutput(), and ~MSNet().
|
protected |
The net's knowledge about edge efforts/travel times;.
Definition at line 904 of file MSNet.h.
Referenced by getWeightsStorage(), MSNet(), and ~MSNet().
|
staticprotected |
Definition at line 1009 of file MSNet.h.
Referenced by getStoppingPlaces().
|
protected |
Controls events executed at the end of a time step;.
Definition at line 898 of file MSNet.h.
Referenced by clearState(), getEndOfTimestepEvents(), MSNet(), simulationStep(), and ~MSNet().
|
protected |
Whether the network contains bidirectional rail edges.
Definition at line 976 of file MSNet.h.
Referenced by closeBuilding(), and hasBidiEdges().
|
protected |
Whether the network contains elevation data.
Definition at line 970 of file MSNet.h.
Referenced by closeBuilding(), hasElevation(), and writeOutput().
|
protected |
Whether the network contains internal links/lanes/edges.
Definition at line 964 of file MSNet.h.
Referenced by closeBuilding(), and hasInternalLinks().
|
protected |
Whether the network contains pedestrian network elements.
Definition at line 973 of file MSNet.h.
Referenced by closeBuilding(), and hasPedestrianNetwork().
|
protected |
Whether the network contains edges which not all vehicles may pass.
Definition at line 955 of file MSNet.h.
Referenced by hasPermissions(), and setPermissionsFound().
|
protected |
Controls vehicle insertion;.
Definition at line 892 of file MSNet.h.
Referenced by clearState(), generateStatistics(), getInsertionControl(), hasFlow(), MSNet(), postSimStepOutput(), simulationState(), simulationStep(), writeStatistics(), writeSummaryOutput(), and ~MSNet().
|
protected |
Controls insertion events;.
Definition at line 900 of file MSNet.h.
Referenced by clearState(), getInsertionEvents(), MSNet(), simulationStep(), and ~MSNet().
|
staticprotected |
Unique instance of MSNet.
Definition at line 857 of file MSNet.h.
Referenced by adaptIntermodalRouter(), getInstance(), hasInstance(), MSNet(), and ~MSNet().
|
mutableprotected |
Definition at line 1022 of file MSNet.h.
Referenced by getIntermodalRouter(), and ~MSNet().
|
protected |
Whether the network was built with higher speed on junctions.
Definition at line 967 of file MSNet.h.
Referenced by closeBuilding(), and hasJunctionHigherSpeeds().
|
protected |
Controls junctions, realizes right-of-way rules;.
Definition at line 888 of file MSNet.h.
Referenced by closeBuilding(), getJunctionControl(), GUINet::getJunctionPosition(), GUINet::initGUIStructures(), MSNet(), and ~MSNet().
|
mutableprotected |
|
protected |
|
protected |
Information whether the simulation duration shall be logged.
Definition at line 913 of file MSNet.h.
Referenced by closeSimulation(), generateStatistics(), logSimulationDuration(), MSNet(), postMoveStep(), postSimStepOutput(), simulationStep(), and writeSummaryOutput().
|
protected |
Controls tls logics, realizes waiting on tls rules;.
Definition at line 890 of file MSNet.h.
Referenced by clearState(), closeBuilding(), GUINet::createTLWrapper(), GUINet::getLinkTLID(), GUINet::getLinkTLIndex(), getTLSControl(), MSNet(), simulationStep(), writeRailSignalBlocks(), and ~MSNet().
|
protected |
Information whether the number of the simulation step shall be logged.
Definition at line 916 of file MSNet.h.
Referenced by MSNet(), and simulate().
|
protected |
Period between successive step-log outputs.
Definition at line 918 of file MSNet.h.
Referenced by MSNet(), and simulate().
|
privateinherited |
The key->value map.
Definition at line 139 of file Parameterised.h.
Referenced by Parameterised::clearParameter(), Parameterised::getDouble(), Parameterised::getDoubles(), Parameterised::getParameter(), Parameterised::getParametersMap(), Parameterised::getParametersStr(), Parameterised::hasParameter(), Parameterised::setParameter(), Parameterised::setParameters(), Parameterised::setParametersStr(), Parameterised::unsetParameter(), and Parameterised::writeParams().
|
protected |
Maximum number of teleports.
Definition at line 869 of file MSNet.h.
Referenced by MSNet(), and simulationState().
|
protected |
The edge type specific meso parameters.
Definition at line 961 of file MSNet.h.
Referenced by addMesoType(), and getMesoType().
|
mutableprotected |
Definition at line 1021 of file MSNet.h.
Referenced by getPedestrianRouter(), and ~MSNet().
|
protected |
The names of the last K periodic state files (only only K shall be kept)
Definition at line 944 of file MSNet.h.
Referenced by simulationStep().
|
protected |
Controls person building and deletion;.
Definition at line 882 of file MSNet.h.
Referenced by adaptToState(), clearState(), generateStatistics(), GUINet::getParameterWindow(), getPersonControl(), GUINet::getPersonControl(), hasPersons(), MSNet(), postMoveStep(), simulationState(), simulationStep(), writeStatistics(), and ~MSNet().
|
protected |
Definition at line 931 of file MSNet.h.
Referenced by generateStatistics(), postMoveStep(), and writeStatistics().
|
protected |
The vehicle class specific speed restrictions.
Definition at line 958 of file MSNet.h.
Referenced by addRestriction(), and getRestrictions().
|
protected |
Route loader for dynamic loading of routes.
Definition at line 860 of file MSNet.h.
Referenced by closeBuilding(), loadRoutes(), loadState(), MSNet(), quickReload(), and ~MSNet().
|
mutableprotected |
Definition at line 1020 of file MSNet.h.
Referenced by getRouterEffort(), and ~MSNet().
|
mutableprotected |
Definition at line 1019 of file MSNet.h.
Referenced by getRouterTT(), and ~MSNet().
|
protected |
A container for geometrical shapes;.
Definition at line 902 of file MSNet.h.
Referenced by clearState(), getShapeContainer(), makeDynamicShapeUpdater(), MSNet(), and ~MSNet().
|
protected |
The overall simulation duration.
Definition at line 924 of file MSNet.h.
Referenced by closeBuilding(), generateStatistics(), and writeStatistics().
|
protected |
Definition at line 921 of file MSNet.h.
Referenced by postMoveStep(), postSimStepOutput(), simulationStep(), and writeSummaryOutput().
|
protected |
The names for the state files.
Definition at line 942 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
The period for writing state.
Definition at line 946 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
name components for periodic state
Definition at line 948 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
Definition at line 949 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
Times at which a state shall be written.
Definition at line 940 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
Current time step.
Definition at line 863 of file MSNet.h.
Referenced by clearState(), closeSimulation(), generateStatistics(), getCurrentTimeStep(), loadRoutes(), MSNet(), postMoveStep(), postSimStepOutput(), preSimStepOutput(), registerCollision(), removeOutdatedCollisions(), setCurrentTimeStep(), simulate(), simulationState(), simulationStep(), writeOutput(), writeStatistics(), and writeSummaryOutput().
|
protected |
whether libsumo triggered a partial step (executeMove)
Definition at line 866 of file MSNet.h.
Referenced by simulationStep().
|
protected |
Dictionary of bus / container stops.
Definition at line 988 of file MSNet.h.
Referenced by adaptIntermodalRouter(), addStoppingPlace(), clearState(), getStoppingPlace(), getStoppingPlaceID(), getStoppingPlaces(), writeChargingStationOutput(), and writeOverheadWireSegmentOutput().
|
protected |
The overall time spent waiting for traci operations including.
Definition at line 927 of file MSNet.h.
Referenced by closeBuilding(), generateStatistics(), postMoveStep(), and writeStatistics().
|
protected |
The last simulation step duration.
Definition at line 921 of file MSNet.h.
Referenced by postMoveStep(), postSimStepOutput(), and simulationStep().
|
protected |
Dictionary of traction substations.
Definition at line 991 of file MSNet.h.
Referenced by addTractionSubstation(), existTractionSubstation(), findTractionSubstation(), and writeSubstationOutput().
|
protected |
Container for transportable state listener.
Definition at line 997 of file MSNet.h.
Referenced by addTransportableStateListener(), informTransportableStateListener(), and removeTransportableStateListener().
|
protected |
Controls vehicle building and deletion;.
Definition at line 880 of file MSNet.h.
Referenced by adaptToState(), clearState(), generateStatistics(), GUINet::getGUIMEVehicleControl(), GUINet::getGUIVehicleControl(), getVehicleControl(), MSNet(), postMoveStep(), postSimStepOutput(), simulationState(), simulationStep(), GUINet::vehicleExists(), writeStatistics(), writeSummaryOutput(), and ~MSNet().
|
protected |
The overall number of vehicle movements.
Definition at line 930 of file MSNet.h.
Referenced by generateStatistics(), GUINet::getMeanUPS(), postMoveStep(), and writeStatistics().
|
protected |
Container for vehicle state listener.
Definition at line 994 of file MSNet.h.
Referenced by addVehicleStateListener(), informVehicleStateListener(), and removeVehicleStateListener().
|
protected |
the network version
Definition at line 982 of file MSNet.h.
Referenced by closeBuilding(), getNetworkVersion(), and GUINet::getParameterWindow().
|
protected |
container to record warnings that shall only be issued once
Definition at line 1012 of file MSNet.h.
Referenced by warnOnce().
|
static |
string constants for simstep stages
Definition at line 832 of file MSNet.h.
Referenced by simulationStep().
|
static |
Definition at line 835 of file MSNet.h.
Referenced by simulationStep().
|
static |
Definition at line 834 of file MSNet.h.
Referenced by simulationStep().
|
static |
Definition at line 833 of file MSNet.h.
Referenced by MSLane::detectCollisions(), and simulationStep().
|
static |
Definition at line 836 of file MSNet.h.
Referenced by postMoveStep().