![]() |
SUMO - Simulation of Urban MObility
|
The simulated network and simulation perfomer. More...
#include <MSNet.h>
Data Structures | |
class | VehicleStateListener |
Interface for objects listening to vehicle state changes. More... | |
Public Types | |
typedef PedestrianRouterDijkstra< MSEdge, MSLane, MSJunction, MSVehicle > | MSPedestrianRouterDijkstra |
enum | SimulationState { SIMSTATE_LOADING, SIMSTATE_RUNNING, SIMSTATE_END_STEP_REACHED, SIMSTATE_NO_FURTHER_VEHICLES, SIMSTATE_CONNECTION_CLOSED, SIMSTATE_ERROR_IN_SIM, SIMSTATE_TOO_MANY_TELEPORTS } |
Possible states of a simulation - running or stopped with different reasons. More... | |
Public Member Functions | |
void | addRestriction (const std::string &id, const SUMOVehicleClass svc, const double speed) |
Adds a restriction for an edge type. More... | |
void | closeBuilding (const OptionsCont &oc, MSEdgeControl *edges, MSJunctionControl *junctions, SUMORouteLoaderControl *routeLoaders, MSTLLogicControl *tlc, std::vector< SUMOTime > stateDumpTimes, std::vector< std::string > stateDumpFiles, bool hasInternalLinks, bool hasNeighs, bool lefthand, double version) |
Closes the network's building process. More... | |
void | closeSimulation (SUMOTime start) |
Closes the simulation (all files, connections, etc.) More... | |
SUMOTime | getCurrentTimeStep () const |
Returns the current simulation step. More... | |
const NamedRTree & | getLanesRTree () const |
Returns an RTree that contains lane IDs. More... | |
MSPedestrianRouterDijkstra & | getPedestrianRouter (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 MSEdgeVector &prohibited=MSEdgeVector()) const |
SUMOAbstractRouter< MSEdge, SUMOVehicle > & | getRouterTT (const MSEdgeVector &prohibited=MSEdgeVector()) const |
bool | hasElevation () const |
return whether the network contains elevation data More... | |
bool | hasInternalLinks () const |
return whether the network contains internal links More... | |
bool | hasNeighs () const |
return whether the network contains explicit neighbor lanes More... | |
bool | hasPermissions () const |
Returns whether the network has specific vehicle class permissions. More... | |
bool | lefthand () const |
return whether the network was built for lefthand traffic More... | |
void | loadRoutes () |
loads routes for the next few steps More... | |
bool | logSimulationDuration () const |
Returns whether duration shall be logged. More... | |
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 |
Called after a simulation step, this method returns the current simulation state. More... | |
void | simulationStep () |
Performs a single simulation step. More... | |
double | version () const |
return the network version More... | |
void | writeOutput () |
Write netstate, summary and detector 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... | |
MSEdgeWeightsStorage & | getWeightsStorage () |
Returns the net's internal edge travel times/efforts container. More... | |
Insertion and retrieval of bus stops | |
bool | addBusStop (MSStoppingPlace *busStop) |
Adds a bus stop. More... | |
MSStoppingPlace * | getBusStop (const std::string &id) const |
Returns the named bus stop. More... | |
std::string | getBusStopID (const MSLane *lane, const double pos) const |
Returns the bus stop close to the given position. More... | |
Insertion and retrieval of container stops | |
bool | addContainerStop (MSStoppingPlace *containerStop) |
Adds a container stop. More... | |
MSStoppingPlace * | getContainerStop (const std::string &id) const |
Returns the named container stop. More... | |
std::string | getContainerStopID (const MSLane *lane, const double pos) const |
Returns the container stop close to the given position. More... | |
Insertion and retrieval of parking areas | |
bool | addParkingArea (MSParkingArea *parkingArea) |
Adds a parking area. More... | |
MSParkingArea * | getParkingArea (const std::string &id) const |
Returns the named parking area. More... | |
std::string | getParkingAreaID (const MSLane *lane, const double pos) const |
Returns the parking area close to the given position. More... | |
Insertion and retrieval of charging stations | |
bool | addChargingStation (MSChargingStation *chargingStation) |
Adds a chargingg station. More... | |
MSChargingStation * | getChargingStation (const std::string &id) const |
Returns the named charging station. More... | |
std::string | getChargingStationID (const MSLane *lane, const double pos) const |
Returns the charging station close to the given position. More... | |
void | writeChargingStationOutput () const |
write charging station output More... | |
Static Public Member Functions | |
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... | |
Protected Member Functions | |
bool | checkElevation () |
check all lanes for elevation data More... | |
Protected Attributes | |
NamedObjectCont< MSStoppingPlace * > | myBusStopDict |
Dictionary of bus stops. More... | |
NamedObjectCont< MSChargingStation * > | myChargingStationDict |
Dictionary of charging Stations. More... | |
NamedObjectCont< MSStoppingPlace * > | myContainerStopDict |
Dictionary of container stops. More... | |
bool | myHasElevation |
Whether the network contains elevation data. More... | |
bool | myHasInternalLinks |
Whether the network contains internal links/lanes/edges. More... | |
bool | myHasNeighs |
Whether the network contains explicit neighbor lanes. More... | |
bool | myHavePermissions |
Whether the network contains edges which not all vehicles may pass. More... | |
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... | |
NamedObjectCont< MSParkingArea * > | myParkingAreaDict |
Dictionary of parking areas. More... | |
MSPedestrianRouterDijkstra * | 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... | |
DijkstraRouterEffort< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > > * | myRouterEffort |
AStarRouter< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > > * | myRouterTTAStar |
DijkstraRouterTT< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > > * | myRouterTTDijkstra |
bool | myRouterTTInitialized |
SUMOTime | myStep |
Current time step. More... | |
std::vector< VehicleStateListener * > | myVehicleStateListeners |
Container for vehicle state listener. More... | |
double | myVersion |
the network version 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... | |
long | myTraCIStepDuration |
The last simulation step duration. More... | |
long | mySimStepDuration |
long | mySimBeginMillis |
The overall simulation duration. More... | |
long long int | myVehiclesMoved |
The overall number of vehicle movements. More... | |
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 = 0 |
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 } |
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) |
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.
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 166 of file MSNet.cpp.
References OptionsCont::getBool(), OptionsCont::getInt(), OptionsCont::getOptions(), OptionsCont::getString(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, myBeginOfTimestepEvents, myContainerControl, myDetectorControl, myEdges, myEdgeWeights, myEndOfTimestepEvents, myInserter, myInsertionEvents, myInstance, myJunctions, myLanesRTree, myLogExecutionTime, myLogics, myLogStepNumber, myMaxTeleports, myPersonControl, myRouteLoaders, myShapeContainer, myStep, myVehicleControl, and string2time().
|
virtual |
Destructor.
Definition at line 246 of file MSNet.cpp.
References clearAll(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, myBeginOfTimestepEvents, myContainerControl, myDetectorControl, myEdges, myEdgeWeights, myEndOfTimestepEvents, myInserter, myInsertionEvents, myInstance, myJunctions, myLanesRTree, myLogics, myPedestrianRouter, myPersonControl, myRouteLoaders, myRouterEffort, myRouterTTAStar, myRouterTTDijkstra, myShapeContainer, and myVehicleControl.
|
private |
Invalidated copy constructor.
bool MSNet::addBusStop | ( | MSStoppingPlace * | busStop | ) |
Adds a bus stop.
If another bus stop with the same id exists, false is returned. Otherwise, the bus stop is added to the internal bus stop container "myBusStopDict".
This control gets responsible for deletion of the added bus stop.
[in] | busStop | The bus stop to add |
Definition at line 821 of file MSNet.cpp.
References NamedObjectCont< T >::add(), Named::getID(), and myBusStopDict.
Referenced by GUITriggerBuilder::buildStoppingPlace(), NLTriggerBuilder::buildStoppingPlace(), and getShapeContainer().
bool MSNet::addChargingStation | ( | MSChargingStation * | chargingStation | ) |
Adds a chargingg station.
If another charging station with the same id exists, false is returned. Otherwise, the charging station is added to the internal bus stop container "myChargingStationDict".
This control gets responsible for deletion of the added charging station.
[in] | chargingStation | The charging station add |
Definition at line 891 of file MSNet.cpp.
References NamedObjectCont< T >::add(), Named::getID(), and myChargingStationDict.
Referenced by GUITriggerBuilder::buildChargingStation(), NLTriggerBuilder::buildChargingStation(), and getShapeContainer().
bool MSNet::addContainerStop | ( | MSStoppingPlace * | containerStop | ) |
Adds a container stop.
If another container stop with the same id exists, false is returned. Otherwise, the container stop is added to the internal container stop container "myContainerStopDict".
This control gets responsible for deletion of the added container stop.
[in] | containerStop | The container stop to add |
Definition at line 846 of file MSNet.cpp.
References NamedObjectCont< T >::add(), Named::getID(), and myContainerStopDict.
Referenced by GUITriggerBuilder::buildStoppingPlace(), NLTriggerBuilder::buildStoppingPlace(), and getShapeContainer().
bool MSNet::addParkingArea | ( | MSParkingArea * | parkingArea | ) |
Adds a parking area.
If another parking area with the same id exists, false is returned. Otherwise, the parking area is added to the internal parking area container "myParkingAreaDict".
This control gets responsible for deletion of the added parking area.
[in] | parkingArea | The parking area to add |
Definition at line 869 of file MSNet.cpp.
References NamedObjectCont< T >::add(), Named::getID(), and myParkingAreaDict.
Referenced by GUITriggerBuilder::beginParkingArea(), NLTriggerBuilder::beginParkingArea(), and getShapeContainer().
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 288 of file MSNet.cpp.
References myRestrictions.
Referenced by NLHandler::myStartElement(), and setPermissionsFound().
void MSNet::addVehicleStateListener | ( | VehicleStateListener * | listener | ) |
Adds a vehicle states listener.
[in] | listener | The listener to add |
Definition at line 794 of file MSNet.cpp.
References myVehicleStateListeners.
Referenced by MSDevice_Vehroutes::init(), TraCIServer::TraCIServer(), and MSNet::VehicleStateListener::~VehicleStateListener().
|
protected |
check all lanes for elevation data
Definition at line 983 of file MSNet.cpp.
References MSEdgeControl::getEdges(), and myEdges.
Referenced by closeBuilding(), and version().
|
static |
Clears all dictionaries.
Definition at line 593 of file MSNet.cpp.
References MSTrigger::cleanup(), MSPModel::cleanup(), MSCModel_NonInteracting::cleanup(), MSCalibrator::cleanup(), MSDevice_BTsender::cleanup(), MSDevice_Routing::cleanup(), TraCIServer::cleanup(), MSDevice_SSM::cleanup(), MSRoute::clear(), MSLane::clear(), MSEdge::clear(), TraCIServer::getInstance(), and MSVehicleTransfer::getInstance().
Referenced by GUILoadThread::run(), setPermissionsFound(), and ~MSNet().
void MSNet::closeBuilding | ( | const OptionsCont & | oc, |
MSEdgeControl * | edges, | ||
MSJunctionControl * | junctions, | ||
SUMORouteLoaderControl * | routeLoaders, | ||
MSTLLogicControl * | tlc, | ||
std::vector< SUMOTime > | stateDumpTimes, | ||
std::vector< std::string > | stateDumpFiles, | ||
bool | hasInternalLinks, | ||
bool | hasNeighs, | ||
bool | lefthand, | ||
double | version | ||
) |
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] | lefthand | Whether the network was built for left-hand traffic |
[in] | version | The network version |
Definition at line 211 of file MSNet.cpp.
References checkElevation(), SysUtils::getCurrentMillis(), OptionsCont::getString(), hasInternalLinks(), hasNeighs(), lefthand(), myEdges, myHasElevation, myHasInternalLinks, myHasNeighs, myJunctions, myLefthand, myLogExecutionTime, myLogics, myRouteLoaders, mySimBeginMillis, myStateDumpFiles, myStateDumpPeriod, myStateDumpPrefix, myStateDumpSuffix, myStateDumpTimes, myVersion, MSJunctionControl::postloadInitContainer(), string2time(), and version().
Referenced by NLBuilder::buildNet().
void MSNet::closeSimulation | ( | SUMOTime | start | ) |
Closes the simulation (all files, connections, etc.)
Writes also performance output
[in] | start | The step the simulation was started with |
Definition at line 358 of file MSNet.cpp.
References MSDetectorControl::close(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSDevice_Vehroutes::generateOutputForUnfinished(), 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(), myDetectorControl, myInserter, myLogExecutionTime, myPersonControl, mySimBeginMillis, myStep, myVehicleControl, myVehiclesMoved, MSDevice_Tripinfo::printStatistics(), STEPS2TIME, toString(), WRITE_MESSAGE, and writeChargingStationOutput().
Referenced by GUIRunThread::deleteSim(), setPermissionsFound(), and simulate().
|
inline |
Returns the event control for events executed at the begin of a time step.
Definition at line 403 of file MSNet.h.
References myBeginOfTimestepEvents.
Referenced by MSPModel_NonInteracting::add(), MSCModel_NonInteracting::add(), NLTriggerBuilder::buildVaporizer(), MSPhasedTrafficLightLogic::changeStepAndDuration(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSTLLogicControl::closeWAUT(), MSLaneSpeedTrigger::init(), MSPModel_Striping::MSPModel_Striping(), MSTrafficLightLogic::MSTrafficLightLogic(), MSTriggeredRerouter::myEndElement(), MSDevice_Routing::notifyEnter(), and MSTriggeredRerouter::setPermissions().
MSStoppingPlace * MSNet::getBusStop | ( | const std::string & | id | ) | const |
Returns the named bus stop.
[in] | id | The id of the bus stop to return. |
Definition at line 827 of file MSNet.cpp.
References NamedObjectCont< T >::get(), and myBusStopDict.
Referenced by MSRouteHandler::addStop(), MSVehicle::addStop(), MSVehicle::addTraciStopAtStoppingPlace(), getShapeContainer(), MSRouteHandler::myStartElement(), MSRouteHandler::parseWalkPositions(), TraCIServerAPI_Simulation::processGet(), and TraCIServerAPI_Person::processSet().
std::string MSNet::getBusStopID | ( | const MSLane * | lane, |
const double | pos | ||
) | const |
Returns the bus stop close to the given position.
[in] | lane | the lane of the bus stop to return. |
[in] | pos | the position of the bus stop to return. |
Definition at line 833 of file MSNet.cpp.
References MSStoppingPlace::getEndLanePosition(), Named::getID(), MSStoppingPlace::getLane(), NamedObjectCont< T >::getMyMap(), myBusStopDict, and POSITION_EPS.
Referenced by getShapeContainer().
MSChargingStation * MSNet::getChargingStation | ( | const std::string & | id | ) | const |
Returns the named charging station.
[in] | id | The id of the charging station to return. |
Definition at line 897 of file MSNet.cpp.
References NamedObjectCont< T >::get(), and myChargingStationDict.
Referenced by MSRouteHandler::addStop(), MSVehicle::addStop(), MSVehicle::addTraciStopAtStoppingPlace(), getShapeContainer(), and MSDevice_Battery::notifyMove().
std::string MSNet::getChargingStationID | ( | const MSLane * | lane, |
const double | pos | ||
) | const |
Returns the charging station close to the given position.
[in] | lane | the lane of the charging station to return. |
[in] | pos | the position of the bus stop to return. |
Definition at line 903 of file MSNet.cpp.
References MSStoppingPlace::getBeginLanePosition(), MSStoppingPlace::getEndLanePosition(), Named::getID(), MSStoppingPlace::getLane(), NamedObjectCont< T >::getMyMap(), and myChargingStationDict.
Referenced by getShapeContainer(), and MSDevice_Battery::notifyMove().
|
virtual |
Returns the container control.
If the container control does not exist, yet, it is created.
Reimplemented in GUINet.
Definition at line 738 of file MSNet.cpp.
References myContainerControl.
Referenced by MSRouteHandler::closeContainer(), hasPersons(), MSContainer::MSContainerStage_Tranship::moveToNextEdge(), MSDevice_Transportable::notifyLeave(), MSDevice_Transportable::notifyMove(), MSContainer::MSContainerStage_Driving::proceed(), MSTransportable::Stage_Waiting::proceed(), and MSVehicle::processNextStop().
MSStoppingPlace * MSNet::getContainerStop | ( | const std::string & | id | ) | const |
Returns the named container stop.
[in] | id | The id of the container stop to return. |
Definition at line 851 of file MSNet.cpp.
References NamedObjectCont< T >::get(), and myContainerStopDict.
Referenced by MSRouteHandler::addStop(), MSVehicle::addStop(), MSVehicle::addTraciStopAtStoppingPlace(), getShapeContainer(), and MSRouteHandler::myStartElement().
std::string MSNet::getContainerStopID | ( | const MSLane * | lane, |
const double | pos | ||
) | const |
Returns the container stop close to the given position.
[in] | lane | the lane of the container stop to return. |
[in] | pos | the position of the container stop to return. |
Definition at line 856 of file MSNet.cpp.
References MSStoppingPlace::getEndLanePosition(), Named::getID(), MSStoppingPlace::getLane(), NamedObjectCont< T >::getMyMap(), myContainerStopDict, and POSITION_EPS.
Referenced by getShapeContainer().
|
inline |
Returns the current simulation step.
Definition at line 257 of file MSNet.h.
References myStep.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), GUIEdge::addRerouter(), MSDevice_Vehroutes::addRoute(), MSTLLogicControl::addWAUTJunction(), MSTransportableControl::boardAnyWaiting(), NLDetectorBuilder::buildE2Detector(), MSDevice_Routing::buildVehicleDevices(), NLJunctionControlBuilder::closeTrafficLightLogic(), MSTLLogicControl::closeWAUT(), TraCIServerAPI_Simulation::commandDistanceRequest(), MSDevice_Tripinfo::computeLengthAndDuration(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSActuatedTrafficLightLogic::duration(), Command_SaveTLCoupledLaneDet::execute(), Command_SaveTLCoupledDet::execute(), MSVehicle::executeMove(), MSActuatedTrafficLightLogic::gapControl(), MSTransportable::getAngle(), MSLane::getCriticalLeader(), MSInductLoop::getCurrentOccupancy(), MSSOTLTrafficLightLogic::getCurrentPhaseElapsed(), GUIApplicationWindow::getCurrentSimTime(), MSLaneSpeedTrigger::getCurrentSpeed(), GUIViewTraffic::getCurrentTimeStep(), MSEventControl::getCurrentTimeStep(), MSTransportable::getEdgePos(), MSLane::getFirstVehicleInformation(), MSLane::getLastVehicleInformation(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), TraCI_Lane::getLinks(), MESegment::getMeanSpeed(), MSInsertionControl::getPendingEmits(), MSTransportable::getPosition(), MSVehicle::getPosition(), MSTransportable::getWaitingSeconds(), MSLink::getZipperSpeed(), GUIApplicationWindow::handleEvent_SimulationStep(), MSSwarmTrafficLightLogic::init(), MSLaneSpeedTrigger::init(), TraCIServer::initialiseSubscription(), MSTLLogicControl::initWautSwitch(), MSLane::isInsertionSuccess(), MSVehicle::Influencer::isVTDControlled(), MSTransportableControl::loadAnyWaiting(), GUIRunThread::makeStep(), MSPModel_Striping::MSPModel_Striping(), MSDevice_Vehroutes::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Vehroutes::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Transportable::notifyMove(), GUIApplicationWindow::onCmdTimeToggle(), MSBaseVehicle::onDepart(), TraCIServer::postProcessSimulationStep2(), MESegment::prepareDetectorForWriting(), MSVehicle::processNextStop(), TraCIServerAPI_TLS::processSet(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_Person::processSet(), MSTriggeredRerouter::rerouteParkingZone(), MSSOTLTrafficLightLogic::resetCTS(), MSTrafficLightLogic::resetLinkStates(), GUIRunThread::run(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSPhasedTrafficLightLogic::setStep(), MSSOTLTrafficLightLogic::setupCTS(), simulate(), MSSimpleTrafficLightLogic::trySwitch(), MSDelayBasedTrafficLightLogic::trySwitch(), MSActuatedTrafficLightLogic::trySwitch(), MSSOTLTrafficLightLogic::trySwitch(), MSSOTLTrafficLightLogic::updateCTS(), MSRailCrossing::updateCurrentPhase(), MSSwarmTrafficLightLogic::updateSensitivities(), and MSVehicle::wasRemoteControlled().
|
inline |
Returns the detector control.
Definition at line 373 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(), TraCI_MultiEntryExit::getDetector(), TraCI_InductionLoop::getDetector(), TraCI_LaneArea::getDetector(), TraCI_LaneArea::getIDCount(), TraCI_MultiEntryExit::getIDCount(), TraCI_InductionLoop::getIDCount(), TraCI_MultiEntryExit::getIDList(), TraCI_LaneArea::getIDList(), TraCI_InductionLoop::getIDList(), TraCIServerAPI_InductionLoop::getPosition(), TraCIServerAPI_InductionLoop::getTree(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), and NLTriggerBuilder::parseAndBuildCalibrator().
|
inline |
Returns the edge control.
Definition at line 353 of file MSNet.h.
References myEdges.
Referenced by MSDevice_Routing::adaptEdgeEfforts(), NLBuilder::build(), MSDevice_Routing::buildVehicleDevices(), TraCIServerAPI_Simulation::convertCartesianToRoadMap(), TraCI::convertCartesianToRoadMap(), MSLane::incorporateVehicle(), MSMeanData::init(), MSFCDExport::write(), MSQueueExport::writeEdge(), and MSFullExport::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 127 of file MSNet.cpp.
References getInstance(), MSVehicle::getWeightsStorage(), getWeightsStorage(), and MSEdgeWeightsStorage::retrieveExistingEffort().
Referenced by getRouterEffort(), and MSNet::VehicleStateListener::~VehicleStateListener().
|
inline |
Returns the event control for events executed at the end of a time step.
Definition at line 413 of file MSNet.h.
References myEndOfTimestepEvents.
Referenced by MSDevice_BTreceiver::BTreceiverUpdate::BTreceiverUpdate(), MSDevice_Routing::buildVehicleDevices(), Command_SaveTLSState::Command_SaveTLSState(), Command_SaveTLSSwitches::Command_SaveTLSSwitches(), Command_SaveTLSSwitchStates::Command_SaveTLSSwitchStates(), MSCalibrator::init(), and MSVTypeProbe::MSVTypeProbe().
|
inline |
Returns the insertion control.
Definition at line 363 of file MSNet.h.
References myInserter.
Referenced by MSLane::checkFailure(), MSStateHandler::closeVehicle(), MSRouteHandler::closeVehicle(), GUIEdge::getColorValue(), GUILane::getColorValue(), GUINet::getParameterWindow(), GUIEdge::getScaleValue(), GUILane::getScaleValue(), GUIApplicationWindow::handleEvent_SimulationStep(), MSLane::isInsertionSuccess(), MSVehicleTransfer::loadState(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_Simulation::processSet(), and MSBaseVehicle::reroute().
|
inline |
Returns the event control for insertion events.
Definition at line 423 of file MSNet.h.
References myInsertionEvents.
Referenced by MSDevice_Routing::MSDevice_Routing().
|
static |
Returns the pointer to the unique instance of MSNet (singleton).
ProcessError | If a network was not yet constructed |
Definition at line 158 of file MSNet.cpp.
References myInstance.
Referenced by MSLCM_SL2015::_patchSpeed(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSDevice_Routing::adaptEdgeEfforts(), TraCI_Polygon::add(), TraCI_POI::add(), MSVehicleTransfer::add(), MSChargingStation::addChargeValueForOutput(), MSTrafficLightLogic::addLink(), MSTLLogicControl::TLSLogicVariants::addLogic(), GUIEdge::addRerouter(), MSDevice_Vehroutes::addRoute(), MSRouteHandler::addStop(), MSVehicle::addStop(), MSVehicle::addTraciStopAtStoppingPlace(), MSTLLogicControl::addWAUTJunction(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportableControl::boardAnyWaiting(), MSDevice_BTreceiver::BTreceiverUpdate::BTreceiverUpdate(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), MSVehicleType::buildSingularType(), NLTriggerBuilder::buildVaporizer(), MEVehicleControl::buildVehicle(), GUIMEVehicleControl::buildVehicle(), GUIVehicleControl::buildVehicle(), MSVehicleControl::buildVehicle(), MSDevice_Routing::buildVehicleDevices(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MELoop::changeSegment(), MSPhasedTrafficLightLogic::changeStepAndDuration(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSLane::checkFailure(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), MSRouteHandler::closeContainer(), MSRouteHandler::closeFlow(), MSRouteHandler::closePerson(), MSRouteHandler::closeRoute(), MSStateHandler::closeVehicle(), MSRouteHandler::closeVehicle(), MSRouteHandler::closeVehicleTypeDistribution(), MSTLLogicControl::closeWAUT(), Command_SaveTLSState::Command_SaveTLSState(), Command_SaveTLSSwitches::Command_SaveTLSSwitches(), Command_SaveTLSSwitchStates::Command_SaveTLSSwitchStates(), TraCIServerAPI_Simulation::commandDistanceRequest(), MSDevice_Tripinfo::computeLengthAndDuration(), TraCIServerAPI_Simulation::convertCartesianToRoadMap(), TraCI::convertCartesianToRoadMap(), NLDetectorBuilder::createEdgeLaneMeanData(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisions(), MSInsertionControl::determineCandidates(), TraCIServer::dispatchCommand(), GUITrafficLightLogicWrapper::drawGL(), GUIBusStop::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GUILane::drawLinkNo(), GUILane::drawLinkRules(), GUILane::drawMarkings(), GUILane::drawTLSLinkNo(), MSActuatedTrafficLightLogic::duration(), MSDevice::equippedByDefaultAssignmentOptions(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Command_SaveTLCoupledLaneDet::execute(), Command_SaveTLCoupledDet::execute(), MSVTypeProbe::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), MSActuatedTrafficLightLogic::gapControl(), MSTransportable::getAngle(), MSVehicle::getBackPositionOnLane(), GUIEdge::getColorValue(), GUILane::getColorValue(), MSLane::getCriticalLeader(), MSInductLoop::getCurrentLength(), MSInductLoop::getCurrentOccupancy(), MSInductLoop::getCurrentPassedNumber(), MSSOTLTrafficLightLogic::getCurrentPhaseElapsed(), MSLaneSpeedTrigger::getCurrentSpeed(), MSInductLoop::getCurrentSpeed(), GUIViewTraffic::getCurrentTimeStep(), MSEventControl::getCurrentTimeStep(), MSInductLoop::getCurrentVehicleIDs(), TraCI_MultiEntryExit::getDetector(), TraCI_InductionLoop::getDetector(), TraCI_LaneArea::getDetector(), MSTransportable::getEdgePos(), getEffort(), MSLane::getFirstVehicleInformation(), GUINet::getGUIInstance(), TraCI_LaneArea::getIDCount(), TraCI_MultiEntryExit::getIDCount(), TraCI_InductionLoop::getIDCount(), TraCI_VehicleType::getIDList(), TraCI_Polygon::getIDList(), TraCI_LaneArea::getIDList(), TraCI_MultiEntryExit::getIDList(), TraCI_InductionLoop::getIDList(), TraCI_POI::getIDList(), TraCI_Junction::getIDList(), TraCI_Vehicle::getIDList(), TraCI_Junction::getJunction(), MSLane::getLastVehicleInformation(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), TraCI_Lane::getLinks(), GUILane::getLoadedEdgeWeight(), MSLane::getMaximumBrakeDist(), MESegment::getMeanSpeed(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), MSPModel::getModel(), MSCModel_NonInteracting::getModel(), MSPModel_Striping::getNextLane(), MSInsertionControl::getPendingEmits(), MSTLLogicControl::getPhaseDef(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), TraCI_POI::getPoI(), TraCIServerAPI_POI::getPoI(), TraCI_Polygon::getPolygon(), TraCIServerAPI_Polygon::getPolygon(), TraCIServerAPI_InductionLoop::getPosition(), TraCIServerAPI_Vehicle::getPosition(), TraCIServerAPI_Person::getPosition(), MSTransportable::getPosition(), MSVehicle::getPosition(), MSVTKExport::getPositions(), GUIEdge::getScaleValue(), GUILane::getScaleValue(), MSVTKExport::getSpeed(), GUILane::getStoredEdgeTravelTime(), MSEdge::getSuccessors(), getTravelTime(), MSEdge::getTravelTimeStatic(), TraCIServerAPI_InductionLoop::getTree(), TraCIServerAPI_Junction::getTree(), TraCIServerAPI_POI::getTree(), TraCIServerAPI_Polygon::getTree(), TraCI_Vehicle::getVehicle(), TraCI_InductionLoop::getVehicleData(), TraCI_VehicleType::getVType(), MSTransportable::getWaitingSeconds(), MSLink::getZipperSpeed(), GUIBusStop::GUIBusStop(), MSLane::handleCollisionBetween(), MSLane::incorporateVehicle(), MSVehicle::influenceChangeDecision(), MSLCM_LC2013::inform(), MSLCM_SL2015::inform(), MSLCM_LC2013::informFollower(), MSLCM_SL2015::informFollower(), MSLCM_LC2013::informLeader(), MSLCM_SL2015::informLeader(), MSDevice_Vehroutes::init(), MSRailCrossing::init(), MSRailSignal::init(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), MSLaneSpeedTrigger::init(), MSCalibrator::init(), MSMeanData::init(), TraCIServer::initialiseSubscription(), MSLane::initRestrictions(), MSTLLogicControl::initWautSwitch(), MSEdge::insertVehicle(), MSLane::isInsertionSuccess(), MSSOTLTrafficLightLogic::isThresholdPassed(), MSVehicle::Influencer::isVTDControlled(), MSVehicle::leaveLane(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSTransportableControl::loadAnyWaiting(), MSVehicleTransfer::loadState(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSContainer::MSContainerStage_Tranship::moveToNextEdge(), MSDevice_Routing::MSDevice_Routing(), MSTrafficLightLogic::MSTrafficLightLogic(), MSVTypeProbe::MSVTypeProbe(), GUITriggeredRerouter::myEndElement(), MSRouteHandler::myEndElement(), MSTriggeredRerouter::myEndElement(), MSStateHandler::myStartElement(), MSRouteHandler::myStartElement(), MSCalibrator::myStartElement(), MSTriggeredRerouter::myStartElement(), MSDevice_Transportable::notifyEnter(), MSDevice_Vehroutes::notifyEnter(), MSCalibrator::VehicleRemover::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Routing::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Vehroutes::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Transportable::notifyMove(), MSDevice_Battery::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), GUISUMOViewParent::onCmdLocate(), MSBaseVehicle::onDepart(), GUIViewTraffic::onGamingClick(), TraCI_Vehicle::onInit(), MSRouteHandler::openVehicleTypeDistribution(), MSRouteHandler::parseWalkPositions(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), MSVehicle::planMoveInternal(), TraCIServer::postProcessSimulationStep2(), TraCIServer::postProcessVTD(), MESegment::prepareDetectorForWriting(), MSAbstractLaneChangeModel::primaryLaneChanged(), MSPerson::MSPersonStage_Walking::proceed(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Simulation::processGet(), MSVehicle::processNextStop(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_TLS::processSet(), TraCIServerAPI_GUI::processSet(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_Simulation::processSet(), TraCIServerAPI_Person::processSet(), MSPModel_Striping::PState::PState(), MESegment::receive(), METriggeredCalibrator::remainingVehicleCapacity(), MSCalibrator::remainingVehicleCapacity(), TraCI_Polygon::remove(), TraCI_POI::remove(), MSCalibrator::removePending(), MSTransportable::removeStage(), MSVehicle::replaceRoute(), MEVehicle::replaceRoute(), MSDevice_Routing::reroute(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingZone(), MSSOTLTrafficLightLogic::resetCTS(), MSTrafficLightLogic::resetLinkStates(), MSVehicle::resumeFromStopping(), MSContainer::routeOutput(), MSPerson::routeOutput(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSStateHandler::saveState(), MSVehicleControl::scheduleVehicleRemoval(), MSBaseVehicle::setDeviceParameter(), GUIBaseVehicle::setFunctionalColor(), MSLaneSpeedTrigger::setOverriding(), MSLaneSpeedTrigger::setOverridingValue(), MSTriggeredRerouter::setPermissions(), TraCI_Polygon::setShape(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSPhasedTrafficLightLogic::setStep(), MSSOTLTrafficLightLogic::setupCTS(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), MSLane::succLinkSec(), MSTLLogicControl::TLSLogicVariants::switchTo(), MELoop::teleportVehicle(), TraCIServer::TraCIServer(), METriggeredCalibrator::tryEmit(), MSInsertionControl::tryInsert(), MSSimpleTrafficLightLogic::trySwitch(), MSDelayBasedTrafficLightLogic::trySwitch(), MSRailCrossing::trySwitch(), MSActuatedTrafficLightLogic::trySwitch(), MSRailSignal::trySwitch(), MSSOTLTrafficLightLogic::trySwitch(), MSSOTLTrafficLightLogic::updateCTS(), MSRailCrossing::updateCurrentPhase(), MSSOTLTrafficLightLogic::updateDecayThreshold(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSAbstractLaneChangeModel::updateShadowLane(), MSVehicleControl::vehicleDeparted(), MSPModel_Striping::PState::walk(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSVehicle::wasRemoteControlled(), MSEmissionExport::write(), MSBatteryExport::write(), MSFCDExport::write(), MSAmitranTrajectories::write(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSQueueExport::writeEdge(), MSFullExport::writeEdge(), MSDevice_Vehroutes::writeOutput(), writeOutput(), MSFullExport::writeTLS(), MSFullExport::writeVehicles(), MSDevice_BTreceiver::BTreceiverUpdate::~BTreceiverUpdate(), and MSDevice_Routing::~MSDevice_Routing().
|
inline |
Returns the junctions control.
Definition at line 393 of file MSNet.h.
References myJunctions.
Referenced by TraCI_Junction::getIDList(), TraCI_Junction::getJunction(), and TraCIServerAPI_Junction::getTree().
const NamedRTree & MSNet::getLanesRTree | ( | ) | const |
Returns an RTree that contains lane IDs.
Definition at line 973 of file MSNet.cpp.
References MSLane::fill(), and myLanesRTree.
Referenced by MSNet::VehicleStateListener::~VehicleStateListener().
MSParkingArea * MSNet::getParkingArea | ( | const std::string & | id | ) | const |
Returns the named parking area.
[in] | id | The id of the parking area to return. |
Definition at line 874 of file MSNet.cpp.
References NamedObjectCont< T >::get(), and myParkingAreaDict.
Referenced by MSRouteHandler::addStop(), MSVehicle::addStop(), MSVehicle::addTraciStopAtStoppingPlace(), getShapeContainer(), and MSTriggeredRerouter::myStartElement().
std::string MSNet::getParkingAreaID | ( | const MSLane * | lane, |
const double | pos | ||
) | const |
Returns the parking area close to the given position.
[in] | lane | the lane of the parking area to return. |
[in] | pos | the position of the parking area to return. |
Definition at line 879 of file MSNet.cpp.
References MSStoppingPlace::getEndLanePosition(), Named::getID(), MSStoppingPlace::getLane(), NamedObjectCont< T >::getMyMap(), myParkingAreaDict, and POSITION_EPS.
Referenced by getShapeContainer().
MSNet::MSPedestrianRouterDijkstra & MSNet::getPedestrianRouter | ( | const MSEdgeVector & | prohibited = MSEdgeVector() | ) | const |
Definition at line 963 of file MSNet.cpp.
References myPedestrianRouter, and PedestrianRouter< E, L, N, V, INTERNALROUTER >::prohibit().
Referenced by MSPModel_Striping::getNextLane(), MSRouteHandler::myStartElement(), MSPModel_Striping::PState::PState(), and MSNet::VehicleStateListener::~VehicleStateListener().
|
virtual |
Returns the person control.
If the person control does not exist, yet, it is created.
Reimplemented in GUINet.
Definition at line 730 of file MSNet.cpp.
References myPersonControl.
Referenced by MSRouteHandler::closePerson(), TraCIServerAPI_Person::getPosition(), getVehicleControl(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSDevice_Transportable::notifyLeave(), MSDevice_Transportable::notifyMove(), GUISUMOViewParent::onCmdLocate(), MSPerson::MSPersonStage_Walking::proceed(), MSTransportable::Stage_Waiting::proceed(), MSPerson::MSPersonStage_Driving::proceed(), TraCIServerAPI_Person::processGet(), MSVehicle::processNextStop(), TraCIServerAPI_Person::processSet(), MSPModel_Striping::PState::walk(), and MSFCDExport::write().
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 294 of file MSNet.cpp.
References myRestrictions.
Referenced by MSLane::initRestrictions(), and setPermissionsFound().
SUMOAbstractRouter< MSEdge, SUMOVehicle > & MSNet::getRouterEffort | ( | const MSEdgeVector & | prohibited = MSEdgeVector() | ) | const |
Definition at line 952 of file MSNet.cpp.
References MSEdge::getAllEdges(), getEffort(), getTravelTime(), myRouterEffort, and prohibited_withPermissions< E, V >::prohibit().
Referenced by MSNet::VehicleStateListener::~VehicleStateListener().
SUMOAbstractRouter< MSEdge, SUMOVehicle > & MSNet::getRouterTT | ( | const MSEdgeVector & | prohibited = MSEdgeVector() | ) | const |
Definition at line 925 of file MSNet.cpp.
References MSEdge::getAllEdges(), OptionsCont::getOptions(), OptionsCont::getString(), getTravelTime(), myRouterTTAStar, myRouterTTDijkstra, myRouterTTInitialized, prohibited_withPermissions< E, V >::prohibit(), and WRITE_WARNING.
Referenced by TraCIServerAPI_Simulation::commandDistanceRequest(), MSTriggeredRerouter::notifyEnter(), TraCIServerAPI_Vehicle::processSet(), MSTriggeredRerouter::rerouteParkingZone(), and MSNet::VehicleStateListener::~VehicleStateListener().
|
inline |
Returns the shapes container.
Definition at line 433 of file MSNet.h.
References addBusStop(), addChargingStation(), addContainerStop(), addParkingArea(), getBusStop(), getBusStopID(), getChargingStation(), getChargingStationID(), getContainerStop(), getContainerStopID(), getParkingArea(), getParkingAreaID(), getWeightsStorage(), myShapeContainer, and writeChargingStationOutput().
Referenced by TraCI_Polygon::add(), TraCI_POI::add(), NLHandler::addDistrict(), NLBuilder::build(), TraCI_Polygon::getIDList(), TraCI_POI::getIDList(), TraCI_POI::getPoI(), TraCIServerAPI_POI::getPoI(), TraCI_Polygon::getPolygon(), TraCIServerAPI_Polygon::getPolygon(), TraCIServerAPI_POI::getTree(), TraCIServerAPI_Polygon::getTree(), GUISUMOViewParent::onCmdLocate(), GUIApplicationWindow::onCmdOpenShapes(), TraCI_Polygon::remove(), TraCI_POI::remove(), and TraCI_Polygon::setShape().
|
static |
Returns the message to show if a certain state occurs.
Definition at line 572 of file MSNet.cpp.
References SIMSTATE_CONNECTION_CLOSED, SIMSTATE_END_STEP_REACHED, SIMSTATE_ERROR_IN_SIM, SIMSTATE_NO_FURTHER_VEHICLES, SIMSTATE_RUNNING, and SIMSTATE_TOO_MANY_TELEPORTS.
Referenced by GUIApplicationWindow::handleEvent_SimulationEnded(), GUIRunThread::makeStep(), setPermissionsFound(), and simulate().
|
inline |
Returns the tls logics control.
Definition at line 383 of file MSNet.h.
References myLogics.
Referenced by NLBuilder::build(), NLDiscreteEventBuilder::buildSaveTLStateCommand(), NLDiscreteEventBuilder::buildSaveTLSwitchesCommand(), NLDiscreteEventBuilder::buildSaveTLSwitchStatesCommand(), NLJunctionControlBuilder::getTLLogicControlToUse(), GUINet::initTLMap(), GUIViewTraffic::onGamingClick(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_TLS::processSet(), 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 141 of file MSNet.cpp.
References getInstance(), MSEdge::getMinimumTravelTime(), MSVehicle::getWeightsStorage(), getWeightsStorage(), and MSEdgeWeightsStorage::retrieveExistingTravelTime().
Referenced by MSDevice_Routing::buildVehicleDevices(), getRouterEffort(), getRouterTT(), MSEdge::getTravelTimeStatic(), and MSNet::VehicleStateListener::~VehicleStateListener().
|
inline |
Returns the vehicle control.
Definition at line 310 of file MSNet.h.
References getPersonControl(), and myVehicleControl.
Referenced by MSVehicleTransfer::add(), MSVehicleType::buildSingularType(), MELoop::changeSegment(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), MSRouteHandler::closeContainer(), MSRouteHandler::closePerson(), MSStateHandler::closeVehicle(), MSRouteHandler::closeVehicle(), MSLane::detectCollisions(), MSInsertionControl::determineCandidates(), MSDevice::equippedByDefaultAssignmentOptions(), METriggeredCalibrator::execute(), MSCalibrator::execute(), MSVTypeProbe::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), TraCI_VehicleType::getIDList(), TraCI_Vehicle::getIDList(), MSLane::getMaximumBrakeDist(), GUINet::getParameterWindow(), TraCIServerAPI_Vehicle::getPosition(), MSVTKExport::getPositions(), MSVTKExport::getSpeed(), TraCI_Vehicle::getVehicle(), TraCI_VehicleType::getVType(), MSLane::handleCollisionBetween(), GUIApplicationWindow::handleEvent_SimulationStep(), MSStateHandler::myStartElement(), MSRouteHandler::myStartElement(), MSCalibrator::myStartElement(), GUISUMOViewParent::onCmdLocate(), MSBaseVehicle::onDepart(), TraCI_Vehicle::onInit(), MSRouteHandler::openVehicleTypeDistribution(), TraCIServer::postProcessVTD(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_GUI::processSet(), TraCIServerAPI_Person::processSet(), MESegment::receive(), METriggeredCalibrator::remainingVehicleCapacity(), MSCalibrator::remainingVehicleCapacity(), MSCalibrator::removePending(), MSVehicle::resumeFromStopping(), MSStateHandler::saveState(), GUINet::setSimDuration(), MELoop::teleportVehicle(), METriggeredCalibrator::tryEmit(), MSBatteryExport::write(), MSEmissionExport::write(), MSFCDExport::write(), MSAmitranTrajectories::write(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), writeOutput(), and MSFullExport::writeVehicles().
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 747 of file MSNet.cpp.
References myEdgeWeights.
Referenced by NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::addEdgeWeight(), NLBuilder::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight(), GUILane::getColorValue(), getEffort(), GUILane::getLoadedEdgeWeight(), GUILane::getScaleValue(), getShapeContainer(), GUILane::getStoredEdgeTravelTime(), getTravelTime(), and TraCIServerAPI_Edge::processSet().
|
inline |
Returns whether containers are simulated.
Definition at line 343 of file MSNet.h.
References myContainerControl.
Referenced by GUIApplicationWindow::handleEvent_SimulationStep(), and MSVehicle::processNextStop().
|
inline |
return whether the network contains elevation data
Definition at line 688 of file MSNet.h.
References myHasElevation.
Referenced by MSVTypeProbe::execute().
|
inline |
return whether the network contains internal links
Definition at line 678 of file MSNet.h.
References myHasInternalLinks.
Referenced by closeBuilding(), MSDevice_Tripinfo::computeLengthAndDuration(), MSTriggeredRerouter::rerouteParkingZone(), and MSDevice_Vehroutes::writeOutput().
|
inline |
return whether the network contains explicit neighbor lanes
Definition at line 683 of file MSNet.h.
References myHasNeighs.
Referenced by closeBuilding().
|
inline |
Returns whether the network has specific vehicle class permissions.
Definition at line 177 of file MSNet.h.
References myHavePermissions.
Referenced by MSDevice_Routing::reroute().
|
inline |
Returns whether persons are simulated.
Definition at line 327 of file MSNet.h.
References getContainerControl(), and myPersonControl.
Referenced by GUIApplicationWindow::handleEvent_SimulationStep(), and MSVehicle::processNextStop().
void MSNet::informVehicleStateListener | ( | const SUMOVehicle *const | vehicle, |
VehicleState | to | ||
) |
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 |
Definition at line 811 of file MSNet.cpp.
References myVehicleStateListeners.
Referenced by MSVehicleTransfer::add(), MEVehicleControl::buildVehicle(), GUIMEVehicleControl::buildVehicle(), GUIVehicleControl::buildVehicle(), MSVehicleControl::buildVehicle(), MSVehicleTransfer::checkInsertions(), MSVehicle::processNextStop(), MSVehicle::replaceRoute(), MEVehicle::replaceRoute(), MSVehicle::resumeFromStopping(), MSVehicleControl::scheduleVehicleRemoval(), MSVehicleControl::vehicleDeparted(), and MSNet::VehicleStateListener::~VehicleStateListener().
|
inline |
return whether the network was built for lefthand traffic
Definition at line 693 of file MSNet.h.
References myLefthand.
Referenced by closeBuilding(), GUIBusStop::drawGL(), GUILane::drawLinkNo(), GUILane::drawLinkRules(), GUILane::drawMarkings(), GUILane::drawTLSLinkNo(), and GUIBusStop::GUIBusStop().
void MSNet::loadRoutes | ( | ) |
loads routes for the next few steps
Definition at line 352 of file MSNet.cpp.
References SUMORouteLoaderControl::loadNext(), myRouteLoaders, and myStep.
Referenced by GUIRunThread::init(), setPermissionsFound(), simulate(), and simulationStep().
bool MSNet::logSimulationDuration | ( | ) | const |
Returns whether duration shall be logged.
Definition at line 724 of file MSNet.cpp.
References myLogExecutionTime.
Referenced by GUINet::getParameterWindow(), and setCurrentTimeStep().
void MSNet::postSimStepOutput | ( | ) | const |
Prints the statistics of the step at its end.
Called on the end of a simulation step
Definition at line 762 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 setCurrentTimeStep(), and simulate().
void MSNet::preSimStepOutput | ( | ) | const |
Prints the current step number.
Called on the begin of a simulation step
Definition at line 756 of file MSNet.cpp.
References myStep, and time2string().
Referenced by setCurrentTimeStep(), and simulate().
void MSNet::removeVehicleStateListener | ( | VehicleStateListener * | listener | ) |
Removes a vehicle states listener.
[in] | listener | The listener to remove |
Definition at line 802 of file MSNet.cpp.
References myVehicleStateListeners.
Referenced by MSNet::VehicleStateListener::~VehicleStateListener().
|
inline |
Sets the current simulation step (used by state loading)
step | the current simulation step |
Definition at line 265 of file MSNet.h.
References logSimulationDuration(), myStep, postSimStepOutput(), preSimStepOutput(), and writeOutput().
Referenced by GUIRunThread::init().
|
inline |
Labels the network to contain vehicle class permissions.
Definition at line 183 of file MSNet.h.
References addRestriction(), clearAll(), closeSimulation(), getRestrictions(), getStateMessage(), loadRoutes(), myHavePermissions, simulate(), simulationState(), and simulationStep().
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 304 of file MSNet.cpp.
References closeSimulation(), getCurrentTimeStep(), TraCI::getLoadArgs(), OptionsCont::getOptions(), getStateMessage(), loadRoutes(), myLogStepNumber, myStep, postSimStepOutput(), preSimStepOutput(), OptionsIO::setArgs(), SIMSTATE_LOADING, SIMSTATE_RUNNING, simulationState(), simulationStep(), time2string(), TraCIServer::wasClosed(), and WRITE_MESSAGE.
Referenced by NLBuilder::loadAndRun(), and setPermissionsFound().
MSNet::SimulationState MSNet::simulationState | ( | SUMOTime | stopTime | ) | const |
Called after a simulation step, this method returns the current simulation state.
[in] | stopTime | The time the simulation shall stop at |
Definition at line 534 of file MSNet.cpp.
References MSTransportableControl::abortWaiting(), MSVehicleControl::abortWaiting(), MSVehicleControl::getActiveVehicleCount(), TraCI::getLoadArgs(), OptionsCont::getOptions(), MSInsertionControl::getPendingFlowCount(), MSVehicleControl::getTeleportCount(), MSTransportableControl::hasNonWaiting(), MSEventControl::isEmpty(), myContainerControl, myInserter, myInsertionEvents, myMaxTeleports, myPersonControl, myStep, myVehicleControl, SIMSTATE_CONNECTION_CLOSED, SIMSTATE_END_STEP_REACHED, SIMSTATE_LOADING, SIMSTATE_NO_FURTHER_VEHICLES, SIMSTATE_RUNNING, SIMSTATE_TOO_MANY_TELEPORTS, and TraCIServer::wasClosed().
Referenced by GUIRunThread::makeStep(), setPermissionsFound(), and simulate().
void MSNet::simulationStep | ( | ) |
Performs a single simulation step.
Definition at line 425 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(), TraCIServer::getInstance(), MSVehicleTransfer::getInstance(), MSVehicleControl::getRunningVehicleNo(), TraCIServer::getTargetTime(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, MSTransportableControl::hasTransportables(), loadRoutes(), myBeginOfTimestepEvents, myContainerControl, myEdges, myEndOfTimestepEvents, myInserter, myInsertionEvents, myLogExecutionTime, myLogics, myPersonControl, mySimStepDuration, myStateDumpFiles, myStateDumpPeriod, myStateDumpPrefix, myStateDumpSuffix, myStateDumpTimes, myStep, myTraCIStepDuration, myVehicleControl, myVehiclesMoved, MSEdgeControl::patchActiveLanes(), MSEdgeControl::planMovements(), TraCIServer::postProcessVTD(), TraCIServer::processCommandsUntilSimStep(), MSStateHandler::saveState(), MELoop::simulate(), STAGE_EVENTS, STAGE_INSERTIONS, STAGE_LANECHANGE, STAGE_MOVEMENTS, time2string(), and writeOutput().
Referenced by TraCIServer::dispatchCommand(), setPermissionsFound(), simulate(), and GUINet::simulationStep().
|
inline |
return the network version
Definition at line 698 of file MSNet.h.
References checkElevation(), and myVersion.
Referenced by closeBuilding().
void MSNet::writeChargingStationOutput | ( | ) | const |
write charging station output
Definition at line 916 of file MSNet.cpp.
References OutputDevice::getDeviceByOption(), NamedObjectCont< T >::getMyMap(), and myChargingStationDict.
Referenced by closeSimulation(), and getShapeContainer().
void MSNet::writeOutput | ( | ) |
Write netstate, summary and detector output.
Definition at line 616 of file MSNet.cpp.
References OutputDevice::closeTag(), DELTA_T, MSVehicleControl::getDepartedVehicleNo(), OutputDevice::getDeviceByOption(), MSEdgeControl::getEdges(), MSVehicleControl::getEndedVehicleNo(), getInstance(), MSDevice_SSM::getInstances(), OptionsCont::getInt(), MSVehicleControl::getLoadedVehicleNo(), OptionsCont::getOptions(), MSVehicleControl::getRunningVehicleNo(), OptionsCont::getString(), MSVehicleControl::getTotalDepartureDelay(), MSVehicleControl::getTotalTravelTime(), getVehicleControl(), MSInsertionControl::getWaitingVehicleNo(), OptionsCont::isSet(), myDetectorControl, myEdges, myHasElevation, myInserter, myLogExecutionTime, mySimStepDuration, myStep, myVehicleControl, OutputDevice::openTag(), STEPS2TIME, SUMO_ATTR_ID, time2string(), MSDevice_SSM::updateAndWriteOutput(), MSDetectorControl::updateDetectors(), MSVTKExport::write(), MSEmissionExport::write(), MSQueueExport::write(), MSBatteryExport::write(), MSFCDExport::write(), MSFullExport::write(), MSAmitranTrajectories::write(), MSXMLRawOut::write(), OutputDevice::writeAttr(), and MSDetectorControl::writeOutput().
Referenced by setCurrentTimeStep(), and simulationStep().
|
protected |
Controls events executed at the begin of a time step;.
Definition at line 741 of file MSNet.h.
Referenced by getBeginOfTimestepEvents(), MSNet(), simulationStep(), and ~MSNet().
|
protected |
Dictionary of bus stops.
Definition at line 813 of file MSNet.h.
Referenced by addBusStop(), getBusStop(), and getBusStopID().
|
protected |
Dictionary of charging Stations.
Definition at line 822 of file MSNet.h.
Referenced by addChargingStation(), getChargingStation(), getChargingStationID(), and writeChargingStationOutput().
|
protected |
Controls container building and deletion;.
Definition at line 729 of file MSNet.h.
Referenced by GUINet::getContainerControl(), getContainerControl(), hasContainers(), MSNet(), simulationState(), simulationStep(), and ~MSNet().
|
protected |
Dictionary of container stops.
Definition at line 816 of file MSNet.h.
Referenced by addContainerStop(), getContainerStop(), and getContainerStopID().
|
protected |
Controls detectors;.
Definition at line 739 of file MSNet.h.
Referenced by closeSimulation(), getDetectorControl(), GUINet::initGUIStructures(), MSNet(), writeOutput(), and ~MSNet().
|
protected |
Controls edges, performs vehicle movement;.
Definition at line 731 of file MSNet.h.
Referenced by checkElevation(), closeBuilding(), getEdgeControl(), MSNet(), simulationStep(), writeOutput(), and ~MSNet().
|
protected |
The net's knowledge about edge efforts/travel times;.
Definition at line 749 of file MSNet.h.
Referenced by getWeightsStorage(), MSNet(), and ~MSNet().
|
protected |
Controls events executed at the end of a time step;.
Definition at line 743 of file MSNet.h.
Referenced by getEndOfTimestepEvents(), MSNet(), simulationStep(), and ~MSNet().
|
protected |
Whether the network contains elevation data.
Definition at line 804 of file MSNet.h.
Referenced by closeBuilding(), hasElevation(), and writeOutput().
|
protected |
Whether the network contains internal links/lanes/edges.
Definition at line 798 of file MSNet.h.
Referenced by closeBuilding(), and hasInternalLinks().
|
protected |
Whether the network contains explicit neighbor lanes.
Definition at line 801 of file MSNet.h.
Referenced by closeBuilding(), and hasNeighs().
|
protected |
Whether the network contains edges which not all vehicles may pass.
Definition at line 792 of file MSNet.h.
Referenced by hasPermissions(), and setPermissionsFound().
|
protected |
Controls vehicle insertion;.
Definition at line 737 of file MSNet.h.
Referenced by closeSimulation(), getInsertionControl(), MSNet(), postSimStepOutput(), simulationState(), simulationStep(), writeOutput(), and ~MSNet().
|
protected |
Controls insertion events;.
Definition at line 745 of file MSNet.h.
Referenced by getInsertionEvents(), MSNet(), simulationState(), simulationStep(), and ~MSNet().
|
staticprotected |
|
protected |
Controls junctions, realizes right-of-way rules;.
Definition at line 733 of file MSNet.h.
Referenced by closeBuilding(), getJunctionControl(), GUINet::getJunctionPosition(), GUINet::getParameterWindow(), GUINet::initGUIStructures(), MSNet(), and ~MSNet().
|
mutableprotected |
|
protected |
Whether the network was built for left-hand traffic.
Definition at line 807 of file MSNet.h.
Referenced by closeBuilding(), and lefthand().
|
protected |
Information whether the simulation duration shall be logged.
Definition at line 758 of file MSNet.h.
Referenced by closeBuilding(), closeSimulation(), logSimulationDuration(), MSNet(), postSimStepOutput(), simulationStep(), and writeOutput().
|
protected |
Controls tls logics, realizes waiting on tls rules;.
Definition at line 735 of file MSNet.h.
Referenced by closeBuilding(), GUINet::createTLWrapper(), GUINet::getLinkTLID(), GUINet::getLinkTLIndex(), getTLSControl(), MSNet(), simulationStep(), and ~MSNet().
|
protected |
Information whether the number of the simulation step shall be logged.
Definition at line 761 of file MSNet.h.
Referenced by MSNet(), and simulate().
|
protected |
Maximum number of teleports.
Definition at line 717 of file MSNet.h.
Referenced by MSNet(), and simulationState().
|
protected |
Dictionary of parking areas.
Definition at line 819 of file MSNet.h.
Referenced by addParkingArea(), getParkingArea(), and getParkingAreaID().
|
mutableprotected |
Definition at line 836 of file MSNet.h.
Referenced by getPedestrianRouter(), and ~MSNet().
|
protected |
Controls person building and deletion;.
Definition at line 727 of file MSNet.h.
Referenced by closeSimulation(), GUINet::getParameterWindow(), GUINet::getPersonControl(), getPersonControl(), hasPersons(), MSNet(), simulationState(), simulationStep(), and ~MSNet().
|
protected |
The vehicle class specific speed restrictions.
Definition at line 795 of file MSNet.h.
Referenced by addRestriction(), and getRestrictions().
|
protected |
Route loader for dynamic loading of routes.
Definition at line 711 of file MSNet.h.
Referenced by closeBuilding(), loadRoutes(), MSNet(), and ~MSNet().
|
mutableprotected |
Definition at line 835 of file MSNet.h.
Referenced by getRouterEffort(), and ~MSNet().
|
mutableprotected |
Definition at line 834 of file MSNet.h.
Referenced by getRouterTT(), and ~MSNet().
|
mutableprotected |
Definition at line 833 of file MSNet.h.
Referenced by getRouterTT(), and ~MSNet().
|
mutableprotected |
Definition at line 832 of file MSNet.h.
Referenced by getRouterTT().
|
protected |
A container for geometrical shapes;.
Definition at line 747 of file MSNet.h.
Referenced by getShapeContainer(), MSNet(), and ~MSNet().
|
protected |
The overall simulation duration.
Definition at line 767 of file MSNet.h.
Referenced by closeBuilding(), and closeSimulation().
|
protected |
Definition at line 764 of file MSNet.h.
Referenced by postSimStepOutput(), simulationStep(), and writeOutput().
|
protected |
The names for the state files.
Definition at line 781 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
The period for writing state.
Definition at line 783 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
name components for periodic state
Definition at line 785 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
Definition at line 786 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
Times at which a state shall be written.
Definition at line 779 of file MSNet.h.
Referenced by closeBuilding(), and simulationStep().
|
protected |
Current time step.
Definition at line 714 of file MSNet.h.
Referenced by closeSimulation(), getCurrentTimeStep(), loadRoutes(), MSNet(), postSimStepOutput(), preSimStepOutput(), setCurrentTimeStep(), simulate(), simulationState(), simulationStep(), and writeOutput().
|
protected |
The last simulation step duration.
Definition at line 764 of file MSNet.h.
Referenced by postSimStepOutput(), and simulationStep().
|
protected |
Controls vehicle building and deletion;.
Definition at line 725 of file MSNet.h.
Referenced by closeSimulation(), GUINet::getGUIMEVehicleControl(), GUINet::getGUIVehicleControl(), getVehicleControl(), MSNet(), postSimStepOutput(), simulationState(), simulationStep(), GUINet::vehicleExists(), writeOutput(), and ~MSNet().
|
protected |
The overall number of vehicle movements.
Definition at line 770 of file MSNet.h.
Referenced by closeSimulation(), GUINet::getMeanUPS(), and simulationStep().
|
protected |
Container for vehicle state listener.
Definition at line 825 of file MSNet.h.
Referenced by addVehicleStateListener(), informVehicleStateListener(), and removeVehicleStateListener().
|
protected |
the network version
Definition at line 810 of file MSNet.h.
Referenced by closeBuilding(), GUINet::getParameterWindow(), and version().
|
staticprotected |
string constants for simstep stages
Definition at line 844 of file MSNet.h.
Referenced by simulationStep().
|
staticprotected |
Definition at line 847 of file MSNet.h.
Referenced by simulationStep().
|
staticprotected |
Definition at line 846 of file MSNet.h.
Referenced by simulationStep().
|
staticprotected |
Definition at line 845 of file MSNet.h.
Referenced by simulationStep().