![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MSStop.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... | |
MSStop (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 (microsim only) 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... | |
const MESegment * | segment = nullptr |
The segment to stop at (mesosim only) 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 | |
MSStop & | operator= (const MSStop &src)=delete |
Invalidated assignment operator. More... | |
|
inline |
std::string MSStop::getDescription | ( | ) | const |
get a short description for showing in the gui
Definition at line 50 of file MSStop.cpp.
References busstop, chargingStation, containerstop, SUMOVehicleParameter::Stop::endPos, Named::getID(), lane, overheadWireSegment, parkingarea, pars, and toString().
double MSStop::getEndPos | ( | const SUMOVehicle & | veh | ) | const |
return halting position for upcoming stop;
Definition at line 33 of file MSStop.cpp.
References busstop, chargingStation, containerstop, SUMOVehicleParameter::Stop::endPos, MSParkingArea::getLastFreePos(), MSStoppingPlace::getLastFreePos(), overheadWireSegment, parkingarea, and pars.
Referenced by MSBaseVehicle::addStop(), MSBaseVehicle::getStopEdges(), MSLane::insertVehicle(), and MSVehicle::planMoveInternal().
void MSStop::initPars | ( | const SUMOVehicleParameter::Stop & | stopPar | ) |
initialize attributes from the given stop parameters
Definition at line 85 of file MSStop.cpp.
References SUMOVehicleParameter::Stop::awaitedContainers, SUMOVehicleParameter::Stop::awaitedPersons, busstop, SUMOVehicleParameter::Stop::busstop, chargingStation, SUMOVehicleParameter::Stop::chargingStation, containerstop, SUMOVehicleParameter::Stop::containerstop, containerTriggered, SUMOVehicleParameter::Stop::containerTriggered, duration, SUMOVehicleParameter::Stop::duration, MSNet::getInstance(), MSNet::getStoppingPlace(), SUMOVehicleParameter::Stop::join, joinTriggered, SUMOVehicleParameter::Stop::joinTriggered, numExpectedContainer, numExpectedPerson, overheadWireSegment, SUMOVehicleParameter::Stop::overheadWireSegment, parkingarea, SUMOVehicleParameter::Stop::parkingarea, SUMO_TAG_BUS_STOP, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_OVERHEAD_WIRE_SEGMENT, SUMO_TAG_PARKING_AREA, triggered, and SUMOVehicleParameter::Stop::triggered.
Referenced by MSBaseVehicle::addStop(), and MSVehicle::replaceStop().
void MSStop::write | ( | OutputDevice & | dev | ) | const |
Write the current stop configuration (used for state saving)
Definition at line 68 of file MSStop.cpp.
References SUMOVehicleParameter::Stop::actualArrival, busstop, chargingStation, OutputDevice::closeTag(), containerstop, duration, SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::parametersSet, parkingarea, pars, STOP_END_SET, STOP_START_SET, SUMO_ATTR_ACTUALARRIVAL, time2string(), SUMOVehicleParameter::Stop::write(), and OutputDevice::writeAttr().
MSStoppingPlace* MSStop::busstop = nullptr |
(Optional) bus stop if one is assigned to the stop
Definition at line 54 of file MSStop.h.
Referenced by MSBaseVehicle::addStop(), getDescription(), getEndPos(), LIBSUMO_NAMESPACE::Vehicle::getStopState(), initPars(), MSVehicle::processNextStop(), and write().
MSStoppingPlace* MSStop::chargingStation = nullptr |
(Optional) charging station if one is assigned to the stop
Definition at line 60 of file MSStop.h.
Referenced by MSBaseVehicle::addStop(), getDescription(), getEndPos(), LIBSUMO_NAMESPACE::Vehicle::getStopState(), initPars(), MSVehicle::processNextStop(), and write().
bool MSStop::collision = false |
Whether this stop was triggered by a collision.
Definition at line 85 of file MSStop.h.
Referenced by MSBaseVehicle::addStop().
MSStoppingPlace* MSStop::containerstop = nullptr |
(Optional) container stop if one is assigned to the stop
Definition at line 56 of file MSStop.h.
Referenced by MSBaseVehicle::addStop(), getDescription(), getEndPos(), LIBSUMO_NAMESPACE::Vehicle::getStopState(), initPars(), MSVehicle::processNextStop(), and write().
bool MSStop::containerTriggered = false |
whether an arriving container lets the vehicle continue
Definition at line 71 of file MSStop.h.
Referenced by MSVehicle::boardTransportables(), MSIdling_Stop::idle(), initPars(), and MSVehicle::processNextStop().
SUMOTime MSStop::duration = -1 |
The stopping duration.
Definition at line 67 of file MSStop.h.
Referenced by MSVehicle::boardTransportables(), MSVehicle::getStopDelay(), initPars(), MSVehicle::processNextStop(), LIBSUMO_NAMESPACE::Vehicle::resume(), and write().
MSRouteIterator MSStop::edge |
The edge in the route to stop at.
Definition at line 48 of file MSStop.h.
Referenced by MSBaseVehicle::addStop(), MSVehicle::estimateTimeToNextStop(), MSBaseVehicle::getStopEdges(), MSVehicle::handleCollisionStop(), MSVehicle::processNextStop(), MEVehicle::processStop(), MSVehicle::replaceParkingArea(), MSVehicle::replaceStop(), LIBSUMO_NAMESPACE::Vehicle::resume(), and MSVehicle::updateBestLanes().
SUMOTime MSStop::endBoarding = SUMOTime_MAX |
the maximum time at which persons may board this vehicle
Definition at line 87 of file MSStop.h.
Referenced by MSVehicle::boardTransportables(), MSDevice_Taxi::notifyMove(), and MSVehicle::processNextStop().
bool MSStop::joinTriggered = false |
whether coupling another vehicle (train) the vehicle continue
Definition at line 73 of file MSStop.h.
Referenced by initPars(), and MSVehicle::processNextStop().
const MSLane* MSStop::lane = nullptr |
The lane to stop at (microsim only)
Definition at line 50 of file MSStop.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSBaseVehicle::addStop(), MSDevice_ToC::checkDynamicToC(), MSVehicle::estimateTimeToNextStop(), getDescription(), MSBaseVehicle::getStopEdges(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MSVehicle::planMoveInternal(), MSVehicle::processNextStop(), MSVehicle::replaceParkingArea(), MSVehicle::replaceStop(), and MSVehicle::updateBestLanes().
int MSStop::numExpectedContainer = 0 |
The number of still expected containers.
Definition at line 79 of file MSStop.h.
Referenced by MSVehicle::boardTransportables(), and initPars().
int MSStop::numExpectedPerson = 0 |
The number of still expected persons.
Definition at line 77 of file MSStop.h.
Referenced by MSVehicle::boardTransportables(), and initPars().
MSStoppingPlace* MSStop::overheadWireSegment = nullptr |
(Optional) overhead wire segment if one is assigned to the stop
Definition at line 63 of file MSStop.h.
Referenced by MSBaseVehicle::addStop(), getDescription(), getEndPos(), and initPars().
MSParkingArea* MSStop::parkingarea = nullptr |
(Optional) parkingArea if one is assigned to the stop
Definition at line 58 of file MSStop.h.
Referenced by MSBaseVehicle::addStop(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), MSVehicle::Manoeuvre::entryManoeuvreIsComplete(), getDescription(), getEndPos(), MSVehicle::getNextParkingArea(), LIBSUMO_NAMESPACE::Vehicle::getStopState(), initPars(), MSVehicle::planMoveInternal(), MSVehicle::processNextStop(), MSVehicle::replaceParkingArea(), and write().
const SUMOVehicleParameter::Stop MSStop::pars |
The stop parameter.
Definition at line 65 of file MSStop.h.
Referenced by MSBaseVehicle::addStop(), MSVehicle::boardTransportables(), MSVehicle::estimateTimeToNextStop(), getDescription(), getEndPos(), MSVehicle::getStopArrivalDelay(), MSVehicle::getStopDelay(), LIBSUMO_NAMESPACE::Vehicle::getStopState(), MSVehicle::handleCollisionStop(), MSLane::isInsertionSuccess(), MSBaseVehicle::isStoppedInRange(), MSVehicle::planMoveInternal(), MSVehicle::processNextStop(), MEVehicle::processStop(), MSVehicle::replaceParkingArea(), MSVehicle::replaceStop(), LIBSUMO_NAMESPACE::Vehicle::resume(), MSVehicle::updateBestLanes(), and write().
bool MSStop::reached = false |
Information whether the stop has been reached.
Definition at line 75 of file MSStop.h.
Referenced by MSVehicle::getNextParkingArea(), MSVehicle::getStopArrivalDelay(), MSVehicle::getStopDelay(), LIBSUMO_NAMESPACE::Vehicle::getStopState(), MSVehicle::planMoveInternal(), MSVehicle::processNextStop(), and LIBSUMO_NAMESPACE::Vehicle::resume().
const MESegment* MSStop::segment = nullptr |
The segment to stop at (mesosim only)
Definition at line 52 of file MSStop.h.
Referenced by MSBaseVehicle::addStop(), and MEVehicle::processStop().
SUMOTime MSStop::timeToBoardNextPerson = 0 |
The time at which the vehicle is able to board another person.
Definition at line 81 of file MSStop.h.
Referenced by MSVehicle::boardTransportables().
SUMOTime MSStop::timeToLoadNextContainer = 0 |
The time at which the vehicle is able to load another container.
Definition at line 83 of file MSStop.h.
Referenced by MSVehicle::boardTransportables().
bool MSStop::triggered = false |
whether an arriving person lets the vehicle continue
Definition at line 69 of file MSStop.h.
Referenced by MSVehicle::boardTransportables(), MSIdling_Stop::idle(), initPars(), and MSVehicle::processNextStop().