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. | |
virtual void | endEventOutput (const MSPerson &p, SUMOTime t, OutputDevice &os) const |
Called for writing the events output (end of an action) | |
SUMOReal | getAngle (SUMOTime now) const |
const MSEdge & | getDestination () const |
returns the destination edge | |
const MSEdge * | getEdge () const |
Returns the current edge. | |
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 | |
const MSEdge * | getFromEdge () const |
Position | getLanePosition (const MSLane *lane, SUMOReal at, SUMOReal offset) const |
get position on lane at length at with orthogonal offset | |
Position | getPosition (SUMOTime now) const |
SUMOReal | getSpeed () const |
the time this person spent waiting | |
std::string | getStageDescription () const |
return string representation of the current stage | |
StageType | getStageType () const |
SUMOTime | getUntil () const |
SUMOTime | getWaitingTime (SUMOTime now) const |
the time this person spent waiting | |
virtual bool | isWaiting4Vehicle () const |
Whether the person waits for a vehicle. | |
virtual bool | isWaitingFor (const std::string &line) const |
Whether the person waits for a vehicle of the line specified. | |
MSPersonStage_Waiting (const MSEdge &destination, SUMOTime duration, SUMOTime until, SUMOReal pos, const std::string &actType) | |
constructor | |
virtual void | proceed (MSNet *net, MSPerson *person, SUMOTime now, MSEdge *previousEdge, const SUMOReal at) |
proceeds to the next step | |
virtual void | routeOutput (OutputDevice &os) const |
Called on writing vehroute output. | |
void | setArrived (SUMOTime now) |
logs end of the step | |
void | setDeparted (SUMOTime now) |
logs end of the step | |
virtual void | tripInfoOutput (OutputDevice &os) const |
Called on writing tripinfo output. | |
~MSPersonStage_Waiting () | |
destructor |
Protected Attributes | |
SUMOTime | myArrived |
the time at which this stage ended | |
SUMOTime | myDeparted |
the time at which this stage started | |
const MSEdge & | myDestination |
the next edge to reach (either by walking or driving) | |
StageType | myType |
The type of this stage. |
Private Member Functions | |
MSPersonStage_Waiting (const MSPersonStage_Waiting &) | |
Invalidated copy constructor. | |
MSPersonStage_Waiting & | operator= (const MSPersonStage_Waiting &) |
Invalidated assignment operator. |
Private Attributes | |
std::string | myActType |
The type of activity. | |
SUMOReal | myStartPos |
SUMOTime | myWaitingDuration |
the time the person is waiting | |
SUMOTime | myWaitingStart |
the time the person is waiting | |
SUMOTime | myWaitingUntil |
the time until the person is waiting |
A "real" stage performing a waiting over the specified time
Definition at line 431 of file MSPerson.h.
MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting | ( | const MSEdge & | destination, |
SUMOTime | duration, | ||
SUMOTime | until, | ||
SUMOReal | pos, | ||
const std::string & | actType | ||
) |
constructor
Definition at line 424 of file MSPerson.cpp.
References Named::getID(), MSEdge::getLength(), SUMOVehicleParameter::interpretEdgePos(), MSPerson::MSPersonStage::myDestination, myStartPos, and SUMO_ATTR_DEPARTPOS.
MSPerson::MSPersonStage_Waiting::~MSPersonStage_Waiting | ( | ) |
destructor
Definition at line 436 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 505 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 512 of file MSPerson.cpp.
References MSPerson::getEdge(), Named::getID(), MSPerson::getID(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
Implements MSPerson::MSPersonStage.
Definition at line 470 of file MSPerson.cpp.
|
inherited |
returns the destination edge
Definition at line 70 of file MSPerson.cpp.
|
virtual |
Returns the current edge.
Implements MSPerson::MSPersonStage.
Definition at line 440 of file MSPerson.cpp.
Definition at line 108 of file MSPerson.cpp.
References MSEdge::getLanes(), and PositionVector::rotationDegreeAtOffset().
Referenced by MSPModel_NonInteracting::PState::getAngle().
Implements MSPerson::MSPersonStage.
Definition at line 452 of file MSPerson.cpp.
|
inherited |
get position on edge e at length at with orthogonal offset
Definition at line 96 of file MSPerson.cpp.
References MSEdge::getLanes().
|
virtual |
Implements MSPerson::MSPersonStage.
Definition at line 446 of file MSPerson.cpp.
|
inherited |
get position on lane at length at with orthogonal offset
Definition at line 102 of file MSPerson.cpp.
References MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), and PositionVector::positionAtOffset().
Referenced by MSPModel_NonInteracting::PState::getPosition(), and MSPModel_Striping::PState::getPosition().
Implements MSPerson::MSPersonStage.
Definition at line 464 of file MSPerson.cpp.
References MSPModel::SIDEWALK_OFFSET.
|
virtual |
the time this person spent waiting
Implements MSPerson::MSPersonStage.
Definition at line 525 of file MSPerson.cpp.
|
inlinevirtual |
return string representation of the current stage
Implements MSPerson::MSPersonStage.
Definition at line 455 of file MSPerson.h.
References myActType.
|
inlineinherited |
Definition at line 104 of file MSPerson.h.
References MSPerson::MSPersonStage::myType.
SUMOTime MSPerson::MSPersonStage_Waiting::getUntil | ( | ) | const |
Definition at line 458 of file MSPerson.cpp.
Referenced by MSPerson::routeOutput().
the time this person spent waiting
Implements MSPerson::MSPersonStage.
Definition at line 519 of file MSPerson.cpp.
|
inlinevirtualinherited |
Whether the person waits for a vehicle.
Reimplemented in MSPerson::MSPersonStage_Driving.
Definition at line 124 of file MSPerson.h.
|
virtualinherited |
Whether the person waits for a vehicle of the line specified.
Reimplemented in MSPerson::MSPersonStage_Driving.
Definition at line 90 of file MSPerson.cpp.
|
private |
Invalidated assignment operator.
|
virtual |
proceeds to the next step
Implements MSPerson::MSPersonStage.
Definition at line 476 of file MSPerson.cpp.
References MSEdge::addPerson(), MSNet::getPersonControl(), MAX3(), and MSPersonControl::setWaitEnd().
|
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 492 of file MSPerson.cpp.
References OutputDevice::closeTag(), MSPerson::getDestination(), MSPerson::getID(), OutputDevice::openTag(), SUMO_ATTR_DURATION, SUMO_ATTR_LANE, SUMO_ATTR_UNTIL, time2string(), 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.
|
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 486 of file MSPerson.cpp.
References OutputDevice::closeTag(), OutputDevice::openTag(), time2string(), and OutputDevice::writeAttr().
|
private |
The type of activity.
Definition at line 499 of file MSPerson.h.
Referenced by getStageDescription().
|
protectedinherited |
the time at which this stage ended
Definition at line 175 of file MSPerson.h.
|
protectedinherited |
the time at which this stage started
Definition at line 172 of file MSPerson.h.
|
protectedinherited |
the next edge to reach (either by walking or driving)
Definition at line 169 of file MSPerson.h.
Referenced by MSPersonStage_Waiting().
|
private |
Definition at line 501 of file MSPerson.h.
Referenced by MSPersonStage_Waiting().
|
protectedinherited |
The type of this stage.
Definition at line 178 of file MSPerson.h.
Referenced by MSPerson::MSPersonStage::getStageType().
|
private |
the time the person is waiting
Definition at line 490 of file MSPerson.h.
|
private |
the time the person is waiting
Definition at line 496 of file MSPerson.h.
|
private |
the time until the person is waiting
Definition at line 493 of file MSPerson.h.