|
SUMO - Simulation of Urban MObility
|
#include <MSPerson.h>
Public Member Functions | |
| virtual void | beginEventOutput (const MSPerson &p, SUMOTime t, OutputDevice &os) const |
| Called for writing the events output. More... | |
| virtual void | endEventOutput (const MSPerson &p, SUMOTime t, OutputDevice &os) const |
| Called for writing the events output (end of an action) More... | |
| SUMOReal | getAngle (SUMOTime now) const |
| const MSEdge & | getDestination () const |
| returns the destination edge More... | |
| const MSEdge * | getEdge (SUMOTime now) const |
| Returns the current edge. More... | |
| SUMOReal | getEdgeAngle (const MSEdge *e, SUMOReal at) const |
| 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 | getPosition (SUMOTime now) const |
| StageType | getStageType () const |
| std::string | getStageTypeName () const |
| return string representation of the current stage 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, MSBusStop *toBS, const std::vector< std::string > &lines) | |
| constructor More... | |
| virtual void | proceed (MSNet *net, MSPerson *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) |
| SUMOTime | timeWaiting4Vehicle (SUMOTime now) const |
| time spent waiting for a ride More... | |
| 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 (either by walking or driving) 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 | |
| MSBusStop * | 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 310 of file MSPerson.h.
| MSPerson::MSPersonStage_Driving::MSPersonStage_Driving | ( | const MSEdge & | destination, |
| MSBusStop * | toBS, | ||
| const std::vector< std::string > & | lines | ||
| ) |
constructor
Definition at line 279 of file MSPerson.cpp.
| MSPerson::MSPersonStage_Driving::~MSPersonStage_Driving | ( | ) |
destructor
Definition at line 285 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 MSPerson::MSPersonStage.
Definition at line 396 of file MSPerson.cpp.
References MSPerson::getEdge(), Named::getID(), MSPerson::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 MSPerson::MSPersonStage.
Definition at line 402 of file MSPerson.cpp.
References MSPerson::getEdge(), Named::getID(), MSPerson::getID(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
Implements MSPerson::MSPersonStage.
Definition at line 324 of file MSPerson.cpp.
References MSVehicle::getAngle().
|
inherited |
returns the destination edge
Definition at line 70 of file MSPerson.cpp.
Returns the current edge.
Implements MSPerson::MSPersonStage.
Definition at line 289 of file MSPerson.cpp.
Definition at line 106 of file MSPerson.cpp.
References MSEdge::getLanes(), and PositionVector::rotationDegreeAtOffset().
Implements MSPerson::MSPersonStage.
Definition at line 304 of file MSPerson.cpp.
References MSPerson::getEdge(), MSEdge::getLength(), and MIN2().
|
inherited |
get position on edge e at length at with orthogonal offset
Definition at line 96 of file MSPerson.cpp.
References MSEdge::getLanes(), MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), PositionVector::move2side(), and PositionVector::positionAtOffset().
|
virtual |
Implements MSPerson::MSPersonStage.
Definition at line 298 of file MSPerson.cpp.
Implements MSPerson::MSPersonStage.
Definition at line 314 of file MSPerson.cpp.
References MSPerson::SIDEWALK_OFFSET.
|
inlineinherited |
Definition at line 100 of file MSPerson.h.
References MSPerson::MSPersonStage::myType.
|
virtual |
return string representation of the current stage
Implements MSPerson::MSPersonStage.
Definition at line 377 of file MSPerson.cpp.
References MSPerson::isWaiting4Vehicle(), and joinToString().
|
virtual |
Whether the person waits for a vehicle.
Reimplemented from MSPerson::MSPersonStage.
Definition at line 365 of file MSPerson.cpp.
|
virtual |
Whether the person waits for a vehicle of the line specified.
Reimplemented from MSPerson::MSPersonStage.
Definition at line 359 of file MSPerson.cpp.
|
private |
Invalidated assignment operator.
|
virtual |
proceeds to the next step
Implements MSPerson::MSPersonStage.
Definition at line 339 of file MSPerson.cpp.
References MSInsertionControl::add(), MSEdge::addPerson(), MSPersonControl::addWaiting(), DEPART_TRIGGERED, MSNet::getInsertionControl(), 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 MSPerson::MSPersonStage.
Definition at line 389 of file MSPerson.cpp.
References OutputDevice::closeTag(), MSPerson::getDestination(), MSPerson::getFromEdge(), MSPerson::getID(), OutputDevice::openTag(), SUMO_ATTR_FROM, SUMO_ATTR_LINES, SUMO_ATTR_TO, and OutputDevice::writeAttr().
|
inherited |
logs end of the step
Definition at line 84 of file MSPerson.cpp.
|
inherited |
logs end of the step
Definition at line 76 of file MSPerson.cpp.
|
inline |
Definition at line 343 of file MSPerson.h.
References myVehicle.
time spent waiting for a ride
Reimplemented from MSPerson::MSPersonStage.
Definition at line 371 of file MSPerson.cpp.
References MSPerson::isWaiting4Vehicle().
|
virtual |
Called on writing tripinfo output.
| [in] | os | The stream to write the information into |
| IOError | not yet implemented |
Implements MSPerson::MSPersonStage.
Definition at line 383 of file MSPerson.cpp.
References OutputDevice::closeTag(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
protectedinherited |
the time at which this stage ended
Definition at line 167 of file MSPerson.h.
|
protectedinherited |
the time at which this stage started
Definition at line 164 of file MSPerson.h.
|
protectedinherited |
the next edge to reach (either by walking or driving)
Definition at line 161 of file MSPerson.h.
Referenced by MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting().
|
private |
Definition at line 380 of file MSPerson.h.
|
private |
the lines to choose from
Definition at line 375 of file MSPerson.h.
|
protectedinherited |
The type of this stage.
Definition at line 170 of file MSPerson.h.
Referenced by MSPerson::MSPersonStage::getStageType().
|
private |
|
private |
Definition at line 384 of file MSPerson.h.
|
private |
Definition at line 381 of file MSPerson.h.
|
private |
The time since which this person is waiting for a ride.
Definition at line 383 of file MSPerson.h.