![]() |
Eclipse SUMO - Simulation of Urban MObility
|
The simulated network and simulation perfomer. More...
#include <MSNet.h>
Data Structures | |
struct | MesoEdgeType |
edge type specific meso parameters More... | |
class | VehicleStateListener |
Interface for objects listening to vehicle state changes. More... | |
Public Types | |
typedef IntermodalRouter< MSEdge, MSLane, MSJunction, SUMOVehicle > | MSIntermodalRouter |
typedef PedestrianRouter< MSEdge, MSLane, MSJunction, MSVehicle > | MSPedestrianRouter |
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 |
Called after a simulation step, this method adapts the current simulation state if necessary. More... | |
void | addMesoType (const std::string &typeID, const MesoEdgeType &edgeType) |
Adds edge type specific meso parameters. More... | |
void | addRestriction (const std::string &id, const SUMOVehicleClass svc, const double speed) |
Adds a restriction for an edge type. More... | |
void | clearState (const SUMOTime step) |
Resets events when quick-loading state. More... | |
void | closeBuilding (const OptionsCont &oc, MSEdgeControl *edges, MSJunctionControl *junctions, SUMORouteLoaderControl *routeLoaders, MSTLLogicControl *tlc, std::vector< SUMOTime > stateDumpTimes, std::vector< std::string > stateDumpFiles, bool hasInternalLinks, bool hasNeighs, double version) |
Closes the network's building process. More... | |
void | closeSimulation (SUMOTime start, const std::string &reason="") |
Closes the simulation (all files, connections, etc.) More... | |
virtual void | createTLWrapper (MSTrafficLightLogic *) |
creates a wrapper for the given logic (see GUINet) More... | |
bool | existTractionSubstation (const std::string &substationId) |
return whether given electrical substation exists in the network More... | |
MSTractionSubstation * | findTractionSubstation (const std::string &substationId) |
find electrical substation by its id More... | |
const std::string | generateStatistics (SUMOTime start) |
Writes performance output and running vehicle stats. More... | |
SUMOTime | getCurrentTimeStep () const |
Returns the current simulation step. More... | |
MSIntermodalRouter & | getIntermodalRouter (const int rngIndex, const int routingMode=0, const MSEdgeVector &prohibited=MSEdgeVector()) const |
const MesoEdgeType & | getMesoType (const std::string &typeID) |
Returns edge type specific meso parameters if no type specific parameters have been loaded, default values are returned. More... | |
double | getNetworkVersion () const |
return the network version More... | |
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. More... | |
SUMOAbstractRouter< MSEdge, SUMOVehicle > & | getRouterEffort (const int rngIndex, const MSEdgeVector &prohibited=MSEdgeVector()) const |
SUMOAbstractRouter< MSEdge, SUMOVehicle > & | getRouterTT (const int rngIndex, const MSEdgeVector &prohibited=MSEdgeVector()) const |
const NamedObjectCont< MSStoppingPlace * > & | getStoppingPlaces (SumoXMLTag category) const |
bool | hasBidiEdges () const |
return whether the network contains bidirectional rail edges More... | |
bool | hasElevation () const |
return whether the network contains elevation data More... | |
bool | hasInternalLinks () const |
return whether the network contains internal links More... | |
bool | hasPedestrianNetwork () const |
return whether the network contains walkingareas and crossings More... | |
bool | hasPermissions () const |
Returns whether the network has specific vehicle class permissions. More... | |
void | interrupt () |
virtual bool | isGUINet () const |
Returns whether this is a GUI Net. More... | |
bool | isInterrupted () const |
virtual bool | isSelected (const MSTrafficLightLogic *) const |
return wheter the given logic (or rather it's wrapper) is selected in the GUI More... | |
void | loadRoutes () |
loads routes for the next few steps More... | |
bool | logSimulationDuration () const |
Returns whether duration shall be logged. More... | |
MSNet (MSVehicleControl *vc, MSEventControl *beginOfTimestepEvents, MSEventControl *endOfTimestepEvents, MSEventControl *insertionEvents, ShapeContainer *shapeCont=0) | |
Constructor. More... | |
void | setCurrentTimeStep (const SUMOTime step) |
Sets the current simulation step (used by state loading) More... | |
void | setPermissionsFound () |
Labels the network to contain vehicle class permissions. More... | |
SimulationState | simulate (SUMOTime start, SUMOTime stop) |
Simulates from timestep start to stop. More... | |
SimulationState | simulationState (SUMOTime stopTime) const |
This method returns the current simulation state. It should not modify status. More... | |
void | simulationStep () |
Performs a single simulation step. More... | |
bool | warnOnce (const std::string &typeAndID) |
return whether a warning regarding the given object shall be issued More... | |
void | writeChargingStationOutput () const |
write charging station output More... | |
void | writeOutput () |
Write netstate, summary and detector output. More... | |
void | writeOverheadWireSegmentOutput () const |
write the output generated by an overhead wire segment More... | |
void | writeRailSignalBlocks () const |
write rail signal block output More... | |
void | writeStatistics () const |
write statistic output to (xml) file More... | |
void | writeSubstationOutput () const |
write electrical substation output More... | |
virtual | ~MSNet () |
Destructor. More... | |
Output during the simulation | |
void | preSimStepOutput () const |
Prints the current step number. More... | |
void | postSimStepOutput () const |
Prints the statistics of the step at its end. More... | |
Retrieval of references to substructures | |
MSVehicleControl & | getVehicleControl () |
Returns the vehicle control. More... | |
virtual MSTransportableControl & | getPersonControl () |
Returns the person control. More... | |
bool | hasPersons () const |
Returns whether persons are simulated. More... | |
virtual MSTransportableControl & | getContainerControl () |
Returns the container control. More... | |
bool | hasContainers () const |
Returns whether containers are simulated. More... | |
MSEdgeControl & | getEdgeControl () |
Returns the edge control. More... | |
MSInsertionControl & | getInsertionControl () |
Returns the insertion control. More... | |
MSDetectorControl & | getDetectorControl () |
Returns the detector control. More... | |
MSTLLogicControl & | getTLSControl () |
Returns the tls logics control. More... | |
MSJunctionControl & | getJunctionControl () |
Returns the junctions control. More... | |
MSEventControl * | getBeginOfTimestepEvents () |
Returns the event control for events executed at the begin of a time step. More... | |
MSEventControl * | getEndOfTimestepEvents () |
Returns the event control for events executed at the end of a time step. More... | |
MSEventControl * | getInsertionEvents () |
Returns the event control for insertion events. More... | |
ShapeContainer & | getShapeContainer () |
Returns the shapes container. More... | |
MSDynamicShapeUpdater * | getDynamicShapeUpdater () |
Returns the dynamic shapes updater. More... | |
MSDynamicShapeUpdater * | makeDynamicShapeUpdater () |
Creates and returns a dynamic shapes updater. More... | |
MSEdgeWeightsStorage & | getWeightsStorage () |
Returns the net's internal edge travel times/efforts container. More... | |
Insertion and retrieval of stopping places | |
bool | addStoppingPlace (const SumoXMLTag category, MSStoppingPlace *stop) |
Adds a stopping place. More... | |
bool | addTractionSubstation (MSTractionSubstation *substation) |
Adds a traction substation. More... | |
MSStoppingPlace * | getStoppingPlace (const std::string &id, const SumoXMLTag category) const |
Returns the named stopping place of the given category. More... | |
std::string | getStoppingPlaceID (const MSLane *lane, const double pos, const SumoXMLTag category) const |
Returns the stop of the given category close to the given position. More... | |
Static Public Member Functions | |
static void | adaptIntermodalRouter (MSIntermodalRouter &router) |
static void | cleanupStatic () |
Place for static initializations of simulation components (called after successful net build) More... | |
static void | clearAll () |
Clears all dictionaries. More... | |
static double | getEffort (const MSEdge *const e, const SUMOVehicle *const v, double t) |
Returns the effort to pass an edge. More... | |
static MSNet * | getInstance () |
Returns the pointer to the unique instance of MSNet (singleton). More... | |
static std::string | getStateMessage (SimulationState state) |
Returns the message to show if a certain state occurs. More... | |
static double | getTravelTime (const MSEdge *const e, const SUMOVehicle *const v, double t) |
Returns the travel time to pass an edge. More... | |
static bool | hasInstance () |
Returns whether the network was already constructed. More... | |
static void | initStatic () |
Place for static initializations of simulation components (called after successful net build) More... | |
Protected Member Functions | |
bool | checkBidiEdges () |
check wether bidirectional edges occur in the network More... | |
bool | checkElevation () |
check all lanes for elevation data More... | |
bool | checkWalkingarea () |
check all lanes for type walkingArea More... | |
Protected Attributes | |
bool | myAmInterrupted |
whether an interrupt occured More... | |
std::unique_ptr< MSDynamicShapeUpdater > | myDynamicShapeUpdater |
Updater for dynamic shapes that are tracking traffic objects (ensures removal of shape dynamics when the objects are removed) More... | |
SUMOTime | myEdgeDataEndTime |
end of loaded edgeData More... | |
bool | myHasBidiEdges |
Whether the network contains bidirectional rail edges. More... | |
bool | myHasElevation |
Whether the network contains elevation data. More... | |
bool | myHasInternalLinks |
Whether the network contains internal links/lanes/edges. More... | |
bool | myHasPedestrianNetwork |
Whether the network contains pedestrian network elements. More... | |
bool | myHavePermissions |
Whether the network contains edges which not all vehicles may pass. More... | |
std::map< int, MSIntermodalRouter * > | myIntermodalRouter |
std::pair< bool, NamedRTree > | myLanesRTree |
An RTree structure holding lane IDs. More... | |
bool | myLefthand |
Whether the network was built for left-hand traffic. More... | |
int | myMaxTeleports |
Maximum number of teleports. More... | |
std::map< std::string, MesoEdgeType > | myMesoEdgeTypes |
The edge type specific meso parameters. More... | |
std::map< int, MSPedestrianRouter * > | myPedestrianRouter |
std::map< std::string, std::map< SUMOVehicleClass, double > > | myRestrictions |
The vehicle class specific speed restrictions. More... | |
SUMORouteLoaderControl * | myRouteLoaders |
Route loader for dynamic loading of routes. More... | |
std::map< int, SUMOAbstractRouter< MSEdge, SUMOVehicle > * > | myRouterEffort |
std::map< int, SUMOAbstractRouter< MSEdge, SUMOVehicle > * > | myRouterTT |
SUMOTime | myStep |
Current time step. More... | |
std::map< SumoXMLTag, NamedObjectCont< MSStoppingPlace * > > | myStoppingPlaces |
Dictionary of bus / container stops. More... | |
std::vector< MSTractionSubstation * > | myTractionSubstations |
Dictionary of traction substations. More... | |
std::vector< VehicleStateListener * > | myVehicleStateListeners |
Container for vehicle state listener. More... | |
double | myVersion |
the network version More... | |
std::map< std::string, bool > | myWarnedOnce |
container to record warnings that shall only be issued once More... | |
Substructures | |
MSVehicleControl * | myVehicleControl |
Controls vehicle building and deletion;. More... | |
MSTransportableControl * | myPersonControl |
Controls person building and deletion;. More... | |
MSTransportableControl * | myContainerControl |
Controls container building and deletion;. More... | |
MSEdgeControl * | myEdges |
Controls edges, performs vehicle movement;. More... | |
MSJunctionControl * | myJunctions |
Controls junctions, realizes right-of-way rules;. More... | |
MSTLLogicControl * | myLogics |
Controls tls logics, realizes waiting on tls rules;. More... | |
MSInsertionControl * | myInserter |
Controls vehicle insertion;. More... | |
MSDetectorControl * | myDetectorControl |
Controls detectors;. More... | |
MSEventControl * | myBeginOfTimestepEvents |
Controls events executed at the begin of a time step;. More... | |
MSEventControl * | myEndOfTimestepEvents |
Controls events executed at the end of a time step;. More... | |
MSEventControl * | myInsertionEvents |
Controls insertion events;. More... | |
ShapeContainer * | myShapeContainer |
A container for geometrical shapes;. More... | |
MSEdgeWeightsStorage * | myEdgeWeights |
The net's knowledge about edge efforts/travel times;. More... | |
data needed for computing performance values | |
bool | myLogExecutionTime |
Information whether the simulation duration shall be logged. More... | |
bool | myLogStepNumber |
Information whether the number of the simulation step shall be logged. More... | |
int | myLogStepPeriod |
Period between successive step-log outputs. More... | |
long | myTraCIStepDuration = 0 |
The last simulation step duration. More... | |
long | mySimStepDuration = 0 |
long | mySimBeginMillis |
The overall simulation duration. More... | |
long long int | myVehiclesMoved |
The overall number of vehicle movements. More... | |
long long int | myPersonsMoved |
State output variables | |
std::vector< SUMOTime > | myStateDumpTimes |
Times at which a state shall be written. More... | |
std::vector< std::string > | myStateDumpFiles |
The names for the state files. More... | |
SUMOTime | myStateDumpPeriod |
The period for writing state. More... | |
std::string | myStateDumpPrefix |
name components for periodic state More... | |
std::string | myStateDumpSuffix |
Static Protected Attributes | |
static MSNet * | myInstance = nullptr |
Unique instance of MSNet. More... | |
static const std::string | STAGE_EVENTS |
string constants for simstep stages More... | |
static const std::string | STAGE_INSERTIONS |
static const std::string | STAGE_LANECHANGE |
static const std::string | STAGE_MOVEMENTS |
Private Member Functions | |
MSNet (const MSNet &) | |
Invalidated copy constructor. More... | |
MSNet & | operator= (const MSNet &) |
Invalidated assignment operator. More... | |
Notification about vehicle state changes | |
enum | VehicleState { VEHICLE_STATE_BUILT , VEHICLE_STATE_DEPARTED , VEHICLE_STATE_STARTING_TELEPORT , VEHICLE_STATE_ENDING_TELEPORT , VEHICLE_STATE_ARRIVED , VEHICLE_STATE_NEWROUTE , VEHICLE_STATE_STARTING_PARKING , VEHICLE_STATE_ENDING_PARKING , VEHICLE_STATE_STARTING_STOP , VEHICLE_STATE_ENDING_STOP , VEHICLE_STATE_COLLISION , VEHICLE_STATE_EMERGENCYSTOP , VEHICLE_STATE_MANEUVERING } |
Definition of a vehicle state. More... | |
void | addVehicleStateListener (VehicleStateListener *listener) |
Adds a vehicle states listener. More... | |
void | removeVehicleStateListener (VehicleStateListener *listener) |
Removes a vehicle states listener. More... | |
void | informVehicleStateListener (const SUMOVehicle *const vehicle, VehicleState to, const std::string &info="") |
Informs all added listeners about a vehicle's state change. More... | |
Possible states of a simulation - running or stopped with different reasons.
enum MSNet::VehicleState |
Definition of a vehicle state.
Enumerator | |
---|---|
VEHICLE_STATE_BUILT | The vehicle was built, but has not yet departed. |
VEHICLE_STATE_DEPARTED | The vehicle has departed (was inserted into the network) |
VEHICLE_STATE_STARTING_TELEPORT | The vehicle started to teleport. |
VEHICLE_STATE_ENDING_TELEPORT | The vehicle ended being teleported. |
VEHICLE_STATE_ARRIVED | The vehicle arrived at his destination (is deleted) |
VEHICLE_STATE_NEWROUTE | The vehicle got a new route. |
VEHICLE_STATE_STARTING_PARKING | The vehicles starts to park. |
VEHICLE_STATE_ENDING_PARKING | The vehicle ends to park. |
VEHICLE_STATE_STARTING_STOP | The vehicles starts to stop. |
VEHICLE_STATE_ENDING_STOP | The vehicle ends to stop. |
VEHICLE_STATE_COLLISION | The vehicle is involved in a collision. |
VEHICLE_STATE_EMERGENCYSTOP | The vehicle had to brake harder than permitted. |
VEHICLE_STATE_MANEUVERING | Vehicle maneuvering either entering or exiting a parking space. |
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 193 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, and string2time().
|
virtual |
Destructor.
Definition at line 275 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 1286 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, SUMO_TAG_PARKING_AREA, SVC_PEDESTRIAN, SVC_TAXI, and IntermodalNetwork< E, L, N, V >::TAXI_PICKUP_ANYWHERE.
Referenced by getIntermodalRouter().
MSNet::SimulationState MSNet::adaptToState | ( | const SimulationState | state | ) | const |
Called after a simulation step, this method adapts the current simulation state if necessary.
[in] | state | The current simulation state |
Definition at line 697 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 MesoEdgeType & | edgeType | ||
) |
Adds edge type specific meso parameters.
[in] | id | The id of the type |
[in] | edgeType | The parameter object |
Definition at line 342 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 327 of file MSNet.cpp.
References myRestrictions.
Referenced by 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 1082 of file MSNet.cpp.
References Named::getID(), myStoppingPlaces, SUMO_TAG_BUS_STOP, and SUMO_TAG_TRAIN_STOP.
Referenced by GUITriggerBuilder::beginParkingArea(), NLTriggerBuilder::beginParkingArea(), GUITriggerBuilder::buildChargingStation(), NLTriggerBuilder::buildChargingStation(), GUITriggerBuilder::buildOverheadWireSegment(), NLTriggerBuilder::buildOverheadWireSegment(), GUITriggerBuilder::buildStoppingPlace(), and NLTriggerBuilder::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 1088 of file MSNet.cpp.
References myTractionSubstations.
Referenced by NLTriggerBuilder::buildTractionSubstation().
void MSNet::addVehicleStateListener | ( | VehicleStateListener * | listener | ) |
Adds a vehicle states listener.
[in] | listener | The listener to add |
Definition at line 1054 of file MSNet.cpp.
References myVehicleStateListeners.
Referenced by libsumo::Polygon::addDynamics(), MSRailSignalControl::getInstance(), MSDevice_Vehroutes::init(), MSVehicle::Influencer::GapControlState::init(), TraCIServer::openSocket(), and libsumo::Helper::registerVehicleStateListener().
|
protected |
check wether bidirectional edges occur in the network
Definition at line 1345 of file MSNet.cpp.
References MSEdgeControl::getEdges(), and myEdges.
Referenced by closeBuilding().
|
protected |
check all lanes for elevation data
Definition at line 1320 of file MSNet.cpp.
References MSEdgeControl::getEdges(), and myEdges.
Referenced by closeBuilding().
|
protected |
check all lanes for type walkingArea
Definition at line 1334 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 186 of file MSNet.cpp.
References MSVehicle::Influencer::cleanup(), and MSGlobals::gUseMesoSim.
Referenced by ~MSNet().
|
static |
Clears all dictionaries.
Definition at line 743 of file MSNet.cpp.
References libsumo::Helper::cleanup(), MSDevice_BTsender::cleanup(), MSDevice_SSM::cleanup(), MSDevice_ToC::cleanup(), MSStopOut::cleanup(), MSRailSignalConstraint::cleanup(), MSRailSignalControl::cleanup(), MSCalibrator::cleanup(), MSTrigger::cleanup(), TraCIServer::cleanup(), MSDevice::cleanupAll(), MSEdge::clear(), MSLane::clear(), MSRoute::clear(), OutputDevice::closeAll(), MSVehicleTransfer::getInstance(), and TraCIServer::getInstance().
Referenced by GUILoadThread::run(), and ~MSNet().
void MSNet::clearState | ( | const SUMOTime | step | ) |
Resets events when quick-loading state.
step | The new simulation step |
Definition at line 768 of file MSNet.cpp.
References MELoop::clearState(), MSInsertionControl::clearState(), MSVehicleControl::clearState(), MSVehicleTransfer::clearState(), MSDetectorControl::clearState(), MSTLLogicControl::clearState(), MSEventControl::clearState(), MSRoute::dict_clearState(), MSEdge::dictSize(), MSEdge::getAllEdges(), MSVehicleTransfer::getInstance(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, myBeginOfTimestepEvents, myDetectorControl, myEndOfTimestepEvents, myInserter, myInsertionEvents, myLogics, myStep, myStoppingPlaces, myVehicleControl, MSDetectorControl::updateDetectors(), and MSDetectorControl::writeOutput().
Referenced by LIBSUMO_NAMESPACE::Simulation::loadState().
void MSNet::closeBuilding | ( | const OptionsCont & | oc, |
MSEdgeControl * | edges, | ||
MSJunctionControl * | junctions, | ||
SUMORouteLoaderControl * | routeLoaders, | ||
MSTLLogicControl * | tlc, | ||
std::vector< SUMOTime > | stateDumpTimes, | ||
std::vector< std::string > | stateDumpFiles, | ||
bool | hasInternalLinks, | ||
bool | hasNeighs, | ||
double | 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] | version | The network version |
Definition at line 243 of file MSNet.cpp.
References checkBidiEdges(), checkElevation(), checkWalkingarea(), SysUtils::getCurrentMillis(), OptionsCont::getString(), MSGlobals::gLateralResolution, hasInternalLinks(), myEdges, myHasBidiEdges, myHasElevation, myHasInternalLinks, myHasPedestrianNetwork, myJunctions, myLogics, myRouteLoaders, mySimBeginMillis, myStateDumpFiles, myStateDumpPeriod, myStateDumpPrefix, myStateDumpSuffix, myStateDumpTimes, myVersion, and string2time().
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 505 of file MSNet.cpp.
References MSDetectorControl::close(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSDevice_Vehroutes::generateOutputForUnfinished(), generateStatistics(), getCurrentTimeStep(), OptionsCont::getOptions(), myDetectorControl, myLogExecutionTime, myStep, time2string(), WRITE_MESSAGE, writeChargingStationOutput(), writeOverheadWireSegmentOutput(), 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 570 of file MSNet.h.
Referenced by MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline().
bool MSNet::existTractionSubstation | ( | const std::string & | substationId | ) |
return whether given electrical substation exists in the network
Definition at line 1188 of file MSNet.cpp.
References myTractionSubstations.
MSTractionSubstation * MSNet::findTractionSubstation | ( | const std::string & | substationId | ) |
find electrical substation by its id
Definition at line 1177 of file MSNet.cpp.
References myTractionSubstations.
Referenced by NLTriggerBuilder::parseAndBuildOverheadWireClamp(), and NLTriggerBuilder::parseAndBuildOverheadWireSection().
const std::string MSNet::generateStatistics | ( | SUMOTime | start | ) |
Writes performance output and running vehicle stats.
[in] | start | The step the simulation was started with |
Definition at line 416 of file MSNet.cpp.
References elapsedMs2string(), MSVehicleControl::getCollisionCount(), SysUtils::getCurrentMillis(), MSVehicleControl::getDepartedVehicleNo(), MSVehicleControl::getEmergencyStops(), MSTransportableControl::getJammedNumber(), MSTransportableControl::getLoadedNumber(), MSVehicleControl::getLoadedVehicleNo(), OptionsCont::getOptions(), MSTransportableControl::getRunningNumber(), MSVehicleControl::getRunningVehicleNo(), MSVehicleControl::getTeleportCount(), MSVehicleControl::getTeleportsJam(), MSVehicleControl::getTeleportsWrongLane(), MSVehicleControl::getTeleportsYield(), MSInsertionControl::getWaitingVehicleNo(), joinToString(), myInserter, myLogExecutionTime, myPersonControl, myPersonsMoved, mySimBeginMillis, myStep, 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 464 of file MSNet.h.
References myBeginOfTimestepEvents.
Referenced by MSPModel_NonInteracting::add(), MSPModel_Striping::add(), NLTriggerBuilder::buildVaporizer(), MSPhasedTrafficLightLogic::changeStepAndDuration(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSTLLogicControl::closeWAUT(), MSLaneSpeedTrigger::init(), MSPModel_NonInteracting::loadState(), MSPModel_Remote::MSPModel_Remote(), MSTrafficLightLogic::MSTrafficLightLogic(), MSTriggeredRerouter::myEndElement(), MSDevice_Routing::notifyEnter(), MSPerson::MSPersonStage_Access::proceed(), MSDevice_ToC::requestToC(), MSTriggeredRerouter::setPermissions(), MSDevice_ToC::triggerDownwardToC(), and MSDevice_ToC::triggerMRM().
|
virtual |
Returns the container control.
If the container control does not exist, yet, it is created.
Reimplemented in GUINet.
Definition at line 995 of file MSNet.cpp.
References myContainerControl.
Referenced by MSStageWaiting::abort(), MSStageDriving::abort(), MSRouteHandler::addFlowPerson(), MSVehicle::boardTransportables(), MSRouteHandler::closeContainer(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), MSStageTranship::moveToNextEdge(), MSStateHandler::myEndElement(), MSStateHandler::myStartElement(), MSDevice_Transportable::notifyLeave(), MSDevice_Transportable::notifyMove(), GUISUMOViewParent::onCmdLocate(), MSStageWaiting::proceed(), MSStageDriving::proceed(), MSStageTranship::proceed(), TraCIServerAPI_GUI::processSet(), MEVehicle::processStop(), MSStateHandler::saveState(), and MSDevice_Transportable::~MSDevice_Transportable().
|
inline |
Returns the current simulation step.
Definition at line 313 of file MSNet.h.
References myStep.
Referenced by MSRoutingEngine::_initEdgeWeights(), MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), LIBSUMO_NAMESPACE::Person::add(), LIBSUMO_NAMESPACE::Vehicle::add(), MSPModel_Striping::add(), GUIEdge::addRerouter(), MSDevice_Vehroutes::addRoute(), MSBaseVehicle::addTransportable(), MSTLLogicControl::addWAUTJunction(), MSTransportableControl::boardAnyWaiting(), MSVehicle::boardTransportables(), NLDetectorBuilder::buildE2Detector(), MSSimpleTrafficLightLogic::changeStepAndDuration(), closeSimulation(), NLJunctionControlBuilder::closeTrafficLightLogic(), MSTLLogicControl::closeWAUT(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), MSActuatedTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), TraCIServer::dispatchCommand(), MSDevice_Taxi::dispatchShared(), MSActuatedTrafficLightLogic::duration(), MSVehicle::enterLaneAtInsertion(), Command_SaveTLCoupledDet::execute(), Command_SaveTLCoupledLaneDet::execute(), MSVehicle::executeFractionalMove(), MSCFModel_CC::finalizeSpeed(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), MSActuatedTrafficLightLogic::gapControl(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSTransportable::getAngle(), MSLane::getCriticalLeader(), MSSOTLTrafficLightLogic::getCurrentPhaseElapsed(), GUIApplicationWindow::getCurrentSimTime(), MSLaneSpeedTrigger::getCurrentSpeed(), LIBSUMO_NAMESPACE::Simulation::getCurrentTime(), GUIViewTraffic::getCurrentTimeStep(), MSActuatedTrafficLightLogic::getDetectorPriority(), GUINet::getEdgeData(), MSTransportable::getEdgePos(), MSLane::getFirstVehicleInformation(), MSInductLoop::getLastDetectionTime(), MSLane::getLastVehicleInformation(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), LIBSUMO_NAMESPACE::Lane::getLinks(), MESegment::getMeanSpeed(), MSInsertionControl::getPendingEmits(), MSTransportable::getPosition(), MSVehicle::getPosition(), MSVehicle::getStopDelay(), MSTransportable::getWaitingSeconds(), MSTransportable::getWaitingTime(), MSLink::getZipperSpeed(), GUIApplicationWindow::handleEvent_SimulationStep(), MSLaneSpeedTrigger::init(), MSSwarmTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), TraCIServer::initialiseSubscription(), MSTLLogicControl::initWautSwitch(), MSLane::isInsertionSuccess(), MSVehicle::Influencer::isRemoteControlled(), MSPerson::Influencer::isRemoteControlled(), MSTransportableControl::loadAnyWaiting(), GUIRunThread::makeStep(), MSDevice_Taxi::MSDevice_Taxi(), MSPModel_Remote::MSPModel_Remote(), MSDevice_Routing::notifyEnter(), MSDevice_Vehroutes::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Vehroutes::notifyLeave(), MSDevice_Taxi::notifyMove(), MSDevice_Transportable::notifyMove(), GUIApplicationWindow::onCmdTimeToggle(), MSBaseVehicle::onDepart(), GUIViewTraffic::onGamingClick(), TraCIServer::postProcessSimulationStep(), MESegment::prepareDetectorForWriting(), MSVehicle::processLaneAdvances(), MSVehicle::processNextStop(), MEVehicle::processStop(), MSRailSignal::recheckGreen(), MSVehicle::replaceStop(), MSRailSignal::LinkInfo::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::resetActionOffset(), MSSOTLTrafficLightLogic::resetCTS(), MSTrafficLightLogic::resetLinkStates(), MSVehicle::resumeFromStopping(), GUIRunThread::run(), TraCIServer::sendOutputToAll(), MSStageTrip::setArrived(), LIBSUMO_NAMESPACE::TrafficLight::setPhase(), LIBSUMO_NAMESPACE::TrafficLight::setPhaseDuration(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSPhasedTrafficLightLogic::setStep(), MSSOTLTrafficLightLogic::setupCTS(), MSStageDriving::tripInfoOutput(), MSActuatedTrafficLightLogic::trySwitch(), MSDelayBasedTrafficLightLogic::trySwitch(), MSSimpleTrafficLightLogic::trySwitch(), MSSOTLTrafficLightLogic::trySwitch(), MSVehicle::updateActionOffset(), MSSOTLTrafficLightLogic::updateCTS(), MSRailCrossing::updateCurrentPhase(), MSDevice_Tripinfo::updateParkingStopTime(), MSSwarmTrafficLightLogic::updateSensitivities(), and MSVehicle::wasRemoteControlled().
|
inline |
Returns the detector control.
Definition at line 434 of file MSNet.h.
References myDetectorControl.
Referenced by MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NLDetectorBuilder::buildE2Detector(), NLDetectorBuilder::buildInductLoop(), NLDetectorBuilder::buildInstantInductLoop(), NLDetectorBuilder::buildRouteProbe(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NLDetectorBuilder::createEdgeLaneMeanData(), NLDetectorBuilder::endE3Detector(), LIBSUMO_NAMESPACE::InductionLoop::getDetector(), LIBSUMO_NAMESPACE::LaneArea::getDetector(), LIBSUMO_NAMESPACE::MultiEntryExit::getDetector(), LIBSUMO_NAMESPACE::MeanData::getMeanData(), LIBSUMO_NAMESPACE::RouteProbe::getRouteProbe(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), and NLTriggerBuilder::parseAndBuildCalibrator().
|
inline |
Returns the dynamic shapes updater.
Definition at line 501 of file MSNet.h.
References myDynamicShapeUpdater.
|
inline |
Returns the edge control.
Definition at line 414 of file MSNet.h.
References myEdges.
Referenced by MSRoutingEngine::adaptEdgeEfforts(), adaptIntermodalRouter(), NLBuilder::build(), MSLane::executeMovements(), MSRoutingEngine::getRouterTT(), MSLane::incorporateVehicle(), MSRoutingEngine::initRouter(), MSVehicle::processLaneAdvances(), MSRoutingEngine::reroute(), 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 140 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 474 of file MSNet.h.
References myEndOfTimestepEvents.
Referenced by libsumo::Polygon::addDynamics(), MSTractionSubstation::addSolvingCirucitToEndOfTimestepEvents(), MSDevice_BTreceiver::BTreceiverUpdate::BTreceiverUpdate(), Command_SaveTLSProgram::Command_SaveTLSProgram(), Command_SaveTLSState::Command_SaveTLSState(), Command_SaveTLSSwitches::Command_SaveTLSSwitches(), Command_SaveTLSSwitchStates::Command_SaveTLSSwitchStates(), MSParkingArea::enter(), MSCalibrator::init(), MSDevice_Taxi::initDispatch(), MSRoutingEngine::initWeightUpdate(), MSParkingArea::leaveFrom(), and MSVTypeProbe::MSVTypeProbe().
|
inline |
Returns the insertion control.
Definition at line 424 of file MSNet.h.
References myInserter.
Referenced by adaptIntermodalRouter(), LIBSUMO_NAMESPACE::Vehicle::add(), MSRouteHandler::addFlowPerson(), MSLane::checkFailure(), LIBSUMO_NAMESPACE::Simulation::clearPending(), MSRouteHandler::closeVehicle(), MSStateHandler::closeVehicle(), GUIEdge::getColorValue(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), GUINet::getParameterWindow(), GUILane::getPendingEmits(), GUIEdge::getScaleValue(), GUILane::getScaleValue(), GUIApplicationWindow::handleEvent_SimulationStep(), MSLane::isInsertionSuccess(), MSVehicleTransfer::loadState(), LIBSUMO_NAMESPACE::Vehicle::moveTo(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSStateHandler::myStartElement(), MSStageDriving::proceed(), MSVehicle::processNextStop(), LIBSUMO_NAMESPACE::Vehicle::remove(), MSBaseVehicle::reroute(), and MSStateHandler::saveState().
|
inline |
Returns the event control for insertion events.
Definition at line 484 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 171 of file MSNet.cpp.
References myInstance.
Referenced by MSRoutingEngine::_initEdgeWeights(), MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSCFModel_CC::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSPerson::MSPersonStage_Walking::abort(), MSStageWaiting::abort(), MSStageDriving::abort(), MSRoutingEngine::adaptEdgeEfforts(), LIBSUMO_NAMESPACE::Edge::adaptTraveltime(), LaneStoringVisitor::add(), LIBSUMO_NAMESPACE::Person::add(), libsumo::POI::add(), libsumo::Polygon::add(), LIBSUMO_NAMESPACE::Vehicle::add(), MSVehicleTransfer::add(), MSPModel_Striping::add(), MSChargingStation::addChargeValueForOutput(), MSOverheadWire::addChargeValueForOutput(), libsumo::Polygon::addDynamics(), MSRouteHandler::addFlowPerson(), libsumo::Polygon::addHighlightPolygon(), NLHandler::addInsertionPredecessorConstraint(), MSTrafficLightLogic::addLink(), MSTLLogicControl::TLSLogicVariants::addLogic(), MSTractionSubstation::addOverheadWireInnerSegmentToCircuit(), MSTractionSubstation::addOverheadWireSegmentToCircuit(), MSRouteHandler::addPersonTrip(), NLHandler::addPredecessorConstraint(), GUIEdge::addRerouter(), MSRouteHandler::addRide(), MSDevice_Vehroutes::addRoute(), MSTractionSubstation::addSolvingCirucitToEndOfTimestepEvents(), MSRouteHandler::addStop(), MSBaseVehicle::addStop(), MSRouteHandler::addTransport(), MSBaseVehicle::addTransportable(), MSTLLogicControl::addWAUTJunction(), LIBSUMO_NAMESPACE::Person::appendDrivingStage(), LIBSUMO_NAMESPACE::Person::appendWaitingStage(), LIBSUMO_NAMESPACE::Person::appendWalkingStage(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportableControl::boardAnyWaiting(), MSVehicle::boardTransportables(), MSDevice_BTreceiver::BTreceiverUpdate::BTreceiverUpdate(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), LIBSUMO_NAMESPACE::Vehicle::buildStopParameters(), NLTriggerBuilder::buildVaporizer(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), LIBSUMO_NAMESPACE::Vehicle::changeLane(), LIBSUMO_NAMESPACE::Vehicle::changeLaneRelative(), MELoop::changeSegment(), MSPhasedTrafficLightLogic::changeStepAndDuration(), MSSimpleTrafficLightLogic::changeStepAndDuration(), LIBSUMO_NAMESPACE::Vehicle::changeTarget(), MSLane::checkFailure(), GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), MSVehicleTransfer::checkInsertions(), MSVehicle::Influencer::GapControlState::cleanup(), LIBSUMO_NAMESPACE::Simulation::clearPending(), LIBSUMO_NAMESPACE::Simulation::close(), MSRouteHandler::closeContainer(), MSRouteHandler::closeFlow(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), MSRouteHandler::closeRoute(), MSRouteHandler::closeVehicle(), MSStateHandler::closeVehicle(), MSRouteHandler::closeVehicleTypeDistribution(), MSRouteHandler::closeVType(), MSTLLogicControl::closeWAUT(), Command_SaveTLSProgram::Command_SaveTLSProgram(), Command_SaveTLSState::Command_SaveTLSState(), Command_SaveTLSSwitches::Command_SaveTLSSwitches(), Command_SaveTLSSwitchStates::Command_SaveTLSSwitchStates(), MSDispatch_Greedy::computeDispatch(), MSDispatch_GreedyClosest::computeDispatch(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), LIBSUMO_NAMESPACE::Person::convertTraCIStage(), NLDetectorBuilder::createEdgeLaneMeanData(), MSCalibrator::currentFlow(), MSDevice_Taxi::customerArrived(), MSActuatedTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), MSInsertionControl::determineCandidates(), MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), TraCIServer::dispatchCommand(), MSDevice_Taxi::dispatchShared(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUITrafficLightLogicWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), MSVehicleType::duplicateType(), MSActuatedTrafficLightLogic::duration(), GUITriggerBuilder::endParkingArea(), GUITriggerBuilder::endStoppingPlace(), MSParkingArea::enter(), MSVehicle::enterLaneAtInsertion(), MSVehicle::Manoeuvre::entryManoeuvreIsComplete(), MSDevice::equippedByDefaultAssignmentOptions(), Command_SaveTLCoupledDet::execute(), Command_SaveTLCoupledLaneDet::execute(), METriggeredCalibrator::execute(), MSVTypeProbe::execute(), MSPerson::MSPersonStage_Access::ProceedCmd::execute(), MSCalibrator::execute(), MSVehicle::executeFractionalMove(), MSVehicle::executeMove(), MSLane::executeMovements(), MSEdgeControl::executeMovements(), libsumo::Polygon::exists(), MSCFModel_CC::finalizeSpeed(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), MSActuatedTrafficLightLogic::gapControl(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSDevice_Vehroutes::generateOutputForUnfinished(), LIBSUMO_NAMESPACE::Edge::getAdaptedTraveltime(), MSTransportable::getAngle(), MSVehicle::getBackPositionOnLane(), LIBSUMO_NAMESPACE::BusStop::getBusStop(), LIBSUMO_NAMESPACE::Simulation::getBusStopIDList(), LIBSUMO_NAMESPACE::Simulation::getBusStopWaiting(), LIBSUMO_NAMESPACE::Simulation::getBusStopWaitingIDList(), LIBSUMO_NAMESPACE::ChargingStation::getChargingStation(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), GUILane::getColorValue(), MSLane::getCriticalLeader(), MSSOTLTrafficLightLogic::getCurrentPhaseElapsed(), MSLaneSpeedTrigger::getCurrentSpeed(), LIBSUMO_NAMESPACE::Simulation::getCurrentTime(), GUIViewTraffic::getCurrentTimeStep(), LIBSUMO_NAMESPACE::InductionLoop::getDetector(), LIBSUMO_NAMESPACE::LaneArea::getDetector(), LIBSUMO_NAMESPACE::MultiEntryExit::getDetector(), MSActuatedTrafficLightLogic::getDetectorPriority(), MSRailSignal::LinkInfo::getDriveWay(), libsumo::Helper::getDrivingDistance(), MSTransportable::getEdgePos(), getEffort(), LIBSUMO_NAMESPACE::Edge::getEffort(), MSLane::getFirstVehicleInformation(), LIBSUMO_NAMESPACE::Vehicle::getFollowSpeed(), GUINet::getGUIInstance(), MSRailSignalControl::getInstance(), LIBSUMO_NAMESPACE::Junction::getJunction(), MSInductLoop::getLastDetectionTime(), LIBSUMO_NAMESPACE::Edge::getLastStepPersonIDs(), MSLane::getLastVehicleInformation(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), LIBSUMO_NAMESPACE::Lane::getLinks(), GUILane::getLoadedEdgeWeight(), MSLane::getMaximumBrakeDist(), LIBSUMO_NAMESPACE::MeanData::getMeanData(), MESegment::getMeanSpeed(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), MSPModel_Striping::getNextLane(), LIBSUMO_NAMESPACE::OverheadWire::getOverheadWire(), MSCFModel_CC::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), LIBSUMO_NAMESPACE::ParkingArea::getParkingArea(), GUILane::getPendingEmits(), MSInsertionControl::getPendingEmits(), libsumo::Helper::getPerson(), MSTLLogicControl::getPhaseDef(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), libsumo::POI::getPoI(), GUIViewTraffic::getPOIParamKeys(), libsumo::Polygon::getPolygon(), MSTransportable::getPosition(), MSVehicle::getPosition(), MSVTKExport::getPositions(), GUIVehicle::getPreviousLane(), MSCFModel_CC::getRadarMeasurements(), LIBSUMO_NAMESPACE::RouteProbe::getRouteProbe(), MSBaseVehicle::BaseInfluencer::getRouterTT(), MSRoutingEngine::getRouterTT(), GUIEdge::getScaleValue(), GUILane::getScaleValue(), LIBSUMO_NAMESPACE::Vehicle::getSecureGap(), MSVTKExport::getSpeed(), MSVehicle::getStopArrivalDelay(), MSVehicle::getStopDelay(), GUILane::getStoredEdgeTravelTime(), MSEdge::getSuccessors(), LIBSUMO_NAMESPACE::TrafficLight::getTLS(), libsumo::Polygon::getTrafficObject(), getTravelTime(), MSEdge::getTravelTimeStatic(), LIBSUMO_NAMESPACE::InductionLoop::getTree(), LIBSUMO_NAMESPACE::Junction::getTree(), libsumo::POI::getTree(), libsumo::Polygon::getTree(), GUIEdge::getTypeParameterWindow(), libsumo::Helper::getVehicle(), MSCFModel_CC::getVehicleInformation(), MSRailSignalConstraint::getVehID(), MSEdge::getViaSuccessors(), LIBSUMO_NAMESPACE::VehicleType::getVType(), MSTransportable::getWaitingSeconds(), MSTransportable::getWaitingTime(), MSLink::getZipperSpeed(), MSLane::handleCollisionBetween(), libsumo::Helper::handleSubscriptions(), MSLane::hasPedestrians(), MSBaseVehicle::haveValidStopEdges(), libsumo::POI::highlight(), LIBSUMO_NAMESPACE::Vehicle::highlight(), MSPModel_Striping::PState::ignoreRed(), MSVehicle::ignoreRed(), MSLane::incorporateVehicle(), MSVehicle::influenceChangeDecision(), MSDevice_Vehroutes::init(), MSVehicle::Influencer::GapControlState::init(), MSMeanData::init(), MSCalibrator::init(), MSLaneSpeedTrigger::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSRailCrossing::init(), MSRailSignal::init(), MSSwarmTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSDevice_ToC::initColorScheme(), MSDevice_Taxi::initDispatch(), TraCIServer::initialiseSubscription(), MSTrafficLightLogic::initMesoTLSPenalties(), MSStop::initPars(), MSLane::initRestrictions(), MSRoutingEngine::initRouter(), MSVehicleControl::initVehicle(), MSTLLogicControl::initWautSwitch(), MSRoutingEngine::initWeightUpdate(), MSEdge::insertVehicle(), MSLane::isInsertionSuccess(), LIBSUMO_NAMESPACE::Vehicle::isOnInit(), MSVehicle::Influencer::isRemoteControlled(), MSPerson::Influencer::isRemoteControlled(), MSTrafficLightLogic::isSelected(), MSSOTLTrafficLightLogic::isThresholdPassed(), MSVehicle::joinTrainPartFront(), MSAbstractLaneChangeModel::laneChangeOutput(), MSParkingArea::leaveFrom(), MSVehicle::leaveLane(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), LIBSUMO_NAMESPACE::Simulation::load(), MSTransportableControl::loadAnyWaiting(), LIBSUMO_NAMESPACE::Simulation::loadState(), MSVehicleTransfer::loadState(), MSPerson::MSPersonStage_Walking::loadState(), MSStageDriving::loadState(), MSVehicle::Manoeuvre::manoeuvreIsComplete(), LIBSUMO_NAMESPACE::Vehicle::moveTo(), MSStageTranship::moveToNextEdge(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), MSPModel_Striping::PState::moveToXY(), MSDevice_ToC::MRMExecutionStep(), MSDevice_Routing::MSDevice_Routing(), MSDevice_Taxi::MSDevice_Taxi(), MSDevice_ToC::MSDevice_ToC(), MSTrafficLightLogic::MSTrafficLightLogic(), MSTransportableControl::MSTransportableControl(), MSTransportableDevice_Routing::MSTransportableDevice_Routing(), MSVTypeProbe::MSVTypeProbe(), GUITriggeredRerouter::myEndElement(), MSStateHandler::myEndElement(), MSTriggeredRerouter::myEndElement(), MSRouteHandler::myStartElement(), MSStateHandler::myStartElement(), MSCalibrator::myStartElement(), MSTriggeredRerouter::myStartElement(), NLHandler::myStartElement(), MSLane::nextBlocking(), MSDevice_Routing::notifyEnter(), MSDevice_Taxi::notifyEnter(), MSDevice_Transportable::notifyEnter(), MSDevice_Vehroutes::notifyEnter(), MSCalibrator::VehicleRemover::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Vehroutes::notifyLeave(), MSDevice_ElecHybrid::notifyMove(), MSDevice_Battery::notifyMove(), MSDevice_Bluelight::notifyMove(), MSDevice_Taxi::notifyMove(), MSDevice_Transportable::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), GUISUMOViewParent::onCmdLocate(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdRemoveObject(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), GUIApplicationWindow::onCmdSaveState(), MSBaseVehicle::onDepart(), GUIViewTraffic::onGamingClick(), MEVehicle::onRemovalFromNet(), MSRouteHandler::openRoute(), TraCIServer::openSocket(), MSRouteHandler::openVehicleTypeDistribution(), NLTriggerBuilder::parseAndBuildOverheadWireClamp(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), MSRouteHandler::parseWalkPositions(), MSVehicle::planMoveInternal(), libsumo::Helper::postProcessRemoteControl(), MSPerson::Influencer::postProcessRemoteControl(), TraCIServer::postProcessSimulationStep(), MESegment::prepareDetectorForWriting(), MSPerson::MSPersonStage_Walking::proceed(), MSTransportable::proceed(), TraCIServer::processCommandsUntilSimStep(), MSDevice_SSM::processEncounters(), TraCIServerAPI_TrafficLight::processGet(), MSVehicle::processLaneAdvances(), MSVehicle::processNextStop(), TraCIServerAPI_GUI::processSet(), TraCIServerAPI_Person::processSet(), TraCIServerAPI_Vehicle::processSet(), MEVehicle::processStop(), MSVehicle::processTraCISpeedControl(), MSPModel_Striping::PState::PState(), MSEdge::recalcCache(), MESegment::receive(), MSRailSignal::recheckGreen(), libsumo::Helper::registerVehicleStateListener(), METriggeredCalibrator::remainingVehicleCapacity(), MSCalibrator::remainingVehicleCapacity(), libsumo::POI::remove(), libsumo::Polygon::remove(), LIBSUMO_NAMESPACE::Vehicle::remove(), MSVehicleControl::removePending(), MSCalibrator::removePending(), MSTransportable::removeStage(), MSBaseVehicle::replaceRoute(), MSVehicle::replaceStop(), MSBaseVehicle::replaceVehicleType(), MSTransportable::replaceVehicleType(), MSDevice_ToC::requestToC(), MSBaseVehicle::reroute(), MSRoutingEngine::reroute(), MSRailSignal::LinkInfo::reroute(), GUIVehicle::rerouteDRTStop(), LIBSUMO_NAMESPACE::Vehicle::rerouteEffort(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), LIBSUMO_NAMESPACE::Person::rerouteTraveltime(), LIBSUMO_NAMESPACE::Vehicle::rerouteTraveltime(), MSVehicle::resetActionOffset(), MSSOTLTrafficLightLogic::resetCTS(), MSTrafficLightLogic::resetLinkStates(), MSVehicle::resumeFromStopping(), MSTransportable::routeOutput(), MSStateHandler::saveRNGs(), MSStateHandler::saveState(), LIBSUMO_NAMESPACE::Simulation::saveState(), TraCIServer::sendOutputToAll(), MSVehicleType::setActionStepLength(), MSStageTrip::setArrived(), LIBSUMO_NAMESPACE::Edge::setEffort(), libsumo::Calibrator::setFlow(), GUIBaseVehicle::setFunctionalColor(), MSLaneSpeedTrigger::setOverriding(), MSLaneSpeedTrigger::setOverridingValue(), MSTransportableDevice_Routing::setParameter(), MSDevice_ToC::setParameter(), MSCFModel_CC::setParameter(), MSTriggeredRerouter::setPermissions(), LIBSUMO_NAMESPACE::TrafficLight::setPhase(), LIBSUMO_NAMESPACE::TrafficLight::setPhaseDuration(), libsumo::POI::setPosition(), LIBSUMO_NAMESPACE::TrafficLight::setProgram(), LIBSUMO_NAMESPACE::TrafficLight::setProgramLogic(), LIBSUMO_NAMESPACE::TrafficLight::setRedYellowGreenState(), libsumo::Polygon::setShape(), LIBSUMO_NAMESPACE::Vehicle::setSpeed(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSPhasedTrafficLightLogic::setStep(), LIBSUMO_NAMESPACE::Person::setType(), LIBSUMO_NAMESPACE::Vehicle::setType(), MSSOTLTrafficLightLogic::setupCTS(), GUITriggeredRerouter::shiftProbs(), signalHandler(), LIBSUMO_NAMESPACE::Vehicle::slowDown(), LIBSUMO_NAMESPACE::Simulation::step(), MSStopOut::stopEnded(), MSLane::succLinkSec(), MSDevice_ToC::switchHolderType(), MSTLLogicControl::TLSLogicVariants::switchTo(), MELoop::teleportVehicle(), MSDevice_ToC::triggerDownwardToC(), MSDevice_ToC::triggerMRM(), MSPerson::MSPersonStage_Walking::tripInfoOutput(), MSStageDriving::tripInfoOutput(), METriggeredCalibrator::tryEmit(), MSInsertionControl::tryInsert(), MSActuatedTrafficLightLogic::trySwitch(), MSDelayBasedTrafficLightLogic::trySwitch(), MSSimpleTrafficLightLogic::trySwitch(), MSSOTLTrafficLightLogic::trySwitch(), MSVehicle::updateActionOffset(), MSVehicle::updateBestLanes(), MSSOTLTrafficLightLogic::updateCTS(), MSRailCrossing::updateCurrentPhase(), MSSOTLTrafficLightLogic::updateDecayThreshold(), MSDevice_Tripinfo::updateParkingStopTime(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MELoop::updateSegementsForEdge(), MSSwarmTrafficLightLogic::updateSensitivities(), MSAbstractLaneChangeModel::updateShadowLane(), MSVehicle::updateState(), MSPModel_Remote::usingInternalLanes(), MSPModel_Striping::usingInternalLanesStatic(), MELoop::vaporizeCar(), MSDetectorFileOutput::vehicleApplies(), MSTriggeredRerouter::vehicleApplies(), MSVehicleControl::vehicleDeparted(), MSPModel_Striping::PState::walk(), MSPerson::MSPersonStage_Walking::walkDistance(), MSVehicle::wasRemoteControlled(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSAmitranTrajectories::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSElecHybridExport::writeAggregated(), MSFullExport::writeEdge(), MSQueueExport::writeEdge(), writeOutput(), MSDevice_Vehroutes::writeOutput(), MSFullExport::writeTLS(), MSFullExport::writeVehicles(), MSDevice_BTreceiver::BTreceiverUpdate::~BTreceiverUpdate(), MSDevice_Transportable::~MSDevice_Transportable(), MSTransportable::~MSTransportable(), and MSVehicle::~MSVehicle().
MSNet::MSIntermodalRouter & MSNet::getIntermodalRouter | ( | const int | rngIndex, |
const int | routingMode = 0 , |
||
const MSEdgeVector & | prohibited = MSEdgeVector() |
||
) | const |
Definition at line 1237 of file MSNet.cpp.
References adaptIntermodalRouter(), IntermodalNetwork< E, L, N, V >::ALL_JUNCTIONS, OptionsCont::getInt(), OptionsCont::getOptions(), OptionsCont::getString(), OptionsCont::getStringVector(), MSDevice_Taxi::getTaxi(), OptionsCont::getValueString(), myIntermodalRouter, IntermodalNetwork< E, L, N, V >::PARKING_AREAS, IntermodalNetwork< E, L, N, V >::PT_STOPS, libsumo::ROUTING_MODE_COMBINED, STEPS2TIME, string2time(), IntermodalNetwork< E, L, N, V >::TAXI_DROPOFF_ANYWHERE, IntermodalNetwork< E, L, N, V >::TAXI_DROPOFF_PT, IntermodalNetwork< E, L, N, V >::TAXI_PICKUP_ANYWHERE, and IntermodalNetwork< E, L, N, V >::TAXI_PICKUP_PT.
Referenced by LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), and MSStageTrip::setArrived().
|
inline |
Returns the junctions control.
Definition at line 454 of file MSNet.h.
References myJunctions.
Referenced by NLBuilder::build(), and LIBSUMO_NAMESPACE::Junction::getJunction().
const MSNet::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 347 of file MSNet.cpp.
References OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getOptions(), OptionsCont::getString(), MSNet::MesoEdgeType::jamThreshold, MSNet::MesoEdgeType::junctionControl, MSNet::MesoEdgeType::minorPenalty, myMesoEdgeTypes, MSNet::MesoEdgeType::overtaking, string2time(), MSNet::MesoEdgeType::tauff, MSNet::MesoEdgeType::taufj, MSNet::MesoEdgeType::taujf, MSNet::MesoEdgeType::taujj, MSNet::MesoEdgeType::tlsFlowPenalty, and MSNet::MesoEdgeType::tlsPenalty.
Referenced by NLHandler::addMesoEdgeType(), MELoop::buildSegmentsFor(), GUIEdge::getTypeParameterWindow(), MSTrafficLightLogic::initMesoTLSPenalties(), MSEdge::recalcCache(), and MELoop::updateSegementsForEdge().
|
inline |
MSNet::MSPedestrianRouter & MSNet::getPedestrianRouter | ( | const int | rngIndex, |
const MSEdgeVector & | prohibited = MSEdgeVector() |
||
) | const |
Definition at line 1227 of file MSNet.cpp.
References myPedestrianRouter.
Referenced by 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 986 of file MSNet.cpp.
References myPersonControl.
Referenced by MSPerson::MSPersonStage_Walking::abort(), MSStageWaiting::abort(), MSStageDriving::abort(), LIBSUMO_NAMESPACE::Person::add(), MSRouteHandler::addFlowPerson(), MSVehicle::boardTransportables(), MSRouteHandler::closeContainer(), MSPerson::MSPersonStage_Access::ProceedCmd::execute(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSDevice_Vehroutes::generateOutputForUnfinished(), MSLink::getLeaderInfo(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), libsumo::Helper::getPerson(), libsumo::Polygon::getTrafficObject(), libsumo::Helper::handleSubscriptions(), MSLane::hasPedestrians(), MSPerson::MSPersonStage_Walking::loadState(), MSStageTranship::moveToNextEdge(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), LIBSUMO_NAMESPACE::Person::moveToXY(), MSPModel_Striping::PState::moveToXY(), MSStateHandler::myEndElement(), MSStateHandler::myStartElement(), MSLane::nextBlocking(), MSDevice_Transportable::notifyLeave(), MSDevice_Transportable::notifyMove(), GUISUMOViewParent::onCmdLocate(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), TraCIServer::postProcessSimulationStep(), MSPerson::MSPersonStage_Walking::proceed(), MSStageWaiting::proceed(), MSStageDriving::proceed(), MSStageTranship::proceed(), MSTransportable::proceed(), TraCIServerAPI_GUI::processSet(), TraCIServerAPI_Person::processSet(), MEVehicle::processStop(), MSStateHandler::saveState(), MSPModel_Striping::PState::walk(), MSPerson::MSPersonStage_Walking::walkDistance(), writeOutput(), 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 333 of file MSNet.cpp.
References myRestrictions.
Referenced by MSLane::initRestrictions().
SUMOAbstractRouter< MSEdge, SUMOVehicle > & MSNet::getRouterEffort | ( | const int | rngIndex, |
const MSEdgeVector & | prohibited = MSEdgeVector() |
||
) | const |
Definition at line 1217 of file MSNet.cpp.
References MSEdge::getAllEdges(), getEffort(), getTravelTime(), and myRouterEffort.
SUMOAbstractRouter< MSEdge, SUMOVehicle > & MSNet::getRouterTT | ( | const int | rngIndex, |
const MSEdgeVector & | prohibited = MSEdgeVector() |
||
) | const |
Definition at line 1199 of file MSNet.cpp.
References MSEdge::getAllEdges(), OptionsCont::getOptions(), OptionsCont::getString(), getTravelTime(), myRouterTT, and WRITE_WARNING.
Referenced by MSDispatch_Greedy::computeDispatch(), MSDispatch_GreedyClosest::computeDispatch(), LIBSUMO_NAMESPACE::Simulation::findRoute(), libsumo::Helper::getDrivingDistance(), MSBaseVehicle::BaseInfluencer::getRouterTT(), MSTriggeredRerouter::notifyEnter(), GUIVehicle::rerouteDRTStop(), and MSTriggeredRerouter::rerouteParkingArea().
|
inline |
Returns the shapes container.
Definition at line 494 of file MSNet.h.
References myShapeContainer.
Referenced by libsumo::POI::add(), libsumo::Polygon::add(), NLHandler::addDistrict(), libsumo::Polygon::addDynamics(), libsumo::Polygon::addHighlightPolygon(), NLBuilder::build(), libsumo::Polygon::exists(), libsumo::POI::getPoI(), GUIViewTraffic::getPOIParamKeys(), libsumo::Polygon::getPolygon(), libsumo::POI::getTree(), libsumo::Polygon::getTree(), GUIApplicationWindow::onCmdOpenShapes(), libsumo::POI::remove(), libsumo::Polygon::remove(), libsumo::POI::setPosition(), and libsumo::Polygon::setShape().
|
static |
Returns the message to show if a certain state occurs.
Definition at line 718 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, and SIMSTATE_TOO_MANY_TELEPORTS.
Referenced by GUIRunThread::deleteSim(), GUIApplicationWindow::handleEvent_SimulationEnded(), and simulate().
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 1098 of file MSNet.cpp.
References myStoppingPlaces.
Referenced by MSTractionSubstation::addOverheadWireInnerSegmentToCircuit(), MSTractionSubstation::addOverheadWireSegmentToCircuit(), MSRouteHandler::addRide(), MSRouteHandler::addStop(), MSRouteHandler::addTransport(), LIBSUMO_NAMESPACE::Person::appendDrivingStage(), LIBSUMO_NAMESPACE::Person::appendWaitingStage(), LIBSUMO_NAMESPACE::Person::appendWalkingStage(), LIBSUMO_NAMESPACE::Vehicle::buildStopParameters(), LIBSUMO_NAMESPACE::Person::convertTraCIStage(), LIBSUMO_NAMESPACE::BusStop::getBusStop(), LIBSUMO_NAMESPACE::Simulation::getBusStopWaiting(), LIBSUMO_NAMESPACE::Simulation::getBusStopWaitingIDList(), LIBSUMO_NAMESPACE::ChargingStation::getChargingStation(), LIBSUMO_NAMESPACE::OverheadWire::getOverheadWire(), LIBSUMO_NAMESPACE::Simulation::getParameter(), LIBSUMO_NAMESPACE::ParkingArea::getParkingArea(), MSStop::initPars(), MSRouteHandler::myStartElement(), MSTriggeredRerouter::myStartElement(), MSDevice_ElecHybrid::notifyMove(), MSDevice_Battery::notifyMove(), NLTriggerBuilder::parseAndBuildOverheadWireClamp(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), MSRouteHandler::parseWalkPositions(), MSVehicle::rerouteParkingArea(), MSStageTrip::setArrived(), 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 1107 of file MSNet.cpp.
References MSStoppingPlace::getBeginLanePosition(), Named::getID(), MSStoppingPlace::getLane(), and myStoppingPlaces.
Referenced by MSTractionSubstation::addOverheadWireSegmentToCircuit(), MSDevice_ElecHybrid::notifyMove(), MSDevice_Battery::notifyMove(), NLTriggerBuilder::parseAndBuildOverheadWireSection(), and MSVehicle::updateBestLanes().
const NamedObjectCont< MSStoppingPlace * > & MSNet::getStoppingPlaces | ( | SumoXMLTag | category | ) | const |
Definition at line 1121 of file MSNet.cpp.
References myStoppingPlaces, and toString().
Referenced by GUIViewTraffic::onGamingClick().
|
inline |
Returns the tls logics control.
Definition at line 444 of file MSNet.h.
References myLogics.
Referenced by NLHandler::addInsertionPredecessorConstraint(), NLHandler::addPredecessorConstraint(), NLBuilder::build(), NLDiscreteEventBuilder::buildSaveTLSProgramCommand(), NLDiscreteEventBuilder::buildSaveTLStateCommand(), NLDiscreteEventBuilder::buildSaveTLSwitchesCommand(), NLDiscreteEventBuilder::buildSaveTLSwitchStatesCommand(), GUIJunctionWrapper::drawGL(), NLJunctionControlBuilder::getTLLogicControlToUse(), LIBSUMO_NAMESPACE::TrafficLight::getTLS(), GUINet::initGUIStructures(), GUINet::initTLMap(), 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 154 of file MSNet.cpp.
References getInstance(), MSEdge::getMinimumTravelTime(), getWeightsStorage(), MSBaseVehicle::getWeightsStorage(), and MSEdgeWeightsStorage::retrieveExistingTravelTime().
Referenced by MSRoutingEngine::_initEdgeWeights(), getRouterEffort(), getRouterTT(), MSEdge::getTravelTimeStatic(), and MSRoutingEngine::initRouter().
|
inline |
Returns the vehicle control.
Definition at line 371 of file MSNet.h.
References myVehicleControl.
Referenced by adaptIntermodalRouter(), LIBSUMO_NAMESPACE::Person::add(), LIBSUMO_NAMESPACE::Vehicle::add(), MSVehicleTransfer::add(), MSRouteHandler::addFlowPerson(), MSRouteHandler::addPersonTrip(), MSRouteHandler::addRide(), MSVehicle::boardTransportables(), MELoop::changeSegment(), GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), MSVehicleTransfer::checkInsertions(), MSRouteHandler::closeContainer(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), MSRouteHandler::closeVehicle(), MSStateHandler::closeVehicle(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), MSInsertionControl::determineCandidates(), MSDevice::equippedByDefaultAssignmentOptions(), METriggeredCalibrator::execute(), MSVTypeProbe::execute(), MSCalibrator::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), MSEdgeControl::executeMovements(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), LIBSUMO_NAMESPACE::Simulation::findRoute(), LIBSUMO_NAMESPACE::Vehicle::getFollowSpeed(), MSLane::getMaximumBrakeDist(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), GUINet::getParameterWindow(), MSVTKExport::getPositions(), MSCFModel_CC::getRadarMeasurements(), LIBSUMO_NAMESPACE::Vehicle::getSecureGap(), MSVTKExport::getSpeed(), libsumo::Polygon::getTrafficObject(), libsumo::Helper::getVehicle(), MSRailSignalConstraint::getVehID(), LIBSUMO_NAMESPACE::VehicleType::getVType(), MSLane::handleCollisionBetween(), GUIApplicationWindow::handleEvent_SimulationStep(), MSDevice_ToC::initColorScheme(), LIBSUMO_NAMESPACE::Vehicle::isOnInit(), MSStageDriving::loadState(), MSDevice_ToC::MSDevice_ToC(), MSStateHandler::myEndElement(), MSRouteHandler::myStartElement(), MSStateHandler::myStartElement(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), MSDevice_Bluelight::notifyMove(), GUIApplicationWindow::onCmdDemandScale(), GUISUMOViewParent::onCmdLocate(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdRemoveObject(), MSBaseVehicle::onDepart(), GUIViewTraffic::onGamingClick(), MSRouteHandler::openRoute(), MSRouteHandler::openVehicleTypeDistribution(), MSStageDriving::proceed(), MSDevice_SSM::processEncounters(), MSVehicle::processNextStop(), TraCIServerAPI_GUI::processSet(), TraCIServerAPI_Vehicle::processSet(), MESegment::receive(), METriggeredCalibrator::remainingVehicleCapacity(), MSCalibrator::remainingVehicleCapacity(), LIBSUMO_NAMESPACE::Vehicle::remove(), MSCalibrator::removePending(), MSBaseVehicle::replaceVehicleType(), MSTransportable::replaceVehicleType(), MSVehicle::resumeFromStopping(), MSStateHandler::saveState(), MSVehicleType::setActionStepLength(), MSStageTrip::setArrived(), libsumo::Calibrator::setFlow(), MSDevice_ToC::setParameter(), MSCFModel_CC::setParameter(), GUINet::setSimDuration(), LIBSUMO_NAMESPACE::Person::setType(), LIBSUMO_NAMESPACE::Vehicle::setType(), MSDevice_ToC::switchHolderType(), MELoop::teleportVehicle(), MSDetectorFileOutput::vehicleApplies(), MSTriggeredRerouter::vehicleApplies(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSAmitranTrajectories::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSElecHybridExport::writeAggregated(), 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 1009 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 710 of file MSNet.h.
References myHasBidiEdges.
|
inline |
Returns whether containers are simulated.
Definition at line 404 of file MSNet.h.
References myContainerControl.
Referenced by MSRouteHandler::addFlowPerson(), MSVehicle::boardTransportables(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), GUIApplicationWindow::handleEvent_SimulationStep(), and MEVehicle::processStop().
|
inline |
return whether the network contains elevation data
Definition at line 700 of file MSNet.h.
References myHasElevation.
Referenced by MSVTypeProbe::execute().
|
inlinestatic |
Returns whether the network was already constructed.
Definition at line 154 of file MSNet.h.
References myInstance.
Referenced by LIBSUMO_NAMESPACE::Simulation::close(), MSVehicle::Influencer::GapControlState::init(), LIBSUMO_NAMESPACE::Simulation::isLoaded(), libsumo::Helper::registerVehicleStateListener(), and signalHandler().
|
inline |
return whether the network contains internal links
Definition at line 695 of file MSNet.h.
References myHasInternalLinks.
Referenced by closeBuilding(), MSTrafficLightLogic::init(), MSTriggeredRerouter::rerouteParkingArea(), MSPModel_Remote::usingInternalLanes(), MSPModel_Striping::usingInternalLanesStatic(), and MSDevice_Vehroutes::writeOutput().
|
inline |
return whether the network contains walkingareas and crossings
Definition at line 705 of file MSNet.h.
References myHasPedestrianNetwork.
Referenced by MSPModel_Striping::getNextLane().
|
inline |
Returns whether the network has specific vehicle class permissions.
Definition at line 207 of file MSNet.h.
References myHavePermissions.
|
inline |
Returns whether persons are simulated.
Definition at line 388 of file MSNet.h.
References myPersonControl.
Referenced by MSVehicle::boardTransportables(), MSRouteHandler::closeContainer(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSDevice_Vehroutes::generateOutputForUnfinished(), MSLink::getLeaderInfo(), LIBSUMO_NAMESPACE::Simulation::getMinExpectedNumber(), GUIApplicationWindow::handleEvent_SimulationStep(), MSLane::hasPedestrians(), and MEVehicle::processStop().
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 1071 of file MSNet.cpp.
References MSGlobals::gNumThreads, and myVehicleStateListeners.
Referenced by MSVehicleTransfer::add(), MSVehicleTransfer::checkInsertions(), MSVehicle::Manoeuvre::entryManoeuvreIsComplete(), MSVehicle::executeMove(), MSLane::handleCollisionBetween(), MSVehicleControl::initVehicle(), MSVehicle::processNextStop(), MSVehicleControl::removePending(), MSBaseVehicle::replaceRoute(), MSVehicle::resumeFromStopping(), and MSVehicleControl::vehicleDeparted().
|
static |
Place for static initializations of simulation components (called after successful net build)
Definition at line 179 of file MSNet.cpp.
References MSGlobals::gUseMesoSim, and MSVehicle::Influencer::init().
Referenced by MSNet().
|
inline |
Definition at line 722 of file MSNet.h.
References myAmInterrupted.
Referenced by signalHandler().
|
inlinevirtual |
|
inline |
Definition at line 726 of file MSNet.h.
References myAmInterrupted.
|
inlinevirtual |
return wheter the given logic (or rather it's wrapper) is selected in the GUI
Reimplemented in GUINet.
Definition at line 579 of file MSNet.h.
Referenced by MSTrafficLightLogic::isSelected().
void MSNet::loadRoutes | ( | ) |
loads routes for the next few steps
Definition at line 410 of file MSNet.cpp.
References SUMORouteLoaderControl::loadNext(), myRouteLoaders, and myStep.
Referenced by NLBuilder::init(), GUIRunThread::init(), and simulationStep().
bool MSNet::logSimulationDuration | ( | ) | const |
Returns whether duration shall be logged.
Definition at line 980 of file MSNet.cpp.
References myLogExecutionTime.
Referenced by GUINet::getParameterWindow().
MSDynamicShapeUpdater * MSNet::makeDynamicShapeUpdater | ( | ) |
Creates and returns a dynamic shapes updater.
Definition at line 1003 of file MSNet.cpp.
References myDynamicShapeUpdater, and myShapeContainer.
Referenced by libsumo::Polygon::addDynamics().
void MSNet::postSimStepOutput | ( | ) | const |
Prints the statistics of the step at its end.
Called on the end of a simulation step
Definition at line 1024 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 1018 of file MSNet.cpp.
References myStep, and time2string().
Referenced by simulate().
void MSNet::removeVehicleStateListener | ( | VehicleStateListener * | listener | ) |
Removes a vehicle states listener.
[in] | listener | The listener to remove |
Definition at line 1062 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 321 of file MSNet.h.
References myStep.
Referenced by GUIRunThread::init(), and LIBSUMO_NAMESPACE::Simulation::load().
|
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 368 of file MSNet.cpp.
References adaptToState(), closeSimulation(), getStateMessage(), myLogStepNumber, myLogStepPeriod, myStep, postSimStepOutput(), preSimStepOutput(), SIMSTATE_RUNNING, SIMTIME, simulationState(), simulationStep(), time2string(), and WRITE_MESSAGE.
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 667 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 | ( | ) |
Performs a single simulation step.
Definition at line 540 of file MSNet.cpp.
References MSEdgeControl::changeLanes(), MSTLLogicControl::check2Switch(), MSVehicleTransfer::checkInsertions(), MSTransportableControl::checkWaiting(), DELTA_T, MSEdgeControl::detectCollisions(), MSInsertionControl::determineCandidates(), MSInsertionControl::emitVehicles(), MSEventControl::execute(), MSEdgeControl::executeMovements(), MSGlobals::gCheck4Accidents, SysUtils::getCurrentMillis(), MSVehicleTransfer::getInstance(), TraCIServer::getInstance(), MSTransportableControl::getRunningNumber(), MSVehicleControl::getRunningVehicleNo(), TraCIServer::getTargetTime(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, MSTransportableControl::hasTransportables(), loadRoutes(), myBeginOfTimestepEvents, myContainerControl, myEdges, myEndOfTimestepEvents, myInserter, myInsertionEvents, myLogExecutionTime, myLogics, myPersonControl, myPersonsMoved, mySimStepDuration, myStateDumpFiles, myStateDumpPeriod, myStateDumpPrefix, myStateDumpSuffix, myStateDumpTimes, myStep, myTraCIStepDuration, myVehicleControl, myVehiclesMoved, MSEdgeControl::patchActiveLanes(), MSEdgeControl::planMovements(), libsumo::Helper::postProcessRemoteControl(), TraCIServer::processCommandsUntilSimStep(), MSRailSignal::recheckGreen(), MSVehicleControl::removePending(), MSStateHandler::saveState(), MSEdgeControl::setJunctionApproaches(), SIMTIME, MELoop::simulate(), STAGE_EVENTS, STAGE_INSERTIONS, STAGE_LANECHANGE, STAGE_MOVEMENTS, time2string(), TraCIServer::wasClosed(), and writeOutput().
Referenced by simulate(), GUINet::simulationStep(), and LIBSUMO_NAMESPACE::Simulation::step().
bool MSNet::warnOnce | ( | const std::string & | typeAndID | ) |
return whether a warning regarding the given object shall be issued
Definition at line 1355 of file MSNet.cpp.
References myWarnedOnce.
Referenced by MSBaseVehicle::addStop().
void MSNet::writeChargingStationOutput | ( | ) | const |
write charging station output
Definition at line 1132 of file MSNet.cpp.
References OutputDevice::getDeviceByOption(), myStoppingPlaces, and SUMO_TAG_CHARGING_STATION.
Referenced by closeSimulation().
void MSNet::writeOutput | ( | ) |
Write netstate, summary and detector output.
Definition at line 805 of file MSNet.cpp.
References OutputDevice::closeTag(), DELTA_T, MSTransportableControl::getArrivedNumber(), MSVehicleControl::getArrivedVehicleNo(), OptionsCont::getBool(), MSVehicleControl::getCollisionCount(), MSTransportableControl::getDepartedNumber(), MSVehicleControl::getDepartedVehicleNo(), OutputDevice::getDevice(), SUMOVehicle::getDevice(), OutputDevice::getDeviceByOption(), MSEdgeControl::getEdges(), MSTransportableControl::getEndedNumber(), MSVehicleControl::getEndedVehicleNo(), MSVehicleControl::getHaltingVehicleNo(), Named::getID(), getInstance(), MSDevice_SSM::getInstances(), MSDevice_ToC::getInstances(), OptionsCont::getInt(), MSTransportableControl::getJammedNumber(), MSTransportableControl::getLoadedNumber(), MSVehicleControl::getLoadedVehicleNo(), MSDevice_ElecHybrid::getMaximumBatteryCapacity(), MSTransportableControl::getMovingNumber(), OptionsCont::getOptions(), getPersonControl(), MSTransportableControl::getRidingNumber(), MSVehicleControl::getRunningVehicleNo(), MSVehicleControl::getStoppedVehiclesCount(), OptionsCont::getString(), MSVehicleControl::getTeleportCount(), MSVehicleControl::getTotalDepartureDelay(), MSVehicleControl::getTotalTravelTime(), getVehicleControl(), MSVehicleControl::getVehicleMeanSpeeds(), MSTransportableControl::getWaitingForVehicleNumber(), MSTransportableControl::getWaitingUntilNumber(), MSInsertionControl::getWaitingVehicleNo(), SUMOVehicle::isOnRoad(), OptionsCont::isSet(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), myDetectorControl, myEdges, myHasElevation, myInserter, myLogExecutionTime, mySimStepDuration, myStep, myVehicleControl, OutputDevice::openTag(), STEPS2TIME, SUMO_ATTR_ID, SUMO_ATTR_MAXIMUMBATTERYCAPACITY, SUMO_ATTR_VEHICLE, time2string(), toString(), MSDetectorControl::updateDetectors(), MSXMLRawOut::write(), MSAmitranTrajectories::write(), MSElecHybridExport::write(), MSFullExport::write(), MSQueueExport::write(), MSVTKExport::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSElecHybridExport::writeAggregated(), OutputDevice::writeAttr(), MSDetectorControl::writeOutput(), and OutputDevice::writeXMLHeader().
Referenced by simulationStep().
void MSNet::writeOverheadWireSegmentOutput | ( | ) | const |
write the output generated by an overhead wire segment
Definition at line 1155 of file MSNet.cpp.
References OutputDevice::getDeviceByOption(), myStoppingPlaces, and SUMO_TAG_OVERHEAD_WIRE_SEGMENT.
Referenced by closeSimulation(), and writeSubstationOutput().
void MSNet::writeRailSignalBlocks | ( | ) | const |
write rail signal block output
Definition at line 1143 of file MSNet.cpp.
References MSTLLogicControl::getAllLogics(), OutputDevice::getDeviceByOption(), myLogics, and MSRailSignal::writeBlocks().
Referenced by closeSimulation().
void MSNet::writeStatistics | ( | ) | const |
write statistic output to (xml) file
Definition at line 475 of file MSNet.cpp.
References OutputDevice::closeTag(), MSVehicleControl::getCollisionCount(), MSVehicleControl::getDepartedVehicleNo(), OutputDevice::getDeviceByOption(), MSVehicleControl::getEmergencyStops(), MSTransportableControl::getJammedNumber(), MSTransportableControl::getLoadedNumber(), MSVehicleControl::getLoadedVehicleNo(), OptionsCont::getOptions(), MSTransportableControl::getRunningNumber(), MSVehicleControl::getRunningVehicleNo(), MSVehicleControl::getTeleportCount(), MSVehicleControl::getTeleportsJam(), MSVehicleControl::getTeleportsWrongLane(), MSVehicleControl::getTeleportsYield(), MSInsertionControl::getWaitingVehicleNo(), myInserter, myPersonControl, myVehicleControl, OutputDevice::openTag(), OutputDevice::writeAttr(), and MSDevice_Tripinfo::writeStatistics().
Referenced by closeSimulation().
void MSNet::writeSubstationOutput | ( | ) | const |
write electrical substation output
Definition at line 1166 of file MSNet.cpp.
References OutputDevice::getDeviceByOption(), myStoppingPlaces, SUMO_TAG_OVERHEAD_WIRE_SEGMENT, and writeOverheadWireSegmentOutput().
Referenced by closeSimulation().
|
protected |
whether an interrupt occured
Definition at line 760 of file MSNet.h.
Referenced by interrupt(), isInterrupted(), and simulationState().
|
protected |
Controls events executed at the begin of a time step;.
Definition at line 784 of file MSNet.h.
Referenced by clearState(), getBeginOfTimestepEvents(), MSNet(), simulationStep(), and ~MSNet().
|
protected |
Controls container building and deletion;.
Definition at line 772 of file MSNet.h.
Referenced by adaptToState(), getContainerControl(), GUINet::getContainerControl(), hasContainers(), MSNet(), simulationState(), simulationStep(), and ~MSNet().
|
protected |
Controls detectors;.
Definition at line 782 of file MSNet.h.
Referenced by clearState(), closeSimulation(), getDetectorControl(), 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 900 of file MSNet.h.
Referenced by getDynamicShapeUpdater(), and makeDynamicShapeUpdater().
|
protected |
end of loaded edgeData
Definition at line 865 of file MSNet.h.
Referenced by GUINet::loadEdgeData(), and simulationState().
|
protected |
Controls edges, performs vehicle movement;.
Definition at line 774 of file MSNet.h.
Referenced by checkBidiEdges(), checkElevation(), checkWalkingarea(), closeBuilding(), getEdgeControl(), MSNet(), simulationStep(), writeOutput(), and ~MSNet().
|
protected |
The net's knowledge about edge efforts/travel times;.
Definition at line 792 of file MSNet.h.
Referenced by getWeightsStorage(), MSNet(), and ~MSNet().
|
protected |
Controls events executed at the end of a time step;.
Definition at line 786 of file MSNet.h.
Referenced by clearState(), getEndOfTimestepEvents(), MSNet(), simulationStep(), and ~MSNet().
|
protected |
Whether the network contains bidirectional rail edges.
Definition at line 856 of file MSNet.h.
Referenced by closeBuilding(), and hasBidiEdges().
|
protected |
Whether the network contains elevation data.
Definition at line 850 of file MSNet.h.
Referenced by closeBuilding(), hasElevation(), and writeOutput().
|
protected |
Whether the network contains internal links/lanes/edges.
Definition at line 847 of file MSNet.h.
Referenced by closeBuilding(), and hasInternalLinks().
|
protected |
Whether the network contains pedestrian network elements.
Definition at line 853 of file MSNet.h.
Referenced by closeBuilding(), and hasPedestrianNetwork().
|
protected |
Whether the network contains edges which not all vehicles may pass.
Definition at line 838 of file MSNet.h.
Referenced by hasPermissions(), and setPermissionsFound().
|
protected |
Controls vehicle insertion;.
Definition at line 780 of file MSNet.h.
Referenced by clearState(), generateStatistics(), getInsertionControl(), MSNet(), postSimStepOutput(), simulationState(), simulationStep(), writeOutput(), writeStatistics(), and ~MSNet().
|
protected |
Controls insertion events;.
Definition at line 788 of file MSNet.h.
Referenced by clearState(), getInsertionEvents(), MSNet(), simulationStep(), and ~MSNet().
|
staticprotected |
Unique instance of MSNet.
Definition at line 748 of file MSNet.h.
Referenced by adaptIntermodalRouter(), getInstance(), hasInstance(), MSNet(), and ~MSNet().
|
mutableprotected |
Definition at line 892 of file MSNet.h.
Referenced by getIntermodalRouter(), and ~MSNet().
|
protected |
Controls junctions, realizes right-of-way rules;.
Definition at line 776 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 801 of file MSNet.h.
Referenced by closeSimulation(), generateStatistics(), logSimulationDuration(), MSNet(), postSimStepOutput(), simulationStep(), and writeOutput().
|
protected |
Controls tls logics, realizes waiting on tls rules;.
Definition at line 778 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 804 of file MSNet.h.
Referenced by MSNet(), and simulate().
|
protected |
Period between successive step-log outputs.
Definition at line 806 of file MSNet.h.
Referenced by MSNet(), and simulate().
|
protected |
Maximum number of teleports.
Definition at line 757 of file MSNet.h.
Referenced by MSNet(), and simulationState().
|
protected |
The edge type specific meso parameters.
Definition at line 844 of file MSNet.h.
Referenced by addMesoType(), and getMesoType().
|
mutableprotected |
Definition at line 891 of file MSNet.h.
Referenced by getPedestrianRouter(), and ~MSNet().
|
protected |
Controls person building and deletion;.
Definition at line 770 of file MSNet.h.
Referenced by adaptToState(), generateStatistics(), GUINet::getParameterWindow(), getPersonControl(), GUINet::getPersonControl(), hasPersons(), MSNet(), simulationState(), simulationStep(), writeStatistics(), and ~MSNet().
|
protected |
Definition at line 816 of file MSNet.h.
Referenced by generateStatistics(), and simulationStep().
|
protected |
The vehicle class specific speed restrictions.
Definition at line 841 of file MSNet.h.
Referenced by addRestriction(), and getRestrictions().
|
protected |
Route loader for dynamic loading of routes.
Definition at line 751 of file MSNet.h.
Referenced by closeBuilding(), loadRoutes(), MSNet(), and ~MSNet().
|
mutableprotected |
Definition at line 890 of file MSNet.h.
Referenced by getRouterEffort(), and ~MSNet().
|
mutableprotected |
Definition at line 889 of file MSNet.h.
Referenced by getRouterTT(), and ~MSNet().
|
protected |
A container for geometrical shapes;.
Definition at line 790 of file MSNet.h.
Referenced by getShapeContainer(), makeDynamicShapeUpdater(), MSNet(), and ~MSNet().
|
protected |
The overall simulation duration.
Definition at line 812 of file MSNet.h.
Referenced by closeBuilding(), and generateStatistics().
|
protected |
Definition at line 809 of file MSNet.h.
Referenced by postSimStepOutput(), simulationStep(), and writeOutput().
|
protected |
The names for the state files.
Definition at line 827 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
The period for writing state.
Definition at line 829 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
name components for periodic state
Definition at line 831 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
Definition at line 832 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
Times at which a state shall be written.
Definition at line 825 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
Current time step.
Definition at line 754 of file MSNet.h.
Referenced by clearState(), closeSimulation(), generateStatistics(), getCurrentTimeStep(), loadRoutes(), MSNet(), postSimStepOutput(), preSimStepOutput(), setCurrentTimeStep(), simulate(), simulationState(), simulationStep(), and writeOutput().
|
protected |
Dictionary of bus / container stops.
Definition at line 868 of file MSNet.h.
Referenced by adaptIntermodalRouter(), addStoppingPlace(), clearState(), getStoppingPlace(), getStoppingPlaceID(), getStoppingPlaces(), writeChargingStationOutput(), writeOverheadWireSegmentOutput(), and writeSubstationOutput().
|
protected |
The last simulation step duration.
Definition at line 809 of file MSNet.h.
Referenced by postSimStepOutput(), and simulationStep().
|
protected |
Dictionary of traction substations.
Definition at line 871 of file MSNet.h.
Referenced by addTractionSubstation(), existTractionSubstation(), and findTractionSubstation().
|
protected |
Controls vehicle building and deletion;.
Definition at line 768 of file MSNet.h.
Referenced by adaptToState(), clearState(), generateStatistics(), GUINet::getGUIMEVehicleControl(), GUINet::getGUIVehicleControl(), getVehicleControl(), MSNet(), postSimStepOutput(), simulationState(), simulationStep(), GUINet::vehicleExists(), writeOutput(), writeStatistics(), and ~MSNet().
|
protected |
The overall number of vehicle movements.
Definition at line 815 of file MSNet.h.
Referenced by generateStatistics(), GUINet::getMeanUPS(), and simulationStep().
|
protected |
Container for vehicle state listener.
Definition at line 874 of file MSNet.h.
Referenced by addVehicleStateListener(), informVehicleStateListener(), and removeVehicleStateListener().
|
protected |
the network version
Definition at line 862 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 882 of file MSNet.h.
Referenced by warnOnce().
|
staticprotected |
string constants for simstep stages
Definition at line 904 of file MSNet.h.
Referenced by simulationStep().
|
staticprotected |
Definition at line 907 of file MSNet.h.
Referenced by simulationStep().
|
staticprotected |
Definition at line 906 of file MSNet.h.
Referenced by simulationStep().
|
staticprotected |
Definition at line 905 of file MSNet.h.
Referenced by simulationStep().