SUMO - Simulation of Urban MObility
|
#include <MSPerson.h>
Public Member Functions | |
const MSEdge & | getDestination () const |
returns the destination edge | |
virtual bool | isWaitingFor (const std::string &line) const |
Whether the person waits for a vehicle of the line specified. | |
MSPersonStage (const MSEdge &destination) | |
constructor | |
virtual void | proceed (MSNet *net, MSPerson *person, SUMOTime now, const MSEdge &previousEdge)=0 |
proceeds to the next step | |
void | setArrived (SUMOTime now) |
logs end of the step | |
void | setDeparted (SUMOTime now) |
logs end of the step | |
virtual void | tripInfoOutput (OutputDevice &os) const =0 |
Called on writing tripinfo output. | |
virtual | ~MSPersonStage () |
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) |
Private Member Functions | |
MSPersonStage (const MSPersonStage &) | |
Invalidated copy constructor. | |
MSPersonStage & | operator= (const MSPersonStage &) |
Invalidated assignment operator. |
The "abstract" class for a single stage of a persons movement Contains the destination of the current movement step
Definition at line 66 of file MSPerson.h.
MSPerson::MSPersonStage::MSPersonStage | ( | const MSEdge & | destination | ) |
constructor
Definition at line 56 of file MSPerson.cpp.
|
virtual |
destructor
Definition at line 60 of file MSPerson.cpp.
|
private |
Invalidated copy constructor.
const MSEdge & MSPerson::MSPersonStage::getDestination | ( | ) | const |
returns the destination edge
Definition at line 64 of file MSPerson.cpp.
|
virtual |
Whether the person waits for a vehicle of the line specified.
Reimplemented in MSPerson::MSPersonStage_Driving.
Definition at line 84 of file MSPerson.cpp.
|
private |
Invalidated assignment operator.
|
pure virtual |
proceeds to the next step
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
void MSPerson::MSPersonStage::setArrived | ( | SUMOTime | now | ) |
logs end of the step
Definition at line 78 of file MSPerson.cpp.
void MSPerson::MSPersonStage::setDeparted | ( | SUMOTime | now | ) |
logs end of the step
Definition at line 70 of file MSPerson.cpp.
|
pure virtual |
Called on writing tripinfo output.
[in] | os | The stream to write the information into |
IOError | not yet implemented |
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
|
protected |
the time at which this stage ended
Definition at line 105 of file MSPerson.h.
|
protected |
the time at which this stage started
Definition at line 102 of file MSPerson.h.
|
protected |
the next edge to reach (either by walking or driving)
Definition at line 99 of file MSPerson.h.