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... | |
virtual bool | isWaiting4Vehicle () const |
Whether the person waits for a vehicle. More... | |
virtual bool | isWaitingFor (const std::string &line) const |
Whether the person waits for a vehicle of the line specified. More... | |
MSPersonStage_Waiting (const MSEdge &destination, SUMOTime duration, SUMOTime until, SUMOReal pos, const std::string &actType) | |
constructor More... | |
virtual void | proceed (MSNet *net, MSPerson *person, SUMOTime now, MSEdge *previousEdge, const SUMOReal at) |
proceeds to the next step More... | |
void | setArrived (SUMOTime now) |
logs end of the step More... | |
void | setDeparted (SUMOTime now) |
logs end of the step More... | |
virtual void | tripInfoOutput (OutputDevice &os) const |
Called on writing tripinfo output. More... | |
~MSPersonStage_Waiting () | |
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_Waiting (const MSPersonStage_Waiting &) | |
Invalidated copy constructor. More... | |
MSPersonStage_Waiting & | operator= (const MSPersonStage_Waiting &) |
Invalidated assignment operator. More... | |
Private Attributes | |
std::string | myActType |
The type of activity. More... | |
SUMOReal | myStartPos |
SUMOTime | myWaitingDuration |
the time the person is waiting More... | |
SUMOTime | myWaitingUntil |
the time until the person is waiting More... | |
A "real" stage performing a waiting over the specified time
Definition at line 371 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 416 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 428 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 478 of file MSPerson.cpp.
References MSPerson::getEdge(), Named::getID(), MSPerson::getID(), OutputDevice::openTag(), and time2string().
|
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 489 of file MSPerson.cpp.
References MSPerson::getEdge(), Named::getID(), MSPerson::getID(), OutputDevice::openTag(), and time2string().
Implements MSPerson::MSPersonStage.
Definition at line 455 of file MSPerson.cpp.
|
inherited |
returns the destination edge
Definition at line 70 of file MSPerson.cpp.
Returns the current edge.
Implements MSPerson::MSPersonStage.
Definition at line 432 of file MSPerson.cpp.
Definition at line 106 of file MSPerson.cpp.
References MSEdge::getLanes(), and PositionVector::rotationDegreeAtOffset().
Implements MSPerson::MSPersonStage.
Definition at line 444 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(), MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), PositionVector::move2side(), and PositionVector::positionAtOffset().
|
virtual |
Implements MSPerson::MSPersonStage.
Definition at line 438 of file MSPerson.cpp.
Implements MSPerson::MSPersonStage.
Definition at line 449 of file MSPerson.cpp.
References MSPerson::SIDEWALK_OFFSET.
|
inlineinherited |
Definition at line 100 of file MSPerson.h.
References MSPerson::MSPersonStage::myType.
|
inlinevirtual |
return string representation of the current stage
Implements MSPerson::MSPersonStage.
Definition at line 390 of file MSPerson.h.
References myActType.
|
inlinevirtualinherited |
Whether the person waits for a vehicle.
Reimplemented in MSPerson::MSPersonStage_Driving.
Definition at line 120 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 461 of file MSPerson.cpp.
References MSEdge::addPerson(), MSNet::getPersonControl(), MAX3(), and MSPersonControl::setWaitEnd().
|
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 470 of file MSPerson.cpp.
References OutputDevice::openTag(), and time2string().
|
private |
|
protectedinherited |
the time at which this stage ended
Definition at line 156 of file MSPerson.h.
|
protectedinherited |
the time at which this stage started
Definition at line 153 of file MSPerson.h.
|
protectedinherited |
the next edge to reach (either by walking or driving)
Definition at line 150 of file MSPerson.h.
Referenced by MSPersonStage_Waiting().
|
private |
Definition at line 426 of file MSPerson.h.
Referenced by MSPersonStage_Waiting().
|
protectedinherited |
The type of this stage.
Definition at line 159 of file MSPerson.h.
Referenced by MSPerson::MSPersonStage::getStageType().
|
private |
the time the person is waiting
Definition at line 418 of file MSPerson.h.
|
private |
the time until the person is waiting
Definition at line 421 of file MSPerson.h.