![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Definition of vehicle stop (position and duration) More...
#include <MSVehicle.h>
Public Member Functions | |
| std::string | getDescription () const |
| get a short description for showing in the gui More... | |
| double | getEndPos (const SUMOVehicle &veh) const |
| return halting position for upcoming stop; More... | |
| void | initPars (const SUMOVehicleParameter::Stop &stopPar) |
| initialize attributes from the given stop parameters More... | |
| Stop (const SUMOVehicleParameter::Stop &par) | |
| void | write (OutputDevice &dev) const |
| Write the current stop configuration (used for state saving) More... | |
Data Fields | |
| MSStoppingPlace * | busstop = nullptr |
| (Optional) bus stop if one is assigned to the stop More... | |
| MSStoppingPlace * | chargingStation = nullptr |
| (Optional) charging station if one is assigned to the stop More... | |
| bool | collision = false |
| Whether this stop was triggered by a collision. More... | |
| MSStoppingPlace * | containerstop = nullptr |
| (Optional) container stop if one is assigned to the stop More... | |
| bool | containerTriggered = false |
| whether an arriving container lets the vehicle continue More... | |
| SUMOTime | duration = -1 |
| The stopping duration. More... | |
| MSRouteIterator | edge |
| The edge in the route to stop at. More... | |
| SUMOTime | endBoarding = SUMOTime_MAX |
| the maximum time at which persons may board this vehicle More... | |
| bool | joinTriggered = false |
| whether coupling another vehicle (train) the vehicle continue More... | |
| const MSLane * | lane = nullptr |
| The lane to stop at. More... | |
| int | numExpectedContainer = 0 |
| The number of still expected containers. More... | |
| int | numExpectedPerson = 0 |
| The number of still expected persons. More... | |
| MSStoppingPlace * | overheadWireSegment = nullptr |
| (Optional) overhead wire segment if one is assigned to the stop More... | |
| MSParkingArea * | parkingarea = nullptr |
| (Optional) parkingArea if one is assigned to the stop More... | |
| const SUMOVehicleParameter::Stop | pars |
| The stop parameter. More... | |
| bool | reached = false |
| Information whether the stop has been reached. More... | |
| SUMOTime | timeToBoardNextPerson = 0 |
| The time at which the vehicle is able to board another person. More... | |
| SUMOTime | timeToLoadNextContainer = 0 |
| The time at which the vehicle is able to load another container. More... | |
| bool | triggered = false |
| whether an arriving person lets the vehicle continue More... | |
Private Member Functions | |
| Stop & | operator= (const Stop &src) |
| Invalidated assignment operator. More... | |
Definition of vehicle stop (position and duration)
Definition at line 966 of file MSVehicle.h.
|
inline |
Definition at line 968 of file MSVehicle.h.
| std::string MSVehicle::Stop::getDescription | ( | ) | const |
get a short description for showing in the gui
Definition at line 918 of file MSVehicle.cpp.
References toString().
| double MSVehicle::Stop::getEndPos | ( | const SUMOVehicle & | veh | ) | const |
return halting position for upcoming stop;
Definition at line 901 of file MSVehicle.cpp.
Referenced by MSVehicle::getStopEdges(), MSLane::insertVehicle(), and MSVehicle::planMoveInternal().
| void MSVehicle::Stop::initPars | ( | const SUMOVehicleParameter::Stop & | stopPar | ) |
initialize attributes from the given stop parameters
Definition at line 953 of file MSVehicle.cpp.
References SUMOVehicleParameter::Stop::awaitedContainers, SUMOVehicleParameter::Stop::awaitedPersons, SUMOVehicleParameter::Stop::busstop, SUMOVehicleParameter::Stop::chargingStation, SUMOVehicleParameter::Stop::containerstop, SUMOVehicleParameter::Stop::containerTriggered, SUMOVehicleParameter::Stop::duration, MSNet::getInstance(), MSNet::getStoppingPlace(), SUMOVehicleParameter::Stop::join, SUMOVehicleParameter::Stop::joinTriggered, SUMOVehicleParameter::Stop::overheadWireSegment, SUMOVehicleParameter::Stop::parkingarea, SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_OVERHEAD_WIRE_SEGMENT, SUMO_TAG_PARKING_AREA, and SUMOVehicleParameter::Stop::triggered.
Referenced by MSVehicle::addStop(), and MSVehicle::replaceStop().
| void MSVehicle::Stop::write | ( | OutputDevice & | dev | ) | const |
Write the current stop configuration (used for state saving)
Definition at line 936 of file MSVehicle.cpp.
References OutputDevice::closeTag(), SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::parametersSet, STOP_END_SET, STOP_START_SET, SUMO_ATTR_ACTUALARRIVAL, time2string(), SUMOVehicleParameter::Stop::write(), and OutputDevice::writeAttr().
| MSStoppingPlace* MSVehicle::Stop::busstop = nullptr |
(Optional) bus stop if one is assigned to the stop
Definition at line 974 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::boardTransportables(), libsumo::Vehicle::getStopState(), and MSVehicle::processNextStop().
| MSStoppingPlace* MSVehicle::Stop::chargingStation = nullptr |
(Optional) charging station if one is assigned to the stop
Definition at line 980 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), libsumo::Vehicle::getStopState(), and MSVehicle::processNextStop().
| bool MSVehicle::Stop::collision = false |
Whether this stop was triggered by a collision.
Definition at line 1005 of file MSVehicle.h.
Referenced by MSVehicle::addStop().
| MSStoppingPlace* MSVehicle::Stop::containerstop = nullptr |
(Optional) container stop if one is assigned to the stop
Definition at line 976 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::boardTransportables(), libsumo::Vehicle::getStopState(), and MSVehicle::processNextStop().
| bool MSVehicle::Stop::containerTriggered = false |
whether an arriving container lets the vehicle continue
Definition at line 991 of file MSVehicle.h.
Referenced by MSVehicle::boardTransportables(), and MSVehicle::processNextStop().
| SUMOTime MSVehicle::Stop::duration = -1 |
The stopping duration.
Definition at line 987 of file MSVehicle.h.
Referenced by MSVehicle::boardTransportables(), MSVehicle::getStopDelay(), MSVehicle::processNextStop(), and libsumo::Vehicle::resume().
| MSRouteIterator MSVehicle::Stop::edge |
The edge in the route to stop at.
Definition at line 970 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::getStopDelay(), MSVehicle::getStopEdges(), MSVehicle::processLaneAdvances(), MSVehicle::processNextStop(), MSVehicle::replaceParkingArea(), MSVehicle::replaceStop(), libsumo::Vehicle::resume(), and MSVehicle::updateBestLanes().
| SUMOTime MSVehicle::Stop::endBoarding = SUMOTime_MAX |
the maximum time at which persons may board this vehicle
Definition at line 1007 of file MSVehicle.h.
Referenced by MSVehicle::boardTransportables(), MSDevice_Taxi::notifyMove(), and MSVehicle::processNextStop().
| bool MSVehicle::Stop::joinTriggered = false |
whether coupling another vehicle (train) the vehicle continue
Definition at line 993 of file MSVehicle.h.
Referenced by MSVehicle::processNextStop().
| const MSLane* MSVehicle::Stop::lane = nullptr |
The lane to stop at.
Definition at line 972 of file MSVehicle.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSVehicle::addStop(), MSDevice_ToC::checkDynamicToC(), MSVehicle::getStopDelay(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MSVehicle::planMoveInternal(), MSVehicle::processNextStop(), MSVehicle::replaceParkingArea(), MSVehicle::replaceStop(), and MSVehicle::updateBestLanes().
| int MSVehicle::Stop::numExpectedContainer = 0 |
The number of still expected containers.
Definition at line 999 of file MSVehicle.h.
Referenced by MSVehicle::boardTransportables().
| int MSVehicle::Stop::numExpectedPerson = 0 |
The number of still expected persons.
Definition at line 997 of file MSVehicle.h.
Referenced by MSVehicle::boardTransportables().
| MSStoppingPlace* MSVehicle::Stop::overheadWireSegment = nullptr |
(Optional) overhead wire segment if one is assigned to the stop
Definition at line 983 of file MSVehicle.h.
Referenced by MSVehicle::addStop().
| MSParkingArea* MSVehicle::Stop::parkingarea = nullptr |
(Optional) parkingArea if one is assigned to the stop
Definition at line 978 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), MSVehicle::Manoeuvre::entryManoeuvreIsComplete(), MSVehicle::getNextParkingArea(), libsumo::Vehicle::getStopState(), MSVehicle::planMoveInternal(), MSVehicle::processNextStop(), and MSVehicle::replaceParkingArea().
| const SUMOVehicleParameter::Stop MSVehicle::Stop::pars |
The stop parameter.
Definition at line 985 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::boardTransportables(), MSVehicle::getStopDelay(), libsumo::Vehicle::getStopState(), MSLane::isInsertionSuccess(), MSVehicle::isStoppedInRange(), MSVehicle::planMoveInternal(), MSVehicle::processNextStop(), MSVehicle::replaceParkingArea(), MSVehicle::replaceStop(), libsumo::Vehicle::resume(), and MSVehicle::updateBestLanes().
| bool MSVehicle::Stop::reached = false |
Information whether the stop has been reached.
Definition at line 995 of file MSVehicle.h.
Referenced by MSVehicle::getNextParkingArea(), MSVehicle::getStopDelay(), libsumo::Vehicle::getStopState(), MSVehicle::planMoveInternal(), MSVehicle::processNextStop(), and libsumo::Vehicle::resume().
| SUMOTime MSVehicle::Stop::timeToBoardNextPerson = 0 |
The time at which the vehicle is able to board another person.
Definition at line 1001 of file MSVehicle.h.
Referenced by MSVehicle::boardTransportables().
| SUMOTime MSVehicle::Stop::timeToLoadNextContainer = 0 |
The time at which the vehicle is able to load another container.
Definition at line 1003 of file MSVehicle.h.
Referenced by MSVehicle::boardTransportables().
| bool MSVehicle::Stop::triggered = false |
whether an arriving person lets the vehicle continue
Definition at line 989 of file MSVehicle.h.
Referenced by MSVehicle::boardTransportables(), MSIdling_Stop::idle(), and MSVehicle::processNextStop().