![]() |
SUMO - Simulation of Urban MObility
|
#include <MSPerson.h>
Data Structures | |
class | ProceedCmd |
Public Member Functions | |
virtual void | abort (MSTransportable *) |
abort this stage (TraCI) More... | |
void | beginEventOutput (const MSTransportable &, SUMOTime, OutputDevice &) const |
Called on writing events output (begin of an action). Currently does nothing. More... | |
void | endEventOutput (const MSTransportable &, SUMOTime, OutputDevice &) const |
Called on writing events output (end of an action). Currently does nothing. More... | |
double | getAngle (SUMOTime now) const |
returns the angle of the transportable More... | |
double | getArrivalPos () const |
const MSEdge * | getDestination () const |
returns the destination edge More... | |
MSStoppingPlace * | getDestinationStop () const |
returns the destination stop (if any) 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 |
Position | getLanePosition (const MSLane *lane, double at, double offset) const |
get position on lane at length at with orthogonal offset 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 |
returns the stage description as a string More... | |
std::string | getStageSummary () const |
return string summary of the current stage More... | |
StageType | 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 std::string &line) const |
Whether the transportable waits for a vehicle of the line specified. 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, Stage *previous) |
proceeds to the next step More... | |
void | routeOutput (OutputDevice &, const bool) const |
Called on writing vehroute output. Currently does nothing. More... | |
virtual void | setArrived (MSNet *net, MSTransportable *transportable, SUMOTime now) |
logs end of the step More... | |
void | setDeparted (SUMOTime now) |
logs end of the step More... | |
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... | |
StageType | myType |
The type of this stage. 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 274 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 476 of file MSPerson.cpp.
References MSLane::geometryPositionAtOffset(), MSStoppingPlace::getAccessPos(), MSStoppingPlace::getBeginLanePosition(), MSStoppingPlace::getEndLanePosition(), MSStoppingPlace::getLane(), MSEdge::getLanes(), MSTransportable::Stage::myDestinationStop, myPath, and PositionVector::reverse().
MSPerson::MSPersonStage_Access::~MSPersonStage_Access | ( | ) |
destructor
Definition at line 488 of file MSPerson.cpp.
|
inlinevirtualinherited |
abort this stage (TraCI)
Reimplemented in MSTransportable::Stage_Driving, MSTransportable::Stage_Waiting, and MSPerson::MSPersonStage_Walking.
Definition at line 118 of file MSTransportable.h.
|
inlinevirtual |
Called on writing events output (begin of an action). Currently does nothing.
Implements MSTransportable::Stage.
Definition at line 306 of file MSPerson.h.
|
inlinevirtual |
Called on writing events output (end of an action). Currently does nothing.
Implements MSTransportable::Stage.
Definition at line 309 of file MSPerson.h.
|
virtual |
returns the angle of the transportable
Implements MSTransportable::Stage.
Definition at line 519 of file MSPerson.cpp.
References PositionVector::angleAt2D(), and myPath.
|
inlineinherited |
Definition at line 88 of file MSTransportable.h.
References MSTransportable::Stage::getAngle(), MSTransportable::Stage::getEdge(), MSTransportable::Stage::getEdgePos(), MSTransportable::Stage::getFromEdge(), MSTransportable::Stage::getPosition(), and MSTransportable::Stage::myArrivalPos.
Referenced by MSRouteHandler::parseWalkPositions(), libsumo::Person::rerouteTraveltime(), and MSTransportable::Stage_Trip::setArrived().
|
inherited |
returns the destination edge
Definition at line 57 of file MSTransportable.cpp.
References MSTransportable::Stage::myDestination.
Referenced by MSTransportable::Stage::getEdges(), MSTransportable::Stage_Driving::getEdges(), MSContainer::MSContainerStage_Driving::getStageSummary(), MSPerson::MSPersonStage_Walking::getStageSummary(), MSContainer::MSContainerStage_Tranship::getStageSummary(), MSTransportable::Stage_Trip::getStageSummary(), MSPerson::MSPersonStage_Driving::getStageSummary(), MSTransportable::Stage_Waiting::getStageSummary(), MSPModel_Striping::moveInDirectionOnLane(), MSRouteHandler::parseWalkPositions(), MSPerson::proceed(), MSTransportable::rerouteParkingArea(), MSContainer::MSContainerStage_Driving::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), and MSTransportable::Stage_Waiting::routeOutput().
|
inlineinherited |
returns the destination stop (if any)
Definition at line 84 of file MSTransportable.h.
References MSTransportable::Stage::myDestinationStop.
Referenced by MSContainer::MSContainerStage_Driving::getStageSummary(), MSPerson::MSPersonStage_Walking::getStageSummary(), MSContainer::MSContainerStage_Tranship::getStageSummary(), MSPerson::MSPersonStage_Driving::getStageSummary(), getStageSummary(), MSPModel_Striping::moveInDirectionOnLane(), MSRouteHandler::parseWalkPositions(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), MSPerson::proceed(), MSTransportable::Stage_Trip::setArrived(), and tripInfoOutput().
|
virtualinherited |
Returns the current edge.
Reimplemented in MSTransportable::Stage_Driving, MSTransportable::Stage_Trip, MSContainer::MSContainerStage_Tranship, and MSPerson::MSPersonStage_Walking.
Definition at line 63 of file MSTransportable.cpp.
References MSTransportable::Stage::myDestination.
Referenced by MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage::getArrivalPos(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Walking::proceed(), MSContainer::proceed(), MSPerson::MSPersonStage_Driving::proceed(), MSPerson::proceed(), MSTransportable::Stage_Waiting::proceed(), and MSTransportable::Stage_Trip::setArrived().
|
inherited |
get angle of the edge at a certain position
Definition at line 128 of file MSTransportable.cpp.
References MSEdge::getLanes().
Referenced by MSPModel_NonInteracting::PState::getAngle(), CState::getAngle(), MSTransportable::Stage_Waiting::getAngle(), MSTransportable::Stage_Driving::getAngle(), and MSTransportable::Stage::getVehicle().
|
virtualinherited |
Reimplemented in MSTransportable::Stage_Driving, MSTransportable::Stage_Trip, MSContainer::MSContainerStage_Tranship, and MSPerson::MSPersonStage_Walking.
Definition at line 75 of file MSTransportable.cpp.
References MSTransportable::Stage::myArrivalPos.
Referenced by MSTransportable::Stage::getArrivalPos(), MSTransportable::getFromEdge(), MSEdge::transportable_by_position_sorter::operator()(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Walking::proceed(), MSContainer::MSContainerStage_Tranship::proceed(), and MSPerson::MSPersonStage_Driving::proceed().
|
inherited |
get position on edge e at length at with orthogonal offset
Definition at line 118 of file MSTransportable.cpp.
References MSTransportable::Stage::getLanePosition(), and MSEdge::getLanes().
Referenced by MSTransportable::Stage_Waiting::getPosition(), MSTransportable::Stage_Driving::getPosition(), and MSTransportable::Stage::getVehicle().
|
virtualinherited |
the edges of the current stage
Reimplemented in MSTransportable::Stage_Driving, MSContainer::MSContainerStage_Tranship, and MSPerson::MSPersonStage_Walking.
Definition at line 93 of file MSTransportable.cpp.
References MSTransportable::Stage::getDestination().
Referenced by MSTransportable::getEdges(), MSTransportable::Stage::getVehicle(), MSTransportable::Stage_Driving::getVehicle(), and libsumo::Person::rerouteTraveltime().
|
virtualinherited |
Reimplemented in MSTransportable::Stage_Driving, MSContainer::MSContainerStage_Tranship, and MSPerson::MSPersonStage_Walking.
Definition at line 69 of file MSTransportable.cpp.
References MSTransportable::Stage::myDestination.
Referenced by MSTransportable::Stage::getArrivalPos().
|
inherited |
get position on lane at length at with orthogonal offset
Definition at line 123 of file MSTransportable.cpp.
References MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), and PositionVector::positionAtOffset().
Referenced by CState::computeTranshipTime(), MSTransportable::Stage::getEdgePosition(), MSPModel_NonInteracting::PState::getPosition(), MSPModel_Striping::PState::getPosition(), and MSTransportable::Stage::getVehicle().
returns the position of the transportable
Implements MSTransportable::Stage.
Definition at line 513 of file MSPerson.cpp.
References PositionVector::length(), MSTransportable::Stage::myDeparted, myEstimatedArrival, myPath, and PositionVector::positionAtOffset().
|
virtualinherited |
the speed of the transportable
Reimplemented in MSTransportable::Stage_Driving, MSContainer::MSContainerStage_Tranship, and MSPerson::MSPersonStage_Walking.
Definition at line 87 of file MSTransportable.cpp.
Referenced by MSTransportable::getFromEdge(), MSTransportable::Stage::getVehicle(), and MSTransportable::Stage_Driving::getVehicle().
|
virtual |
returns the stage description as a string
Implements MSTransportable::Stage.
Definition at line 501 of file MSPerson.cpp.
|
virtual |
return string summary of the current stage
Implements MSTransportable::Stage.
Definition at line 507 of file MSPerson.cpp.
References MSTransportable::Stage::getDestinationStop(), Named::getID(), and myAmExit.
|
inlineinherited |
Definition at line 104 of file MSTransportable.h.
References MSTransportable::Stage::getStageDescription(), MSTransportable::Stage::getStageSummary(), MSTransportable::Stage::myType, and MSTransportable::Stage::proceed().
Referenced by MSTransportable::getStageType(), MSPerson::proceed(), and MSTransportable::rerouteParkingArea().
|
inlinevirtualinherited |
Whether the transportable waits for a vehicle.
Reimplemented in MSTransportable::Stage_Driving.
Definition at line 138 of file MSTransportable.h.
References MSTransportable::Stage::beginEventOutput(), MSTransportable::Stage::endEventOutput(), MSTransportable::Stage::getEdgeAngle(), MSTransportable::Stage::getEdgePosition(), MSTransportable::Stage::getEdges(), MSTransportable::Stage::getLanePosition(), MSTransportable::Stage::getSpeed(), MSTransportable::Stage::getWaitingTime(), MSTransportable::Stage::routeOutput(), and MSTransportable::Stage::tripInfoOutput().
the time this transportable spent waiting
Reimplemented in MSTransportable::Stage_Driving, MSTransportable::Stage_Waiting, MSContainer::MSContainerStage_Tranship, and MSPerson::MSPersonStage_Walking.
Definition at line 81 of file MSTransportable.cpp.
Referenced by MSTransportable::Stage::getVehicle(), and MSTransportable::Stage_Driving::getVehicle().
|
inlinevirtualinherited |
Whether the transportable waits for a vehicle.
Reimplemented in MSTransportable::Stage_Driving.
Definition at line 133 of file MSTransportable.h.
|
virtualinherited |
Whether the transportable waits for a vehicle of the line specified.
Reimplemented in MSTransportable::Stage_Driving.
Definition at line 113 of file MSTransportable.cpp.
Referenced by MSTransportable::Stage::setSpeed().
|
virtual |
proceeds to the next step
Implements MSTransportable::Stage.
Definition at line 492 of file MSPerson.cpp.
References MSEventControl::addEvent(), MSEdge::addPerson(), MSNet::getBeginOfTimestepEvents(), MSLane::getEdge(), MSStoppingPlace::getLane(), MSVehicleType::getMaxSpeed(), MSTransportable::getVehicleType(), MSTransportable::Stage::myDeparted, MSTransportable::Stage::myDestinationStop, myDist, myEstimatedArrival, and TIME2STEPS.
|
inlinevirtual |
Called on writing vehroute output. Currently does nothing.
Implements MSTransportable::Stage.
Definition at line 303 of file MSPerson.h.
|
virtualinherited |
logs end of the step
Reimplemented in MSTransportable::Stage_Driving, and MSTransportable::Stage_Trip.
Definition at line 108 of file MSTransportable.cpp.
References MSTransportable::Stage::myArrived.
Referenced by MSTransportable::Stage_Trip::getStageDescription(), MSTransportable::Stage_Driving::getVehicle(), MSContainer::proceed(), MSPerson::proceed(), MSTransportable::Stage_Trip::setArrived(), MSTransportable::Stage_Driving::setArrived(), and MSTransportable::Stage::setSpeed().
|
inherited |
logs end of the step
Definition at line 101 of file MSTransportable.cpp.
References MSTransportable::Stage::myDeparted.
Referenced by MSTransportable::getVehicleType(), and MSTransportable::Stage::setSpeed().
|
inlinevirtualinherited |
sets the walking speed (ignored in other stages)
Reimplemented in MSPerson::MSPersonStage_Walking.
Definition at line 121 of file MSTransportable.h.
References MSTransportable::Stage::isWaitingFor(), MSTransportable::Stage::setArrived(), and MSTransportable::Stage::setDeparted().
Referenced by MSTransportable::getVehicle().
|
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 MSTransportable::Stage.
Definition at line 525 of file MSPerson.cpp.
References OutputDevice::closeTag(), MSTransportable::Stage::getDestinationStop(), MSTransportable::getID(), MSTransportable::Stage::myArrived, MSTransportable::Stage::myDeparted, myDist, OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
private |
Definition at line 327 of file MSPerson.h.
Referenced by getStageSummary().
|
protectedinherited |
the position at which we want to arrive
Definition at line 193 of file MSTransportable.h.
Referenced by MSTransportable::Stage_Waiting::getAngle(), MSTransportable::Stage::getArrivalPos(), MSPerson::MSPersonStage_Walking::getArrivalPos(), MSContainer::MSContainerStage_Tranship::getArrivalPos(), MSTransportable::Stage::getEdgePos(), MSTransportable::Stage_Waiting::getPosition(), MSTransportable::Stage_Trip::setArrived(), MSTransportable::Stage_Driving::setArrived(), MSTransportable::Stage_Driving::setDestination(), MSContainer::MSContainerStage_Driving::tripInfoOutput(), MSPerson::MSPersonStage_Walking::tripInfoOutput(), MSContainer::MSContainerStage_Tranship::tripInfoOutput(), MSPerson::MSPersonStage_Driving::tripInfoOutput(), MSTransportable::Stage_Waiting::tripInfoOutput(), and MSPerson::MSPersonStage_Walking::walkDistance().
|
protectedinherited |
the time at which this stage ended
Definition at line 199 of file MSTransportable.h.
Referenced by MSContainer::MSContainerStage_Tranship::routeOutput(), MSTransportable::Stage::setArrived(), MSContainer::MSContainerStage_Driving::tripInfoOutput(), MSPerson::MSPersonStage_Walking::tripInfoOutput(), MSContainer::MSContainerStage_Tranship::tripInfoOutput(), MSPerson::MSPersonStage_Driving::tripInfoOutput(), tripInfoOutput(), and MSTransportable::Stage_Waiting::tripInfoOutput().
|
protectedinherited |
the time at which this stage started
Definition at line 196 of file MSTransportable.h.
Referenced by getPosition(), MSTransportable::Stage_Waiting::getWaitingTime(), MSPerson::MSPersonStage_Walking::proceed(), MSContainer::MSContainerStage_Tranship::proceed(), proceed(), MSTransportable::Stage_Waiting::proceed(), MSContainer::MSContainerStage_Tranship::routeOutput(), MSTransportable::Stage::setDeparted(), MSContainer::MSContainerStage_Driving::tripInfoOutput(), MSPerson::MSPersonStage_Walking::tripInfoOutput(), MSContainer::MSContainerStage_Tranship::tripInfoOutput(), MSPerson::MSPersonStage_Driving::tripInfoOutput(), tripInfoOutput(), and MSTransportable::Stage_Waiting::tripInfoOutput().
|
protectedinherited |
the next edge to reach by getting transported
Definition at line 187 of file MSTransportable.h.
Referenced by MSTransportable::Stage_Waiting::getAngle(), MSTransportable::Stage::getDestination(), MSTransportable::Stage::getEdge(), MSTransportable::Stage::getFromEdge(), MSTransportable::Stage_Waiting::getPosition(), MSTransportable::Stage_Trip::setArrived(), and MSTransportable::Stage_Driving::setDestination().
|
protectedinherited |
the stop to reach by getting transported (if any)
Definition at line 190 of file MSTransportable.h.
Referenced by MSTransportable::Stage::getDestinationStop(), MSTransportable::Stage_Driving::getWaitingDescription(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSContainer::MSContainerStage_Tranship::moveToNextEdge(), MSPersonStage_Access(), proceed(), MSPerson::MSPersonStage_Walking::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), MSTransportable::Stage_Trip::setArrived(), and MSTransportable::Stage_Driving::setDestination().
|
private |
Definition at line 326 of file MSPerson.h.
Referenced by proceed(), and tripInfoOutput().
|
private |
Definition at line 328 of file MSPerson.h.
Referenced by getPosition(), and proceed().
|
private |
Definition at line 329 of file MSPerson.h.
Referenced by getAngle(), getPosition(), and MSPersonStage_Access().
|
protectedinherited |
The type of this stage.
Definition at line 202 of file MSTransportable.h.
Referenced by MSTransportable::Stage::getStageType(), MSTransportable::Stage_Waiting::routeOutput(), and MSTransportable::Stage_Waiting::tripInfoOutput().