![]() |
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... | |
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 double | getSpeed () const |
the speed of the transportable 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 |
Whether the transportable waits for a vehicle. 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... | |
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... | |
~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... | |
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 186 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 341 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 353 of file MSPerson.cpp.
|
inlinevirtualinherited |
abort this stage (TraCI)
Reimplemented in MSStageDriving, MSStageWaiting, and MSPerson::MSPersonStage_Walking.
Definition at line 133 of file MSStage.h.
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject().
|
virtual |
Implements MSStage.
Definition at line 356 of file MSPerson.cpp.
|
virtual |
returns the angle of the transportable
Implements MSStage.
Definition at line 388 of file MSPerson.cpp.
|
inlinevirtualinherited |
Reimplemented in MSStageTranship, MSStageDriving, and MSPerson::MSPersonStage_Walking.
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(), 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 126 of file MSStage.cpp.
References MSStage::myArrived.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
|
inherited |
get departure time of stage
Definition at line 121 of file MSStage.cpp.
References MSStage::myDeparted.
Referenced by LIBSUMO_NAMESPACE::Person::getStage().
|
inherited |
returns the destination edge
Definition at line 70 of file MSStage.cpp.
References MSStage::myDestination.
Referenced by MSPerson::checkAccess(), MSStageDriving::getArrivalPos(), MSStage::getEdges(), MSStageDriving::getEdges(), MSStageTrip::getStageSummary(), MSStageWaiting::getStageSummary(), MSStageDriving::getStageSummary(), MSStageTranship::getStageSummary(), MSPModel_Striping::moveInDirectionOnLane(), MSRouteHandler::parseWalkPositions(), MSStageDriving::proceed(), MSTransportable::proceed(), MSTransportable::rerouteParkingArea(), MSStageWaiting::routeOutput(), MSStageDriving::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(), LIBSUMO_NAMESPACE::Person::getStage(), MSStageDriving::getStageSummary(), MSStageTranship::getStageSummary(), MSPModel_Striping::moveInDirectionOnLane(), GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), MSRouteHandler::parseWalkPositions(), MSStageDriving::proceed(), MSTransportable::proceed(), MSTransportable::rerouteParkingArea(), and MSStageTrip::setArrived().
|
inlinevirtual |
get travel distance in this stage
Implements MSStage.
Definition at line 209 of file MSPerson.h.
References myDist.
|
virtualinherited |
Returns the current edge.
Reimplemented in MSStageDriving, MSStageMoving, and MSStageTrip.
Definition at line 76 of file MSStage.cpp.
References MSStage::myDestination.
Referenced by GUIPerson::GUIPersonPopupMenu::onCmdRemoveObject(), MSPerson::MSPersonStage_Walking::proceed(), MSStageWaiting::proceed(), MSStageDriving::proceed(), MSTransportable::proceed(), and MSStageDriving::routeOutput().
|
inherited |
get angle of the edge at a certain position
Definition at line 153 of file MSStage.cpp.
References MSEdge::getLanes().
Referenced by MSPModel_NonInteracting::PState::getAngle(), MSPModel_NonInteracting::CState::getAngle(), MSStageTrip::getAngle(), MSStageWaiting::getAngle(), and MSStageDriving::getAngle().
|
virtualinherited |
Reimplemented in MSStageDriving, MSStageMoving, and MSStageTrip.
Definition at line 88 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 142 of file MSStage.cpp.
References MSStage::getLanePosition(), and MSEdge::getLanes().
Referenced by MSStageTrip::getPosition(), MSStageWaiting::getPosition(), and MSStageDriving::getPosition().
|
virtualinherited |
the edges of the current stage
Reimplemented in MSStageDriving, and MSStageMoving.
Definition at line 106 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 82 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 119 of file MSStage.h.
References MSStage::myGroup.
|
inlinevirtualinherited |
Returns the current lane (if applicable)
Reimplemented in MSStageMoving.
get position on lane at length at with orthogonal offset
Definition at line 147 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 MSStageDriving::proceed().
returns the position of the transportable
Implements MSStage.
Definition at line 382 of file MSPerson.cpp.
|
virtualinherited |
the speed of the transportable
Reimplemented in MSStageDriving, and MSStageMoving.
Definition at line 100 of file MSStage.cpp.
|
virtual |
returns the stage description as a string
Implements MSStage.
Definition at line 370 of file MSPerson.cpp.
|
virtual |
return string summary of the current stage
Implements MSStage.
Definition at line 376 of file MSPerson.cpp.
|
inlineinherited |
Definition at line 114 of file MSStage.h.
References MSStage::myType.
Referenced by MSPerson::checkAccess(), LIBSUMO_NAMESPACE::Person::getStage(), MSStageDriving::proceed(), MSTransportable::proceed(), MSTransportable::rerouteParkingArea(), and MSStageDriving::routeOutput().
|
inlinevirtualinherited |
Whether the transportable waits for a vehicle.
Reimplemented in MSStageDriving.
the time this transportable spent waiting
Reimplemented in MSStageDriving, MSStageMoving, and MSStageWaiting.
Definition at line 94 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 137 of file MSStage.cpp.
|
inlinevirtualinherited |
Reconstructs the current state, standard implementation does nothing.
Reimplemented in MSStageDriving, and MSPerson::MSPersonStage_Walking.
Definition at line 211 of file MSStage.h.
References UNUSED_PARAMETER.
|
virtual |
proceeds to the next step
Implements MSStage.
Definition at line 361 of file MSPerson.cpp.
References MSEventControl::addEvent(), MSNet::getBeginOfTimestepEvents(), MSLane::getEdge(), MSTransportable::getLane(), MSVehicleType::getMaxSpeed(), MSTransportable::getVehicleType(), and TIME2STEPS.
|
inlinevirtual |
Called on writing vehroute output. Currently does nothing.
Implements MSStage.
Definition at line 222 of file MSPerson.h.
|
inlinevirtualinherited |
Saves the current state into the given stream, standard implementation does nothing.
Reimplemented in MSStageDriving, and MSPerson::MSPersonStage_Walking.
Definition at line 205 of file MSStage.h.
References UNUSED_PARAMETER.
|
inlineinherited |
Definition at line 93 of file MSStage.h.
References MSStage::myArrivalPos.
Referenced by MSStageTrip::setArrived().
|
virtualinherited |
logs end of the step
Reimplemented in MSStageDriving, and MSStageTrip.
Definition at line 131 of file MSStage.cpp.
References MSStage::myArrived.
Referenced by MSTransportable::proceed(), MSStageTrip::setArrived(), and MSStageDriving::setArrived().
|
inherited |
|
inherited |
Definition at line 159 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 394 of file MSPerson.cpp.
References OutputDevice::closeTag(), Named::getID(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
private |
Definition at line 240 of file MSPerson.h.
|
protectedinherited |
the position at which we want to arrive
Definition at line 224 of file MSStage.h.
Referenced by MSStageTrip::clone(), MSStageWaiting::clone(), MSStageDriving::clone(), MSStageTranship::clone(), MSStageWaiting::getAngle(), MSStageDriving::getAngle(), MSPerson::MSPersonStage_Walking::getArrivalPos(), MSStage::getArrivalPos(), MSStageDriving::getArrivalPos(), MSStageTranship::getArrivalPos(), MSStage::getEdgePos(), MSStageDriving::getEdgePos(), MSStageWaiting::getPosition(), MSStageDriving::getPosition(), MSPerson::MSPersonStage_Walking::MSPersonStage_Walking(), MSStageTranship::MSStageTranship(), MSStageDriving::routeOutput(), MSStage::setArrivalPos(), MSStageTrip::setArrived(), MSStageDriving::setArrived(), MSStage::setDestination(), MSStageWaiting::tripInfoOutput(), MSStageTranship::tripInfoOutput(), and MSStageDriving::unspecifiedArrivalPos().
|
protectedinherited |
the time at which this stage ended
Definition at line 230 of file MSStage.h.
Referenced by MSStageDriving::getAngle(), MSStage::getArrived(), MSStageTranship::getDistance(), MSStageDriving::getEdge(), MSStageDriving::getEdgePos(), MSStageDriving::getPosition(), MSStageDriving::isWaiting4Vehicle(), MSStageDriving::loadState(), MSStageTranship::routeOutput(), MSStageDriving::saveState(), MSStage::setArrived(), MSStageWaiting::tripInfoOutput(), MSStageDriving::tripInfoOutput(), and MSStageTranship::tripInfoOutput().
|
protectedinherited |
the time at which this stage started
Definition at line 227 of file MSStage.h.
Referenced by MSStage::getDeparted(), MSStageTranship::getDistance(), MSStageWaiting::getWaitingTime(), MSStageDriving::loadState(), MSStageWaiting::proceed(), MSStageTranship::proceed(), MSStageTranship::routeOutput(), MSStageDriving::saveState(), MSStage::setDeparted(), MSStageWaiting::tripInfoOutput(), MSStageDriving::tripInfoOutput(), and MSStageTranship::tripInfoOutput().
|
protectedinherited |
the next edge to reach by getting transported
Definition at line 218 of file MSStage.h.
Referenced by MSStageDriving::abort(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageDriving::clone(), MSStageWaiting::getAngle(), MSStageDriving::getAngle(), MSStage::getDestination(), MSStage::getEdge(), MSStageDriving::getEdge(), MSStage::getFromEdge(), MSStageWaiting::getPosition(), MSStageDriving::getPosition(), MSStageDriving::isWaitingFor(), MSStageTrip::setArrived(), and MSStage::setDestination().
|
protectedinherited |
the stop to reach by getting transported (if any)
Definition at line 221 of file MSStage.h.
Referenced by MSStageDriving::abort(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageDriving::clone(), MSStageTranship::clone(), MSStage::getDestinationStop(), MSStageDriving::getWaitingDescription(), MSStageDriving::isWaitingFor(), MSStageTranship::moveToNextEdge(), MSPersonStage_Access(), MSStageWaiting::proceed(), MSStageWaiting::routeOutput(), MSStageDriving::routeOutput(), MSStageTrip::setArrived(), and MSStage::setDestination().
|
private |
Definition at line 239 of file MSPerson.h.
Referenced by getDistance().
|
private |
Definition at line 241 of file MSPerson.h.
|
protectedinherited |
The id of the group of transportables traveling together.
Definition at line 236 of file MSStage.h.
Referenced by MSStageDriving::clone(), MSStage::getGroup(), and MSStageDriving::proceed().
|
private |
Definition at line 242 of file MSPerson.h.
Referenced by MSPersonStage_Access().
|
protectedinherited |
The type of this stage.
Definition at line 233 of file MSStage.h.
Referenced by MSStageWaiting::clone(), MSStage::getStageType(), MSStageWaiting::routeOutput(), and MSStageWaiting::tripInfoOutput().
|
staticprotectedinherited |
the offset for computing positions when standing at an edge
Definition at line 239 of file MSStage.h.
Referenced by MSStageTrip::getPosition(), MSStageWaiting::getPosition(), and MSStageDriving::getPosition().