![]() |
SUMO - Simulation of Urban MObility
|
Definition of vehicle stop (position and duration) More...
#include <MSVehicle.h>
Public Member Functions | |
double | getEndPos (const SUMOVehicle &veh) const |
return halting position for upcoming stop; More... | |
void | write (OutputDevice &dev) const |
Data Fields | |
std::set< std::string > | awaitedContainers |
IDs of containers the vehicle has to wait for until departing. More... | |
std::set< std::string > | awaitedPersons |
IDs of persons the vehicle has to wait for until departing. More... | |
MSStoppingPlace * | busstop |
(Optional) bus stop if one is assigned to the stop More... | |
MSChargingStation * | 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... | |
double | endPos |
The stopping position end. More... | |
const MSLane * | lane |
The lane to stop at. More... | |
bool | parking |
whether the vehicle is removed from the net while stopping More... | |
MSParkingArea * | parkingarea |
(Optional) parkingArea if one is assigned to the stop More... | |
bool | reached |
Information whether the stop has been reached. More... | |
double | startPos |
The stopping position start. 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... | |
SUMOTime | until |
The time at which the vehicle may continue its journey. More... | |
Definition of vehicle stop (position and duration)
Definition at line 820 of file MSVehicle.h.
double MSVehicle::Stop::getEndPos | ( | const SUMOVehicle & | veh | ) | const |
return halting position for upcoming stop;
Definition at line 4089 of file MSVehicle.cpp.
Referenced by MSVehicle::planMoveInternal(), and MSVehicle::processNextStop().
void MSVehicle::Stop::write | ( | OutputDevice & | dev | ) | const |
Definition at line 4049 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().
std::set<std::string> MSVehicle::Stop::awaitedContainers |
IDs of containers the vehicle has to wait for until departing.
Definition at line 852 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::processNextStop(), and MSVehicle::replaceParkingArea().
std::set<std::string> MSVehicle::Stop::awaitedPersons |
IDs of persons the vehicle has to wait for until departing.
Definition at line 850 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::processNextStop(), and MSVehicle::replaceParkingArea().
MSStoppingPlace* MSVehicle::Stop::busstop |
(Optional) bus stop if one is assigned to the stop
Definition at line 826 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), TraCI_Vehicle::getStopState(), MSVehicle::processNextStop(), and MSStopOut::stopEnded().
MSChargingStation* MSVehicle::Stop::chargingStation |
(Optional) charging station if one is assigned to the stop
Definition at line 832 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), TraCI_Vehicle::getStopState(), and MSStopOut::stopEnded().
bool MSVehicle::Stop::collision |
Whether this stop was triggered by a collision.
Definition at line 858 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), and MSVehicle::processNextStop().
MSStoppingPlace* MSVehicle::Stop::containerstop |
(Optional) container stop if one is assigned to the stop
Definition at line 828 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), TraCI_Vehicle::getStopState(), MSVehicle::processNextStop(), and MSStopOut::stopEnded().
bool MSVehicle::Stop::containerTriggered |
whether an arriving container lets the vehicle continue
Definition at line 844 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), TraCI_Vehicle::getStopState(), MSVehicle::processNextStop(), and MSVehicle::replaceParkingArea().
SUMOTime MSVehicle::Stop::duration |
The stopping duration.
Definition at line 838 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSTransportableControl::boardAnyWaiting(), MSTransportableControl::loadAnyWaiting(), MSVehicle::processNextStop(), and TraCI_Vehicle::resume().
MSRouteIterator MSVehicle::Stop::edge |
The edge in the route to stop at.
Definition at line 822 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::processNextStop(), and TraCI_Vehicle::resume().
double MSVehicle::Stop::endPos |
The stopping position end.
Definition at line 836 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSTransportableControl::boardAnyWaiting(), MSLane::isInsertionSuccess(), MSTransportableControl::loadAnyWaiting(), and MSVehicle::processNextStop().
const MSLane* MSVehicle::Stop::lane |
The lane to stop at.
Definition at line 824 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSLane::isInsertionSuccess(), MSVehicle::processNextStop(), MSStopOut::stopEnded(), and MSVehicle::updateBestLanes().
bool MSVehicle::Stop::parking |
whether the vehicle is removed from the net while stopping
Definition at line 846 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), TraCI_Vehicle::getStopState(), MSVehicle::replaceParkingArea(), and MSStopOut::stopEnded().
MSParkingArea* MSVehicle::Stop::parkingarea |
(Optional) parkingArea if one is assigned to the stop
Definition at line 830 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::getNextParkingArea(), TraCI_Vehicle::getStopState(), MSVehicle::processNextStop(), MSVehicle::replaceParkingArea(), and MSStopOut::stopEnded().
bool MSVehicle::Stop::reached |
Information whether the stop has been reached.
Definition at line 848 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::getNextParkingArea(), MSVehicle::processNextStop(), MSVehicle::replaceParkingArea(), and TraCI_Vehicle::resume().
double MSVehicle::Stop::startPos |
The stopping position start.
Definition at line 834 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSTransportableControl::boardAnyWaiting(), MSTransportableControl::loadAnyWaiting(), MSVehicle::processNextStop(), TraCI_Vehicle::resume(), and MSVehicle::updateBestLanes().
SUMOTime MSVehicle::Stop::timeToBoardNextPerson |
The time at which the vehicle is able to board another person.
Definition at line 854 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 856 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 842 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), TraCI_Vehicle::getStopState(), MSVehicle::processNextStop(), and MSVehicle::replaceParkingArea().
SUMOTime MSVehicle::Stop::until |
The time at which the vehicle may continue its journey.
Definition at line 840 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::processNextStop(), and MSVehicle::replaceParkingArea().