|
SUMO - Simulation of Urban MObility
|
#include <MSPerson.h>
Public Member Functions | |
| virtual void | beginEventOutput (const MSTransportable &p, SUMOTime t, OutputDevice &os) const |
| Called for writing the events output. More... | |
| virtual void | endEventOutput (const MSTransportable &p, SUMOTime t, OutputDevice &os) const |
| Called for writing the events output (end of an action) More... | |
| SUMOReal | getAngle (SUMOTime now) const |
| returns the angle of the transportable More... | |
| const MSEdge & | getDestination () const |
| returns the destination edge More... | |
| const MSEdge * | getEdge () const |
| Returns the current edge. More... | |
| SUMOReal | getEdgeAngle (const MSEdge *e, SUMOReal at) const |
| get angle of the edge at a certain position More... | |
| SUMOReal | getEdgePos (SUMOTime now) const |
| Position | getEdgePosition (const MSEdge *e, SUMOReal at, SUMOReal offset) const |
| get position on edge e at length at with orthogonal offset More... | |
| const MSEdge * | getFromEdge () const |
| Position | getLanePosition (const MSLane *lane, SUMOReal at, SUMOReal 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... | |
| SUMOReal | getSpeed () const |
| the speed of the transportable More... | |
| std::string | getStageDescription () const |
| return string representation of the current stage More... | |
| StageType | getStageType () const |
| 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 std::string &line) const |
| Whether the person waits for a vehicle of the line specified. More... | |
| MSPersonStage_Driving (const MSEdge &destination, MSStoppingPlace *toBS, const std::vector< std::string > &lines) | |
| constructor More... | |
| virtual void | proceed (MSNet *net, MSTransportable *person, SUMOTime now, MSEdge *previousEdge, const SUMOReal at) |
| proceeds to the next step More... | |
| virtual void | routeOutput (OutputDevice &os) const |
| Called on writing vehroute output. More... | |
| void | setArrived (SUMOTime now) |
| logs end of the step More... | |
| void | setDeparted (SUMOTime now) |
| logs end of the step More... | |
| void | setVehicle (SUMOVehicle *v) |
| virtual void | tripInfoOutput (OutputDevice &os) const |
| Called on writing tripinfo output. More... | |
| ~MSPersonStage_Driving () | |
| destructor More... | |
Protected Attributes | |
| 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... | |
| StageType | myType |
| The type of this stage. More... | |
Private Member Functions | |
| MSPersonStage_Driving (const MSPersonStage_Driving &) | |
| Invalidated copy constructor. More... | |
| MSPersonStage_Driving & | operator= (const MSPersonStage_Driving &) |
| Invalidated assignment operator. More... | |
Private Attributes | |
| MSStoppingPlace * | myDestinationBusStop |
| const std::set< std::string > | myLines |
| the lines to choose from More... | |
| SUMOVehicle * | myVehicle |
| The taken vehicle. More... | |
| const MSEdge * | myWaitingEdge |
| SUMOReal | myWaitingPos |
| SUMOTime | myWaitingSince |
| The time since which this person is waiting for a ride. 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 224 of file MSPerson.h.
| MSPerson::MSPersonStage_Driving::MSPersonStage_Driving | ( | const MSEdge & | destination, |
| MSStoppingPlace * | toBS, | ||
| const std::vector< std::string > & | lines | ||
| ) |
constructor
Definition at line 226 of file MSPerson.cpp.
| MSPerson::MSPersonStage_Driving::~MSPersonStage_Driving | ( | ) |
destructor
Definition at line 232 of file MSPerson.cpp.
|
private |
Invalidated copy constructor.
|
virtual |
Called for writing the events output.
| [in] | os | The stream to write the information into |
| IOError | not yet implemented |
Implements MSTransportable::Stage.
Definition at line 350 of file MSPerson.cpp.
References MSTransportable::getEdge(), Named::getID(), MSTransportable::getID(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
virtual |
Called for writing the events output (end of an action)
| [in] | os | The stream to write the information into |
| IOError | not yet implemented |
Implements MSTransportable::Stage.
Definition at line 356 of file MSPerson.cpp.
References MSTransportable::getEdge(), Named::getID(), MSTransportable::getID(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
returns the angle of the transportable
Implements MSTransportable::Stage.
Definition at line 271 of file MSPerson.cpp.
References MSVehicle::getAngle().
|
inherited |
returns the destination edge
Definition at line 54 of file MSTransportable.cpp.
|
virtual |
Returns the current edge.
Implements MSTransportable::Stage.
Definition at line 236 of file MSPerson.cpp.
get angle of the edge at a certain position
Definition at line 86 of file MSTransportable.cpp.
References MSEdge::getLanes(), and PositionVector::rotationDegreeAtOffset().
Referenced by MSPModel_NonInteracting::PState::getAngle(), and CState::getAngle().
Implements MSTransportable::Stage.
Definition at line 251 of file MSPerson.cpp.
References MSTransportable::getEdge(), MSEdge::getLength(), and MIN2().
|
inherited |
get position on edge e at length at with orthogonal offset
Definition at line 76 of file MSTransportable.cpp.
References MSEdge::getLanes().
|
virtual |
Implements MSTransportable::Stage.
Definition at line 245 of file MSPerson.cpp.
|
inherited |
get position on lane at length at with orthogonal offset
Definition at line 81 of file MSTransportable.cpp.
References MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), and PositionVector::positionAtOffset().
Referenced by CState::computeTranshipTime(), MSPModel_NonInteracting::PState::getPosition(), and MSPModel_Striping::PState::getPosition().
returns the position of the transportable
Implements MSTransportable::Stage.
Definition at line 261 of file MSPerson.cpp.
References MSPModel::SIDEWALK_OFFSET.
|
virtual |
the speed of the transportable
Implements MSTransportable::Stage.
Definition at line 325 of file MSPerson.cpp.
|
virtual |
return string representation of the current stage
Implements MSTransportable::Stage.
Definition at line 331 of file MSPerson.cpp.
References MSTransportable::isWaiting4Vehicle(), and joinToString().
|
inlineinherited |
Definition at line 88 of file MSTransportable.h.
References MSTransportable::Stage::myType.
time spent waiting for a ride
Implements MSTransportable::Stage.
Definition at line 319 of file MSPerson.cpp.
References MSTransportable::isWaiting4Vehicle().
|
virtual |
Whether the person waits for a vehicle.
Reimplemented from MSTransportable::Stage.
Definition at line 313 of file MSPerson.cpp.
|
virtual |
Whether the person waits for a vehicle of the line specified.
Reimplemented from MSTransportable::Stage.
Definition at line 307 of file MSPerson.cpp.
|
private |
Invalidated assignment operator.
|
virtual |
proceeds to the next step
Implements MSTransportable::Stage.
Definition at line 286 of file MSPerson.cpp.
References MSInsertionControl::add(), MSEdge::addPerson(), MSPersonControl::addWaiting(), DEPART_TRIGGERED, SUMOVehicleParameter::departProcedure, MSTransportable::getID(), MSNet::getInsertionControl(), SUMOVehicle::getParameter(), MSNet::getPersonControl(), MSNet::getVehicleControl(), MSVehicleControl::getWaitingVehicle(), MSEdge::removePerson(), MSVehicleControl::removeWaiting(), and MSVehicleControl::unregisterOneWaitingForPerson().
|
virtual |
Called on writing vehroute output.
| [in] | os | The stream to write the information into |
| IOError | not yet implemented |
Implements MSTransportable::Stage.
Definition at line 343 of file MSPerson.cpp.
References OutputDevice::closeTag(), MSTransportable::getDestination(), MSTransportable::getFromEdge(), MSTransportable::getID(), OutputDevice::openTag(), SUMO_ATTR_FROM, SUMO_ATTR_LINES, SUMO_ATTR_TO, and OutputDevice::writeAttr().
|
inherited |
logs end of the step
Definition at line 66 of file MSTransportable.cpp.
|
inherited |
logs end of the step
Definition at line 59 of file MSTransportable.cpp.
|
inline |
Definition at line 259 of file MSPerson.h.
References myVehicle.
|
virtual |
Called on writing tripinfo output.
| [in] | os | The stream to write the information into |
| IOError | not yet implemented |
Implements MSTransportable::Stage.
Definition at line 337 of file MSPerson.cpp.
References OutputDevice::closeTag(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
protectedinherited |
the time at which this stage ended
Definition at line 159 of file MSTransportable.h.
|
protectedinherited |
the time at which this stage started
Definition at line 156 of file MSTransportable.h.
|
protectedinherited |
the next edge to reach by getting transported
Definition at line 153 of file MSTransportable.h.
Referenced by MSContainer::MSContainerStage_Waiting::MSContainerStage_Waiting(), and MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting().
|
private |
Definition at line 296 of file MSPerson.h.
|
private |
the lines to choose from
Definition at line 291 of file MSPerson.h.
|
protectedinherited |
The type of this stage.
Definition at line 162 of file MSTransportable.h.
Referenced by MSTransportable::Stage::getStageType().
|
private |
|
private |
Definition at line 300 of file MSPerson.h.
|
private |
Definition at line 297 of file MSPerson.h.
|
private |
The time since which this person is waiting for a ride.
Definition at line 299 of file MSPerson.h.