![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MSStageDriving.h>
Public Member Functions | |
void | abort (MSTransportable *t) |
abort this stage (TraCI) More... | |
bool | canLeaveVehicle (const MSTransportable *t, const SUMOVehicle &veh, const MSStop &stop) |
checks whether the person may exit at the current vehicle position More... | |
MSStage * | clone () const |
double | getAngle (SUMOTime now) const |
returns the angle of the transportable More... | |
double | getArrivalPos () const |
return default value for undefined arrivalPos More... | |
SUMOTime | getArrived () const |
get arrival time of stage More... | |
SUMOTime | getDeparted () const |
get departure time of stage More... | |
const MSEdge * | getDestination () const |
returns the destination edge More... | |
MSStoppingPlace * | getDestinationStop () const |
returns the destination stop (if any) More... | |
int | getDirection () const |
Return the movement directon on the edge. More... | |
double | getDistance () const |
get travel distance in this stage More... | |
const MSEdge * | getEdge () const |
Returns the current edge. More... | |
double | getEdgeAngle (const MSEdge *e, double at) const |
get angle of the edge at a certain position More... | |
double | getEdgePos (SUMOTime now) const |
Position | getEdgePosition (const MSEdge *e, double at, double offset) const |
get position on edge e at length at with orthogonal offset More... | |
ConstMSEdgeVector | getEdges () const |
the edges of the current stage More... | |
const MSEdge * | getFromEdge () const |
const std::string & | getGroup () const |
return the id of the group of transportables traveling together More... | |
SUMOTime | getIntendedDepart () const |
std::string | getIntendedVehicleID () const |
const MSLane * | getLane () const |
Returns the current lane (if applicable) More... | |
Position | getLanePosition (const MSLane *lane, double at, double offset) const |
get position on lane at length at with orthogonal offset More... | |
const std::set< std::string > & | getLines () const |
MSStoppingPlace * | getOriginStop () const |
returns the origin stop (if any). only needed for MSStageTrip More... | |
Position | getPosition (SUMOTime now) const |
returns the position of the transportable More... | |
virtual int | getRoutePosition () const |
return index of current edge within route More... | |
double | getSpeed () const |
the speed of the transportable More... | |
std::string | getStageDescription (const bool isPerson) const |
return (brief) string representation of the current stage More... | |
std::string | getStageSummary (const bool isPerson) const |
return string summary of the current stage More... | |
MSStageType | getStageType () const |
SUMOVehicle * | getVehicle () const |
Current vehicle in which the transportable is driving (or nullptr) More... | |
std::string | getVehicleType () const |
std::string | getWaitingDescription () const |
Return where the person waits and for what. More... | |
SUMOTime | getWaitingTime (SUMOTime now) const |
time spent waiting for a ride More... | |
bool | isWaiting4Vehicle () const |
Whether the person waits for a vehicle. More... | |
bool | isWaitingFor (const SUMOVehicle *vehicle) const |
Whether the person waits for the given vehicle. More... | |
void | loadState (MSTransportable *transportable, std::istringstream &state) |
Reconstructs the current state. More... | |
void | markSet (int what) |
MSStageDriving (const MSEdge *origin, const MSEdge *destination, MSStoppingPlace *toStop, const double arrivalPos, const std::vector< std::string > &lines, const std::string &group="", const std::string &intendedVeh="", SUMOTime intendedDepart=-1) | |
constructor More... | |
void | proceed (MSNet *net, MSTransportable *transportable, SUMOTime now, MSStage *previous) |
proceeds to this stage More... | |
void | routeOutput (const bool isPerson, OutputDevice &os, const bool withRouteLength, const MSStage *const previous) const |
Called on writing vehroute output. More... | |
void | saveState (std::ostringstream &out) |
Saves the current state into the given stream. More... | |
void | setArrivalPos (double arrivalPos) |
const std::string | setArrived (MSNet *net, MSTransportable *transportable, SUMOTime now, const bool vehicleArrived) |
marks arrival time and records driven distance More... | |
void | setDeparted (SUMOTime now) |
logs end of the step More... | |
void | setDestination (const MSEdge *newDestination, MSStoppingPlace *newDestStop) |
void | setOrigin (const MSEdge *origin) |
change origin for parking area rerouting More... | |
virtual void | setSpeed (double) |
sets the walking speed (ignored in other stages) More... | |
void | setVehicle (SUMOVehicle *v) |
void | tripInfoOutput (OutputDevice &os, const MSTransportable *const transportable) const |
Called on writing tripinfo output. More... | |
bool | unspecifiedArrivalPos () const |
bool | wasSet (int what) const |
virtual | ~MSStageDriving () |
destructor More... | |
Protected Attributes | |
double | myArrivalPos |
the position at which we want to arrive More... | |
SUMOTime | myArrived |
the time at which this stage ended More... | |
SUMOTime | myDeparted |
the time at which this stage started More... | |
const MSEdge * | myDestination |
the next edge to reach by getting transported More... | |
MSStoppingPlace * | myDestinationStop |
the stop to reach by getting transported (if any) More... | |
const std::string | myGroup |
The id of the group of transportables traveling together. More... | |
SUMOTime | myIntendedDepart |
std::string | myIntendedVehicleID |
const std::set< std::string > | myLines |
the lines to choose from More... | |
const MSEdge * | myOrigin |
the origin edge More... | |
MSStoppingPlace * | myOriginStop |
the stop at which this ride starts (or nullptr) More... | |
int | myParametersSet |
Information on which parameter were set (mainly for vehroute output) More... | |
Position | myStopWaitPos |
SUMOTime | myTimeLoss |
While driving, this is the timeLoss of the vehicle when the ride started, after arrival this is the timeLoss which the vehicle accumulated during the ride. More... | |
MSStageType | myType |
The type of this stage. More... | |
SUMOVehicle * | myVehicle |
The taken vehicle. More... | |
double | myVehicleDistance |
std::string | myVehicleID |
cached vehicle data for output after the vehicle has been removed More... | |
std::string | myVehicleLine |
std::string | myVehicleType |
SUMOVehicleClass | myVehicleVClass |
const MSEdge * | myWaitingEdge |
double | myWaitingPos |
SUMOTime | myWaitingSince |
The time since which this person is waiting for a ride. More... | |
Static Protected Attributes | |
static const double | ROADSIDE_OFFSET |
the offset for computing positions when standing at an edge More... | |
Private Member Functions | |
MSStageDriving (const MSStageDriving &) | |
Invalidated copy constructor. More... | |
MSStageDriving & | operator= (const MSStageDriving &)=delete |
Invalidated assignment operator. More... | |
void | registerWaiting (MSTransportable *transportable, SUMOTime now) |
brief register waiting person (on proceed or loadState) More... | |
A "real" stage performing the travelling by a transport system The given route will be chosen. The travel time is computed by the simulation
Definition at line 59 of file MSStageDriving.h.
MSStageDriving::MSStageDriving | ( | const MSEdge * | origin, |
const MSEdge * | destination, | ||
MSStoppingPlace * | toStop, | ||
const double | arrivalPos, | ||
const std::vector< std::string > & | lines, | ||
const std::string & | group = "" , |
||
const std::string & | intendedVeh = "" , |
||
SUMOTime | intendedDepart = -1 |
||
) |
constructor
Definition at line 48 of file MSStageDriving.cpp.
References DRIVING, and INVALID.
Referenced by clone().
|
virtual |
destructor
Definition at line 76 of file MSStageDriving.cpp.
|
private |
Invalidated copy constructor.
|
virtual |
abort this stage (TraCI)
Reimplemented from MSStage.
Definition at line 447 of file MSStageDriving.cpp.
References MSTransportableControl::abortWaitingForVehicle(), getArrivalPos(), MSNet::getContainerControl(), MSLane::getEdge(), SUMOTrafficObject::getEdge(), MSNet::getInstance(), SUMOTrafficObject::getLane(), getLines(), MSNet::getPersonControl(), MSTransportable::isPerson(), MSStage::myDestination, MSStage::myDestinationStop, MSStage::myGroup, myVehicle, myWaitingEdge, myWaitingPos, MSDevice_Taxi::removeReservation(), and SUMOVehicle::removeTransportable().
bool MSStageDriving::canLeaveVehicle | ( | const MSTransportable * | t, |
const SUMOVehicle & | veh, | ||
const MSStop & | stop | ||
) |
checks whether the person may exit at the current vehicle position
Definition at line 476 of file MSStageDriving.cpp.
References SUMOVehicleParameter::arrivalPos, MSStoppingPlace::getAccessPos(), getArrivalPos(), MSStoppingPlace::getBeginLanePosition(), MSTransportable::getDestination(), MSLane::getEdge(), MSStop::getEdge(), SUMOTrafficObject::getEdge(), MSStoppingPlace::getEndLanePosition(), Named::getID(), MSStoppingPlace::getLane(), MSEdge::getLength(), SUMOVehicle::getLength(), MSTransportable::getNumRemainingStages(), MSTransportable::getParameter(), MSGlobals::gStopTolerance, SUMOVehicleParameter::interpretEdgePos(), MSStop::isInRange(), MSStage::myDestinationStop, SUMO_ATTR_ARRIVALPOS, unspecifiedArrivalPos(), VEHPARS_ARRIVALPOS_SET, and SUMOVehicleParameter::wasSet().
Referenced by MSDevice_Transportable::anyLeavingAtStop(), and MSDevice_Transportable::notifyMove().
|
virtual |
Implements MSStage.
Definition at line 70 of file MSStageDriving.cpp.
References MSStageDriving(), MSStage::myArrivalPos, MSStage::myDestination, MSStage::myDestinationStop, MSStage::myGroup, myIntendedDepart, myIntendedVehicleID, myLines, and myOrigin.
|
virtual |
returns the angle of the transportable
Implements MSStage.
Definition at line 147 of file MSStageDriving.cpp.
References MSVehicle::getAngle(), MSStage::getEdgeAngle(), MSGlobals::gLefthand, isWaiting4Vehicle(), M_PI, MSStage::myArrivalPos, MSStage::myArrived, MSStage::myDestination, myVehicle, myWaitingEdge, and myWaitingPos.
|
virtual |
return default value for undefined arrivalPos
Reimplemented from MSStage.
Definition at line 397 of file MSStageDriving.cpp.
References MSStage::getDestination(), MSEdge::getLength(), MSStage::myArrivalPos, and unspecifiedArrivalPos().
Referenced by abort(), canLeaveVehicle(), registerWaiting(), MSTransportable::rerouteParkingArea(), and tripInfoOutput().
|
inherited |
get arrival time of stage
Definition at line 122 of file MSStage.cpp.
References MSStage::myArrived.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
|
inherited |
get departure time of stage
Definition at line 117 of file MSStage.cpp.
References MSStage::myDeparted.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
|
inherited |
returns the destination edge
Definition at line 61 of file MSStage.cpp.
References MSStage::myDestination.
Referenced by MSPerson::checkAccess(), getArrivalPos(), MSStage::getEdges(), getEdges(), getStageSummary(), MSStageTranship::getStageSummary(), MSStageTrip::getStageSummary(), MSStageWaiting::getStageSummary(), MSPModel_Striping::moveInDirectionOnLane(), MSRouteHandler::parseWalkPositions(), MSTransportable::proceed(), registerWaiting(), MSTransportable::rerouteParkingArea(), routeOutput(), MSStageWaiting::routeOutput(), and MSStageTrip::setArrived().
|
inlineinherited |
returns the destination stop (if any)
Definition at line 80 of file MSStage.h.
References MSStage::myDestinationStop.
Referenced by MSPerson::checkAccess(), GUIPerson::getDestinationStopID(), LIBSUMO_NAMESPACE::Person::getStage(), getStageSummary(), MSStageTranship::getStageSummary(), MSStageWaiting::getStageSummary(), loadState(), MSPModel_Striping::moveInDirectionOnLane(), MSDevice_Transportable::notifyMove(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), MSRouteHandler::parseWalkPositions(), proceed(), MSTransportable::proceed(), registerWaiting(), MSTransportable::rerouteParkingArea(), and MSStageTrip::setArrived().
|
virtual |
Return the movement directon on the edge.
Reimplemented from MSStage.
Definition at line 113 of file MSStageDriving.cpp.
References MSPModel::FORWARD, isWaiting4Vehicle(), MSStage::myArrived, and MSPModel::UNDEFINED_DIRECTION.
|
virtual |
get travel distance in this stage
Implements MSStage.
Definition at line 164 of file MSStageDriving.cpp.
References SUMOVehicle::getOdometer(), myVehicle, and myVehicleDistance.
Referenced by tripInfoOutput().
|
virtual |
Returns the current edge.
Reimplemented from MSStage.
Definition at line 80 of file MSStageDriving.cpp.
References MSLane::getEdge(), SUMOTrafficObject::getEdge(), SUMOTrafficObject::getLane(), MSStage::myArrived, MSStage::myDestination, myVehicle, and myWaitingEdge.
Referenced by getEdgePos().
|
inherited |
get angle of the edge at a certain position
Definition at line 149 of file MSStage.cpp.
References MSEdge::getLanes().
Referenced by MSPModel_NonInteracting::PState::getAngle(), MSPModel_NonInteracting::CState::getAngle(), getAngle(), MSStageTrip::getAngle(), and MSStageWaiting::getAngle().
|
virtual |
Reimplemented from MSStage.
Definition at line 101 of file MSStageDriving.cpp.
References getEdge(), SUMOTrafficObject::getPositionOnLane(), isWaiting4Vehicle(), MIN2(), MSStage::myArrivalPos, MSStage::myArrived, myVehicle, and myWaitingPos.
get position on edge e at length at with orthogonal offset
Definition at line 138 of file MSStage.cpp.
References MSStage::getLanePosition(), and MSEdge::getLanes().
Referenced by getPosition(), MSStageTrip::getPosition(), and MSStageWaiting::getPosition().
|
virtual |
the edges of the current stage
Reimplemented from MSStage.
Definition at line 389 of file MSStageDriving.cpp.
References MSStage::getDestination(), and getFromEdge().
|
virtual |
Reimplemented from MSStage.
Definition at line 95 of file MSStageDriving.cpp.
References myWaitingEdge.
Referenced by getEdges(), and routeOutput().
|
inlineinherited |
return the id of the group of transportables traveling together
Definition at line 122 of file MSStage.h.
References MSStage::myGroup.
|
inline |
Definition at line 159 of file MSStageDriving.h.
References myIntendedDepart.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
|
inline |
Definition at line 155 of file MSStageDriving.h.
References myIntendedVehicleID.
Referenced by GUIBusStop::getParameterWindow(), and LIBSUMO_NAMESPACE::Person::getStage().
|
virtual |
Returns the current lane (if applicable)
Reimplemented from MSStage.
Definition at line 124 of file MSStageDriving.cpp.
References SUMOTrafficObject::getLane(), and myVehicle.
get position on lane at length at with orthogonal offset
Definition at line 143 of file MSStage.cpp.
References MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), and PositionVector::positionAtOffset().
Referenced by MSPModel_NonInteracting::CState::computeDuration(), MSStage::getEdgePosition(), MSPModel_NonInteracting::PState::getPosition(), and MSPModel_Striping::PState::getPosition().
|
inline |
Definition at line 151 of file MSStageDriving.h.
References myLines.
Referenced by abort(), GUIBusStop::getParameterWindow(), LIBSUMO_NAMESPACE::Person::getStage(), registerWaiting(), and MSTransportable::rerouteParkingArea().
|
inlinevirtual |
returns the origin stop (if any). only needed for MSStageTrip
Reimplemented from MSStage.
Definition at line 90 of file MSStageDriving.h.
References myOriginStop.
Referenced by MSTransportable::~MSTransportable().
returns the position of the transportable
Implements MSStage.
Definition at line 130 of file MSStageDriving.cpp.
References MSStage::getEdgePosition(), SUMOTrafficObject::getPosition(), MSGlobals::gLefthand, Position::INVALID, isWaiting4Vehicle(), MSStage::myArrivalPos, MSStage::myArrived, MSStage::myDestination, myStopWaitPos, myVehicle, myWaitingEdge, myWaitingPos, and MSStage::ROADSIDE_OFFSET.
|
inlinevirtualinherited |
return index of current edge within route
Reimplemented in MSPerson::MSPersonStage_Walking.
|
virtual |
the speed of the transportable
Reimplemented from MSStage.
Definition at line 383 of file MSStageDriving.cpp.
References SUMOTrafficObject::getSpeed(), and myVehicle.
|
virtual |
return (brief) string representation of the current stage
Implements MSStage.
Definition at line 174 of file MSStageDriving.cpp.
References isWaiting4Vehicle(), joinToString(), and myLines.
|
virtual |
return string summary of the current stage
Implements MSStage.
Definition at line 180 of file MSStageDriving.cpp.
References MSStage::getDestination(), MSStage::getDestinationStop(), Named::getID(), MSStoppingPlace::getMyName(), isWaiting4Vehicle(), joinToString(), myIntendedDepart, myIntendedVehicleID, myLines, and time2string().
|
inlineinherited |
Definition at line 117 of file MSStage.h.
References MSStage::myType.
Referenced by MSPerson::checkAccess(), LIBSUMO_NAMESPACE::Person::getStage(), loadState(), proceed(), MSTransportable::proceed(), MSTransportable::rerouteParkingArea(), routeOutput(), and MSStageTrip::routeOutput().
|
inlinevirtual |
Current vehicle in which the transportable is driving (or nullptr)
Reimplemented from MSStage.
Definition at line 135 of file MSStageDriving.h.
References myVehicle.
Referenced by MSTransportable::rerouteParkingArea(), and MSTransportable::~MSTransportable().
|
inline |
Definition at line 163 of file MSStageDriving.h.
References myVehicleType.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
std::string MSStageDriving::getWaitingDescription | ( | ) | const |
Return where the person waits and for what.
Definition at line 466 of file MSStageDriving.cpp.
References Named::getID(), isWaiting4Vehicle(), joinToString(), MSStage::myDestinationStop, myLines, and myWaitingEdge.
Referenced by MSTransportableControl::abortAnyWaitingForVehicle().
time spent waiting for a ride
Reimplemented from MSStage.
Definition at line 377 of file MSStageDriving.cpp.
References isWaiting4Vehicle(), and myWaitingSince.
|
virtual |
Whether the person waits for a vehicle.
Reimplemented from MSStage.
Definition at line 371 of file MSStageDriving.cpp.
References MSStage::myArrived, and myVehicle.
Referenced by getAngle(), getDirection(), getEdgePos(), getPosition(), getStageDescription(), getStageSummary(), getWaitingDescription(), and getWaitingTime().
|
virtual |
Whether the person waits for the given vehicle.
Reimplemented from MSStage.
Definition at line 358 of file MSStageDriving.cpp.
References MSDevice_Taxi::compatibleLine(), Named::getID(), SUMOTrafficObject::getParameter(), SUMOVehicleParameter::line, MSStage::myDestination, MSStage::myDestinationStop, myLines, SUMOVehicle::stopsAt(), and SUMOVehicle::stopsAtEdge().
|
virtual |
Reconstructs the current state.
Reimplemented from MSStage.
Definition at line 521 of file MSStageDriving.cpp.
References MSStoppingPlace::addTransportable(), SUMOVehicle::addTransportable(), MSStage::getArrivalPos(), MSStage::getDestinationStop(), MSLane::getEdge(), MSStage::getEdge(), MSNet::getInstance(), MSStoppingPlace::getLane(), MSTransportable::getNextStage(), MSStage::getOriginStop(), MSStage::getStageType(), MSVehicleControl::getVehicle(), MSNet::getVehicleControl(), MSStoppingPlace::getWaitingPositionOnLane(), MSStoppingPlace::getWaitPosition(), Position::INVALID, MSStage::myArrived, MSStage::myDeparted, myOriginStop, myStopWaitPos, myTimeLoss, myVehicle, myVehicleDistance, myWaitingEdge, myWaitingPos, myWaitingSince, registerWaiting(), setVehicle(), SIMSTEP, and TRIP.
|
inlineinherited |
Definition at line 228 of file MSStage.h.
References MSStage::myParametersSet.
Referenced by MSStageTrip::setArrived().
|
privatedelete |
Invalidated assignment operator.
|
virtual |
proceeds to this stage
Implements MSStage.
Definition at line 196 of file MSStageDriving.cpp.
References MSInsertionControl::add(), SUMOVehicle::addTransportable(), CONTAINER_TRIGGERED, SUMOVehicleParameter::departProcedure, MSStoppingPlace::getAccessPos(), MSStage::getDestinationStop(), MSLane::getEdge(), MSStage::getEdge(), SUMOTrafficObject::getEdge(), MSStage::getEdgePos(), Named::getID(), MSNet::getInsertionControl(), MSStoppingPlace::getLane(), MSTransportable::getNumRemainingStages(), MSTransportable::getNumStages(), MSStage::getOriginStop(), MSTransportable::getParameter(), SUMOTrafficObject::getParameter(), MSStage::getStageType(), MSEdge::getSuccessors(), MSVehicleControl::getVehicle(), MSNet::getVehicleControl(), MSStoppingPlace::getWaitingPositionOnLane(), MSEdge::getWaitingVehicle(), MSStoppingPlace::getWaitPosition(), SUMOVehicle::hasDeparted(), Position::INVALID, MSTransportable::isPerson(), MSEdge::isTazConnector(), myLines, myOrigin, myOriginStop, myStopWaitPos, myVehicle, myWaitingEdge, myWaitingPos, myWaitingSince, registerWaiting(), MSStoppingPlace::removeTransportable(), MSEdge::removeWaiting(), setVehicle(), TRIGGERED, TRIP, and MSVehicleControl::unregisterOneWaiting().
|
private |
brief register waiting person (on proceed or loadState)
Definition at line 262 of file MSStageDriving.cpp.
References MSDevice_Taxi::addReservation(), MSEdge::addTransportable(), MSTransportableControl::addWaiting(), MSStoppingPlace::getAllAccessPos(), getArrivalPos(), MSNet::getContainerControl(), MSStage::getDestination(), MSStage::getDestinationStop(), MSNet::getInstance(), getLines(), MSEdge::getPermissions(), MSNet::getPersonControl(), Position::INVALID, MSTransportable::isPerson(), MSDevice_Taxi::isReservation(), MSStage::myGroup, myOriginStop, myStopWaitPos, myWaitingEdge, myWaitingPos, and SVC_TAXI.
Referenced by loadState(), and proceed().
|
virtual |
Called on writing vehroute output.
[in] | isPerson | Whether we are writing person or container info |
[in] | os | The stream to write the information into |
[in] | withRouteLength | whether route length shall be written |
[in] | previous | The previous stage for additional info such as from edge |
IOError | not yet implemented |
Implements MSStage.
Definition at line 322 of file MSStageDriving.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), MSStage::getDestination(), MSStage::getEdge(), MSStoppingPlace::getElement(), getFromEdge(), Named::getID(), MSStoppingPlace::getMyName(), OptionsCont::getOptions(), MSStage::getStageType(), MSStage::myArrivalPos, MSStage::myArrived, MSStage::myDeparted, MSStage::myDestinationStop, myIntendedDepart, myIntendedVehicleID, myLines, myVehicleDistance, OutputDevice::openTag(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPART, SUMO_ATTR_ENDED, SUMO_ATTR_FROM, SUMO_ATTR_INTENDED, SUMO_ATTR_LINES, SUMO_ATTR_STARTED, SUMO_ATTR_TO, SUMO_TAG_RIDE, SUMO_TAG_TRANSPORT, time2string(), toString(), unspecifiedArrivalPos(), WAITING_FOR_DEPART, and OutputDevice::writeAttr().
|
virtual |
Saves the current state into the given stream.
Reimplemented from MSStage.
Definition at line 511 of file MSStageDriving.cpp.
References Named::getID(), MSStage::myArrived, MSStage::myDeparted, myTimeLoss, myVehicle, myVehicleDistance, and myWaitingSince.
|
inlineinherited |
Definition at line 93 of file MSStage.h.
References MSStage::myArrivalPos.
Referenced by MSTransportable::rerouteParkingArea(), and MSStageTrip::setArrived().
|
virtual |
marks arrival time and records driven distance
Reimplemented from MSStage.
Definition at line 407 of file MSStageDriving.cpp.
References SUMOVehicle::getArrivalPos(), SUMOVehicle::getOdometer(), SUMOTrafficObject::getPositionOnLane(), SUMOVehicle::getTimeLoss(), MSStage::myArrivalPos, myTimeLoss, myVehicle, myVehicleDistance, and MSStage::setArrived().
|
inherited |
|
inherited |
Definition at line 155 of file MSStage.cpp.
References MSStoppingPlace::getBeginLanePosition(), MSStoppingPlace::getEndLanePosition(), MSStage::myArrivalPos, MSStage::myDestination, and MSStage::myDestinationStop.
Referenced by MSTransportable::rerouteParkingArea().
|
inline |
change origin for parking area rerouting
Definition at line 168 of file MSStageDriving.h.
References myOrigin.
Referenced by MSTransportable::rerouteParkingArea().
|
inlinevirtualinherited |
sets the walking speed (ignored in other stages)
Reimplemented in MSPerson::MSPersonStage_Walking.
void MSStageDriving::setVehicle | ( | SUMOVehicle * | v | ) |
Definition at line 428 of file MSStageDriving.cpp.
References MSVehicleType::getID(), Named::getID(), SUMOVehicle::getOdometer(), SUMOTrafficObject::getParameter(), SUMOVehicle::getTimeLoss(), SUMOTrafficObject::getVClass(), SUMOTrafficObject::getVehicleType(), SUMOVehicle::hasDeparted(), SUMOVehicleParameter::line, myTimeLoss, myVehicle, myVehicleDistance, myVehicleID, myVehicleLine, myVehicleType, and myVehicleVClass.
Referenced by loadState(), proceed(), and MSDevice_Transportable::~MSDevice_Transportable().
|
virtual |
Called on writing tripinfo output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Implements MSStage.
Definition at line 301 of file MSStageDriving.cpp.
References MSDevice_Tripinfo::addRideTransportData(), OutputDevice::closeTag(), getArrivalPos(), MSNet::getCurrentTimeStep(), getDistance(), MSNet::getInstance(), MSTransportable::isPerson(), MSStage::myArrived, MSStage::myDeparted, myTimeLoss, myVehicle, myVehicleDistance, myVehicleID, myVehicleLine, myVehicleVClass, myWaitingSince, OutputDevice::openTag(), time2string(), toString(), and OutputDevice::writeAttr().
bool MSStageDriving::unspecifiedArrivalPos | ( | ) | const |
Definition at line 402 of file MSStageDriving.cpp.
References MSStage::myArrivalPos.
Referenced by canLeaveVehicle(), getArrivalPos(), and routeOutput().
|
inlineinherited |
Definition at line 224 of file MSStage.h.
References MSStage::myParametersSet.
Referenced by MSStageTrip::routeOutput(), and MSStageTrip::setArrived().
|
protectedinherited |
the position at which we want to arrive
Definition at line 241 of file MSStage.h.
Referenced by clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), getAngle(), MSStageWaiting::getAngle(), MSPerson::MSPersonStage_Walking::getArrivalPos(), MSStage::getArrivalPos(), getArrivalPos(), MSStageTranship::getArrivalPos(), MSStage::getEdgePos(), getEdgePos(), getPosition(), MSStageWaiting::getPosition(), MSPerson::MSPersonStage_Walking::MSPersonStage_Walking(), MSStageTranship::MSStageTranship(), routeOutput(), MSStageTrip::routeOutput(), MSStage::setArrivalPos(), setArrived(), MSStageTrip::setArrived(), MSStage::setDestination(), MSStageTranship::tripInfoOutput(), MSStageWaiting::tripInfoOutput(), and unspecifiedArrivalPos().
|
protectedinherited |
the time at which this stage ended
Definition at line 247 of file MSStage.h.
Referenced by getAngle(), MSStage::getArrived(), getDirection(), MSStageTranship::getDistance(), getEdge(), getEdgePos(), getPosition(), isWaiting4Vehicle(), loadState(), routeOutput(), MSStageTranship::routeOutput(), MSStageTrip::routeOutput(), MSStageWaiting::routeOutput(), saveState(), MSStage::setArrived(), tripInfoOutput(), MSStageTranship::tripInfoOutput(), and MSStageWaiting::tripInfoOutput().
|
protectedinherited |
the time at which this stage started
Definition at line 244 of file MSStage.h.
Referenced by MSStage::getDeparted(), MSStageTranship::getDistance(), loadState(), MSStageWaiting::loadState(), MSStageTranship::proceed(), MSStageWaiting::proceed(), routeOutput(), MSStageTranship::routeOutput(), MSStageWaiting::routeOutput(), saveState(), MSStageWaiting::saveState(), MSStage::setDeparted(), tripInfoOutput(), MSStageTranship::tripInfoOutput(), and MSStageWaiting::tripInfoOutput().
|
protectedinherited |
the next edge to reach by getting transported
Definition at line 235 of file MSStage.h.
Referenced by abort(), clone(), MSStageTrip::clone(), MSStageWaiting::clone(), getAngle(), MSStageWaiting::getAngle(), MSStage::getDestination(), MSStage::getEdge(), getEdge(), MSStage::getFromEdge(), getPosition(), MSStageWaiting::getPosition(), isWaitingFor(), MSStageWaiting::loadState(), MSStageTrip::routeOutput(), MSStageTrip::setArrived(), and MSStage::setDestination().
|
protectedinherited |
the stop to reach by getting transported (if any)
Definition at line 238 of file MSStage.h.
Referenced by abort(), canLeaveVehicle(), clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStage::getDestinationStop(), getWaitingDescription(), isWaitingFor(), MSStageWaiting::loadState(), MSStageTranship::moveToNextEdge(), MSPerson::MSPersonStage_Access::MSPersonStage_Access(), MSStageWaiting::proceed(), routeOutput(), MSStageTranship::routeOutput(), MSStageTrip::routeOutput(), MSStageWaiting::routeOutput(), MSStageTrip::setArrived(), and MSStage::setDestination().
|
protectedinherited |
The id of the group of transportables traveling together.
Definition at line 253 of file MSStage.h.
Referenced by abort(), clone(), MSStageTrip::clone(), MSStage::getGroup(), registerWaiting(), MSStageTrip::routeOutput(), and MSStageTrip::setArrived().
|
protected |
Definition at line 211 of file MSStageDriving.h.
Referenced by clone(), getIntendedDepart(), getStageSummary(), and routeOutput().
|
protected |
Definition at line 210 of file MSStageDriving.h.
Referenced by clone(), getIntendedVehicleID(), getStageSummary(), and routeOutput().
|
protected |
the lines to choose from
Definition at line 188 of file MSStageDriving.h.
Referenced by clone(), getLines(), getStageDescription(), getStageSummary(), getWaitingDescription(), isWaitingFor(), proceed(), and routeOutput().
|
protected |
the origin edge
Definition at line 185 of file MSStageDriving.h.
Referenced by clone(), proceed(), and setOrigin().
|
protected |
the stop at which this ride starts (or nullptr)
Definition at line 208 of file MSStageDriving.h.
Referenced by getOriginStop(), loadState(), proceed(), and registerWaiting().
|
protectedinherited |
Information on which parameter were set (mainly for vehroute output)
Definition at line 256 of file MSStage.h.
Referenced by MSStage::markSet(), and MSStage::wasSet().
|
protected |
Definition at line 206 of file MSStageDriving.h.
Referenced by getPosition(), loadState(), proceed(), and registerWaiting().
|
protected |
While driving, this is the timeLoss of the vehicle when the ride started, after arrival this is the timeLoss which the vehicle accumulated during the ride.
Definition at line 200 of file MSStageDriving.h.
Referenced by loadState(), saveState(), setArrived(), setVehicle(), and tripInfoOutput().
|
protectedinherited |
The type of this stage.
Definition at line 250 of file MSStage.h.
Referenced by MSStageWaiting::abort(), MSStageWaiting::clone(), MSStage::getStageType(), MSStageWaiting::routeOutput(), and MSStageWaiting::tripInfoOutput().
|
protected |
The taken vehicle.
Definition at line 191 of file MSStageDriving.h.
Referenced by abort(), getAngle(), getDistance(), getEdge(), getEdgePos(), getLane(), getPosition(), getSpeed(), getVehicle(), isWaiting4Vehicle(), loadState(), proceed(), saveState(), setArrived(), setVehicle(), and tripInfoOutput().
|
protected |
Definition at line 198 of file MSStageDriving.h.
Referenced by getDistance(), loadState(), routeOutput(), saveState(), setArrived(), setVehicle(), and tripInfoOutput().
|
protected |
cached vehicle data for output after the vehicle has been removed
Definition at line 193 of file MSStageDriving.h.
Referenced by setVehicle(), and tripInfoOutput().
|
protected |
Definition at line 194 of file MSStageDriving.h.
Referenced by setVehicle(), and tripInfoOutput().
|
protected |
Definition at line 195 of file MSStageDriving.h.
Referenced by getVehicleType(), and setVehicle().
|
protected |
Definition at line 197 of file MSStageDriving.h.
Referenced by setVehicle(), and tripInfoOutput().
|
protected |
Definition at line 205 of file MSStageDriving.h.
Referenced by abort(), getAngle(), getEdge(), getFromEdge(), getPosition(), getWaitingDescription(), loadState(), proceed(), and registerWaiting().
|
protected |
Definition at line 202 of file MSStageDriving.h.
Referenced by abort(), getAngle(), getEdgePos(), getPosition(), loadState(), proceed(), and registerWaiting().
|
protected |
The time since which this person is waiting for a ride.
Definition at line 204 of file MSStageDriving.h.
Referenced by getWaitingTime(), loadState(), proceed(), saveState(), and tripInfoOutput().
|
staticprotectedinherited |
the offset for computing positions when standing at an edge
Definition at line 259 of file MSStage.h.
Referenced by getPosition(), MSStageTrip::getPosition(), and MSStageWaiting::getPosition().