![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MSPerson.h>
Data Structures | |
class | ProceedCmd |
Public Member Functions | |
virtual void | abort (MSTransportable *) |
abort this stage (TraCI) More... | |
MSStage * | clone () const |
double | getAngle (SUMOTime now) const |
returns the angle of the transportable More... | |
virtual double | getArrivalPos () const |
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... | |
virtual int | getDirection () const |
Return the movement directon on the edge. More... | |
double | getDistance () const |
get travel distance in this stage More... | |
virtual 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... | |
virtual 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... | |
virtual ConstMSEdgeVector | getEdges () const |
the edges of the current stage More... | |
virtual const MSEdge * | getFromEdge () const |
const std::string & | getGroup () const |
return the id of the group of transportables traveling together More... | |
virtual 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... | |
virtual 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 person in this stage More... | |
std::string | getStageDescription (const bool isPerson) const |
returns the stage description as a string More... | |
std::string | getStageSummary (const bool isPerson) const |
return string summary of the current stage More... | |
MSStageType | getStageType () const |
virtual SUMOVehicle * | getVehicle () const |
Current vehicle in which the transportable is driving (or nullptr) More... | |
virtual SUMOTime | getWaitingTime (SUMOTime now) const |
the time this transportable spent waiting More... | |
virtual bool | isWaiting4Vehicle () const |
Whether the transportable waits for a vehicle. More... | |
virtual bool | isWaitingFor (const SUMOVehicle *vehicle) const |
Whether the transportable waits for the given vehicle. More... | |
virtual void | loadState (MSTransportable *transportable, std::istringstream &state) |
Reconstructs the current state, standard implementation does nothing. More... | |
void | markSet (int what) |
MSPersonStage_Access (const MSEdge *destination, MSStoppingPlace *toStop, const double arrivalPos, const double dist, const bool isExit) | |
constructor More... | |
virtual void | proceed (MSNet *net, MSTransportable *person, SUMOTime now, MSStage *previous) |
proceeds to the next step More... | |
void | routeOutput (const bool, OutputDevice &, const bool, const MSStage *const) const |
Called on writing vehroute output. Currently does nothing. More... | |
virtual void | saveState (std::ostringstream &out) |
Saves the current state into the given stream, standard implementation does nothing. More... | |
void | setArrivalPos (double arrivalPos) |
virtual const std::string | setArrived (MSNet *net, MSTransportable *transportable, SUMOTime now, const bool vehicleArrived) |
logs end of the step More... | |
void | setDeparted (SUMOTime now) |
logs end of the step More... | |
void | setDestination (const MSEdge *newDestination, MSStoppingPlace *newDestStop) |
virtual void | setSpeed (double) |
sets the walking speed (ignored in other stages) More... | |
void | tripInfoOutput (OutputDevice &os, const MSTransportable *const transportable) const |
Called on writing tripinfo output. More... | |
bool | wasSet (int what) const |
~MSPersonStage_Access () | |
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... | |
int | myParametersSet |
Information on which parameter were set (mainly for vehroute output) More... | |
MSStageType | myType |
The type of this stage. More... | |
Static Protected Attributes | |
static const double | ROADSIDE_OFFSET |
the offset for computing positions when standing at an edge More... | |
Private Attributes | |
const bool | myAmExit |
const double | myDist |
SUMOTime | myEstimatedArrival |
PositionVector | myPath |
An intermediate stage performing the access from or to public transport as given by the access elements of the public transport stop. The travel time is computed by the simulation
Definition at line 178 of file MSPerson.h.
MSPerson::MSPersonStage_Access::MSPersonStage_Access | ( | const MSEdge * | destination, |
MSStoppingPlace * | toStop, | ||
const double | arrivalPos, | ||
const double | dist, | ||
const bool | isExit | ||
) |
constructor
Definition at line 429 of file MSPerson.cpp.
References MSLane::geometryPositionAtOffset(), MSStoppingPlace::getAccessPos(), MSStoppingPlace::getBeginLanePosition(), MSStoppingPlace::getEndLanePosition(), MSStoppingPlace::getLane(), MSEdge::getLanes(), MSStage::myDestinationStop, myPath, and PositionVector::reverse().
MSPerson::MSPersonStage_Access::~MSPersonStage_Access | ( | ) |
destructor
Definition at line 441 of file MSPerson.cpp.
|
inlinevirtualinherited |
abort this stage (TraCI)
Reimplemented in MSPerson::MSPersonStage_Walking, MSStageWaiting, and MSStageDriving.
Definition at line 136 of file MSStage.h.
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject().
|
virtual |
Implements MSStage.
Definition at line 444 of file MSPerson.cpp.
|
virtual |
returns the angle of the transportable
Implements MSStage.
Definition at line 476 of file MSPerson.cpp.
|
inlinevirtualinherited |
Reimplemented in MSPerson::MSPersonStage_Walking, MSStageDriving, and MSStageTranship.
Definition at line 89 of file MSStage.h.
References MSStage::myArrivalPos.
Referenced by MSPModel_NonInteracting::PState::computeDuration(), MSPModel_NonInteracting::CState::computeDuration(), MSPModel_Striping::getNextLane(), LIBSUMO_NAMESPACE::Person::getStage(), GUIPerson::getStageArrivalPos(), MSStageDriving::loadState(), MSPModel_Striping::moveInDirectionOnLane(), LIBSUMO_NAMESPACE::Person::moveToXY(), MSRouteHandler::parseWalkPositions(), MSPModel_Striping::PState::PState(), MSTransportable::rerouteParkingArea(), LIBSUMO_NAMESPACE::Person::rerouteTraveltime(), MSStageWaiting::routeOutput(), and MSStageTrip::setArrived().
|
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(), MSStageDriving::getArrivalPos(), MSStage::getEdges(), MSStageDriving::getEdges(), MSStageDriving::getStageSummary(), MSStageTranship::getStageSummary(), MSStageTrip::getStageSummary(), MSStageWaiting::getStageSummary(), MSPModel_Striping::moveInDirectionOnLane(), MSRouteHandler::parseWalkPositions(), MSTransportable::proceed(), MSStageDriving::registerWaiting(), MSTransportable::rerouteParkingArea(), MSStageDriving::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(), MSStageDriving::getStageSummary(), MSStageTranship::getStageSummary(), MSStageWaiting::getStageSummary(), MSStageDriving::loadState(), MSPModel_Striping::moveInDirectionOnLane(), MSDevice_Transportable::notifyMove(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), MSRouteHandler::parseWalkPositions(), MSStageDriving::proceed(), MSTransportable::proceed(), MSStageDriving::registerWaiting(), MSTransportable::rerouteParkingArea(), and MSStageTrip::setArrived().
|
virtualinherited |
Return the movement directon on the edge.
Reimplemented in MSStageDriving, and MSStageMoving.
Definition at line 84 of file MSStage.cpp.
References MSPModel::UNDEFINED_DIRECTION.
|
inlinevirtual |
get travel distance in this stage
Implements MSStage.
Definition at line 201 of file MSPerson.h.
References myDist.
|
virtualinherited |
Returns the current edge.
Reimplemented in MSStageDriving, MSStageMoving, and MSStageTrip.
Definition at line 67 of file MSStage.cpp.
References MSStage::myDestination.
Referenced by MSStageDriving::loadState(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), MSPerson::MSPersonStage_Walking::proceed(), MSStageDriving::proceed(), MSStageWaiting::proceed(), MSTransportable::proceed(), and MSStageDriving::routeOutput().
|
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(), MSStageDriving::getAngle(), MSStageTrip::getAngle(), and MSStageWaiting::getAngle().
|
virtualinherited |
Reimplemented in MSStageDriving, MSStageMoving, and MSStageTrip.
Definition at line 79 of file MSStage.cpp.
References MSStage::myArrivalPos.
Referenced by MSEdge::transportable_by_position_sorter::operator()(), MSPerson::MSPersonStage_Walking::proceed(), MSStageDriving::proceed(), and MSStageTranship::proceed().
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 MSStageDriving::getPosition(), MSStageTrip::getPosition(), and MSStageWaiting::getPosition().
|
virtualinherited |
the edges of the current stage
Reimplemented in MSStageDriving, and MSStageMoving.
Definition at line 102 of file MSStage.cpp.
References MSStage::getDestination().
Referenced by LIBSUMO_NAMESPACE::Person::getStage(), LIBSUMO_NAMESPACE::Person::rerouteTraveltime(), and MSStageTrip::setArrived().
|
virtualinherited |
Reimplemented in MSStageDriving, and MSStageMoving.
Definition at line 73 of file MSStage.cpp.
References MSStage::myDestination.
Referenced by MSTransportable::rerouteParkingArea().
|
inlineinherited |
return the id of the group of transportables traveling together
Definition at line 122 of file MSStage.h.
References MSStage::myGroup.
|
inlinevirtualinherited |
Returns the current lane (if applicable)
Reimplemented in MSStageDriving, and MSStageMoving.
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().
|
inlinevirtualinherited |
returns the origin stop (if any). only needed for MSStageTrip
Reimplemented in MSStageDriving, and MSStageTrip.
Definition at line 85 of file MSStage.h.
Referenced by GUIPerson::getGUIPosition(), MSTransportableControl::loadAnyWaiting(), MSStageDriving::loadState(), MSStageDriving::proceed(), and MSTransportable::proceed().
returns the position of the transportable
Implements MSStage.
Definition at line 470 of file MSPerson.cpp.
|
inlinevirtualinherited |
return index of current edge within route
Reimplemented in MSPerson::MSPersonStage_Walking.
|
virtual |
the speed of the person in this stage
Reimplemented from MSStage.
Definition at line 482 of file MSPerson.cpp.
References MAX2(), and STEPS2TIME.
|
virtual |
returns the stage description as a string
Implements MSStage.
Definition at line 458 of file MSPerson.cpp.
|
virtual |
return string summary of the current stage
Implements MSStage.
Definition at line 464 of file MSPerson.cpp.
|
inlineinherited |
Definition at line 117 of file MSStage.h.
References MSStage::myType.
Referenced by MSPerson::checkAccess(), LIBSUMO_NAMESPACE::Person::getStage(), MSStageDriving::loadState(), MSStageDriving::proceed(), MSTransportable::proceed(), MSTransportable::rerouteParkingArea(), MSStageDriving::routeOutput(), and MSStageTrip::routeOutput().
|
inlinevirtualinherited |
Current vehicle in which the transportable is driving (or nullptr)
Reimplemented in MSStageDriving.
Definition at line 162 of file MSStage.h.
Referenced by GUIPerson::getVehicleID().
the time this transportable spent waiting
Reimplemented in MSStageDriving, and MSStageMoving.
Definition at line 90 of file MSStage.cpp.
|
inlinevirtualinherited |
Whether the transportable waits for a vehicle.
Reimplemented in MSStageDriving.
|
virtualinherited |
Whether the transportable waits for the given vehicle.
Reimplemented in MSStageDriving.
Definition at line 133 of file MSStage.cpp.
|
inlinevirtualinherited |
Reconstructs the current state, standard implementation does nothing.
Reimplemented in MSPerson::MSPersonStage_Walking, MSStageDriving, and MSStageWaiting.
Definition at line 219 of file MSStage.h.
References UNUSED_PARAMETER.
|
inlineinherited |
Definition at line 228 of file MSStage.h.
References MSStage::myParametersSet.
Referenced by MSStageTrip::setArrived().
|
virtual |
proceeds to the next step
Implements MSStage.
Definition at line 449 of file MSPerson.cpp.
References MSEventControl::addEvent(), MSNet::getBeginOfTimestepEvents(), MSLane::getEdge(), MSTransportable::getLane(), MSTransportable::getMaxSpeed(), and TIME2STEPS.
|
inlinevirtual |
Called on writing vehroute output. Currently does nothing.
Implements MSStage.
Definition at line 217 of file MSPerson.h.
|
inlinevirtualinherited |
Saves the current state into the given stream, standard implementation does nothing.
Reimplemented in MSPerson::MSPersonStage_Walking, MSStageDriving, and MSStageWaiting.
Definition at line 213 of file MSStage.h.
References UNUSED_PARAMETER.
|
inlineinherited |
Definition at line 93 of file MSStage.h.
References MSStage::myArrivalPos.
Referenced by MSTransportable::rerouteParkingArea(), and MSStageTrip::setArrived().
|
virtualinherited |
logs end of the step
Reimplemented in MSStageDriving, and MSStageTrip.
Definition at line 127 of file MSStage.cpp.
References MSStage::myArrived.
Referenced by MSTransportable::proceed(), MSStageDriving::setArrived(), and MSStageTrip::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().
|
inlinevirtualinherited |
sets the walking speed (ignored in other stages)
Reimplemented in MSPerson::MSPersonStage_Walking.
|
virtual |
Called on writing tripinfo output.
[in] | os | The stream to write the information into |
[in] | transportable | The person to write information about |
IOError | not yet implemented |
Implements MSStage.
Definition at line 487 of file MSPerson.cpp.
References OutputDevice::closeTag(), Named::getID(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
inlineinherited |
Definition at line 224 of file MSStage.h.
References MSStage::myParametersSet.
Referenced by MSStageTrip::routeOutput(), and MSStageTrip::setArrived().
|
private |
Definition at line 235 of file MSPerson.h.
|
protectedinherited |
the position at which we want to arrive
Definition at line 241 of file MSStage.h.
Referenced by MSStageDriving::clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageDriving::getAngle(), MSStageWaiting::getAngle(), MSPerson::MSPersonStage_Walking::getArrivalPos(), MSStage::getArrivalPos(), MSStageDriving::getArrivalPos(), MSStageTranship::getArrivalPos(), MSStage::getEdgePos(), MSStageDriving::getEdgePos(), MSStageDriving::getPosition(), MSStageWaiting::getPosition(), MSPerson::MSPersonStage_Walking::MSPersonStage_Walking(), MSStageTranship::MSStageTranship(), MSStageDriving::routeOutput(), MSStageTrip::routeOutput(), MSStage::setArrivalPos(), MSStageDriving::setArrived(), MSStageTrip::setArrived(), MSStage::setDestination(), MSStageTranship::tripInfoOutput(), MSStageWaiting::tripInfoOutput(), and MSStageDriving::unspecifiedArrivalPos().
|
protectedinherited |
the time at which this stage ended
Definition at line 247 of file MSStage.h.
Referenced by MSStageDriving::getAngle(), MSStage::getArrived(), MSStageDriving::getDirection(), MSStageTranship::getDistance(), MSStageDriving::getEdge(), MSStageDriving::getEdgePos(), MSStageDriving::getPosition(), MSStageDriving::isWaiting4Vehicle(), MSStageDriving::loadState(), MSStageDriving::routeOutput(), MSStageTranship::routeOutput(), MSStageTrip::routeOutput(), MSStageWaiting::routeOutput(), MSStageDriving::saveState(), MSStage::setArrived(), MSStageDriving::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(), MSStageDriving::loadState(), MSStageWaiting::loadState(), MSStageTranship::proceed(), MSStageWaiting::proceed(), MSStageDriving::routeOutput(), MSStageTranship::routeOutput(), MSStageWaiting::routeOutput(), MSStageDriving::saveState(), MSStageWaiting::saveState(), MSStage::setDeparted(), MSStageDriving::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 MSStageDriving::abort(), MSStageDriving::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageDriving::getAngle(), MSStageWaiting::getAngle(), MSStage::getDestination(), MSStage::getEdge(), MSStageDriving::getEdge(), MSStage::getFromEdge(), MSStageDriving::getPosition(), MSStageWaiting::getPosition(), MSStageDriving::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 MSStageDriving::abort(), MSStageDriving::canLeaveVehicle(), MSStageDriving::clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStage::getDestinationStop(), MSStageDriving::getWaitingDescription(), MSStageDriving::isWaitingFor(), MSStageWaiting::loadState(), MSStageTranship::moveToNextEdge(), MSPersonStage_Access(), MSStageWaiting::proceed(), MSStageDriving::routeOutput(), MSStageTranship::routeOutput(), MSStageTrip::routeOutput(), MSStageWaiting::routeOutput(), MSStageTrip::setArrived(), and MSStage::setDestination().
|
private |
Definition at line 234 of file MSPerson.h.
Referenced by getDistance().
|
private |
Definition at line 236 of file MSPerson.h.
|
protectedinherited |
The id of the group of transportables traveling together.
Definition at line 253 of file MSStage.h.
Referenced by MSStageDriving::abort(), MSStageDriving::clone(), MSStageTrip::clone(), MSStage::getGroup(), MSStageDriving::registerWaiting(), MSStageTrip::routeOutput(), and MSStageTrip::setArrived().
|
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().
|
private |
Definition at line 237 of file MSPerson.h.
Referenced by MSPersonStage_Access().
|
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().
|
staticprotectedinherited |
the offset for computing positions when standing at an edge
Definition at line 259 of file MSStage.h.
Referenced by MSStageDriving::getPosition(), MSStageTrip::getPosition(), and MSStageWaiting::getPosition().