![]() |
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... | |
| Stop (const SUMOVehicleParameter::Stop &par) | |
| void | write (OutputDevice &dev) const |
| Write the current stop configuration (used for state saving) More... | |
Data Fields | |
| MSStoppingPlace * | busstop |
| (Optional) bus stop if one is assigned to the stop More... | |
| MSStoppingPlace * | chargingStation |
| (Optional) charging station if one is assigned to the stop More... | |
| bool | collision |
| Whether this stop was triggered by a collision. More... | |
| MSStoppingPlace * | containerstop |
| (Optional) container stop if one is assigned to the stop More... | |
| bool | containerTriggered |
| whether an arriving container lets the vehicle continue More... | |
| SUMOTime | duration |
| The stopping duration. More... | |
| MSRouteIterator | edge |
| The edge in the route to stop at. More... | |
| const MSLane * | lane |
| The lane to stop at. More... | |
| int | numExpectedContainer |
| The number of still expected containers. More... | |
| int | numExpectedPerson |
| The number of still expected persons. More... | |
| MSParkingArea * | parkingarea |
| (Optional) parkingArea if one is assigned to the stop More... | |
| const SUMOVehicleParameter::Stop | pars |
| The stop parameter. More... | |
| bool | reached |
| Information whether the stop has been reached. More... | |
| SUMOTime | timeToBoardNextPerson |
| The time at which the vehicle is able to board another person. More... | |
| SUMOTime | timeToLoadNextContainer |
| The time at which the vehicle is able to load another container. More... | |
| bool | triggered |
| 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 901 of file MSVehicle.h.
|
inline |
Definition at line 903 of file MSVehicle.h.
| std::string MSVehicle::Stop::getDescription | ( | ) | const |
get a short description for showing in the gui
Definition at line 577 of file MSVehicle.cpp.
References toString().
| double MSVehicle::Stop::getEndPos | ( | const SUMOVehicle & | veh | ) | const |
return halting position for upcoming stop;
Definition at line 562 of file MSVehicle.cpp.
Referenced by MSVehicle::planMoveInternal(), and MSVehicle::processNextStop().
| void MSVehicle::Stop::write | ( | OutputDevice & | dev | ) | const |
Write the current stop configuration (used for state saving)
Definition at line 593 of file MSVehicle.cpp.
References OutputDevice::closeTag(), joinToString(), OutputDevice::openTag(), STEPS2TIME, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_CONTAINER_TRIGGERED, SUMO_ATTR_DURATION, SUMO_ATTR_ENDPOS, SUMO_ATTR_EXPECTED, SUMO_ATTR_EXPECTED_CONTAINERS, SUMO_ATTR_LANE, SUMO_ATTR_PARKING, SUMO_ATTR_STARTPOS, SUMO_ATTR_TRIGGERED, SUMO_ATTR_UNTIL, SUMO_TAG_STOP, and OutputDevice::writeAttr().
| MSStoppingPlace* MSVehicle::Stop::busstop |
(Optional) bus stop if one is assigned to the stop
Definition at line 909 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), libsumo::Vehicle::getStopState(), MSVehicle::processNextStop(), and MSStopOut::stopEnded().
| MSStoppingPlace* MSVehicle::Stop::chargingStation |
(Optional) charging station if one is assigned to the stop
Definition at line 915 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), libsumo::Vehicle::getStopState(), and MSStopOut::stopEnded().
| bool MSVehicle::Stop::collision |
Whether this stop was triggered by a collision.
Definition at line 935 of file MSVehicle.h.
Referenced by MSVehicle::addStop().
| MSStoppingPlace* MSVehicle::Stop::containerstop |
(Optional) container stop if one is assigned to the stop
Definition at line 911 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), libsumo::Vehicle::getStopState(), MSVehicle::processNextStop(), and MSStopOut::stopEnded().
| bool MSVehicle::Stop::containerTriggered |
whether an arriving container lets the vehicle continue
Definition at line 923 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), and MSVehicle::processNextStop().
| SUMOTime MSVehicle::Stop::duration |
The stopping duration.
Definition at line 919 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSTransportableControl::boardAnyWaiting(), MSTransportableControl::loadAnyWaiting(), MSVehicle::processNextStop(), and libsumo::Vehicle::resume().
| MSRouteIterator MSVehicle::Stop::edge |
The edge in the route to stop at.
Definition at line 905 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::processNextStop(), libsumo::Vehicle::resume(), and MSVehicle::updateBestLanes().
| const MSLane* MSVehicle::Stop::lane |
The lane to stop at.
Definition at line 907 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSLane::isInsertionSuccess(), MSVehicle::processNextStop(), MSStopOut::stopEnded(), and MSVehicle::updateBestLanes().
| int MSVehicle::Stop::numExpectedContainer |
The number of still expected containers.
Definition at line 929 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), and MSVehicle::processNextStop().
| int MSVehicle::Stop::numExpectedPerson |
The number of still expected persons.
Definition at line 927 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), and MSVehicle::processNextStop().
| MSParkingArea* MSVehicle::Stop::parkingarea |
(Optional) parkingArea if one is assigned to the stop
Definition at line 913 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::getNextParkingArea(), libsumo::Vehicle::getStopState(), MSVehicle::processNextStop(), MSVehicle::replaceParkingArea(), and MSStopOut::stopEnded().
| const SUMOVehicleParameter::Stop MSVehicle::Stop::pars |
The stop parameter.
Definition at line 917 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSTransportableControl::boardAnyWaiting(), libsumo::Vehicle::getStopState(), MSLane::isInsertionSuccess(), MSTransportableControl::loadAnyWaiting(), MSVehicle::processNextStop(), MSVehicle::replaceParkingArea(), libsumo::Vehicle::resume(), MSStopOut::stopEnded(), MSDevice_Vehroutes::stopEnded(), and MSVehicle::updateBestLanes().
| bool MSVehicle::Stop::reached |
Information whether the stop has been reached.
Definition at line 925 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::getNextParkingArea(), MSVehicle::processNextStop(), MSVehicle::replaceParkingArea(), and libsumo::Vehicle::resume().
| SUMOTime MSVehicle::Stop::timeToBoardNextPerson |
The time at which the vehicle is able to board another person.
Definition at line 931 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), and MSTransportableControl::boardAnyWaiting().
| SUMOTime MSVehicle::Stop::timeToLoadNextContainer |
The time at which the vehicle is able to load another container.
Definition at line 933 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), and MSTransportableControl::loadAnyWaiting().
| bool MSVehicle::Stop::triggered |
whether an arriving person lets the vehicle continue
Definition at line 921 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), and MSVehicle::processNextStop().