|
SUMO - Simulation of Urban MObility
|
#include <MSPerson.h>
Public Member Functions | |
| virtual void | beginEventOutput (const MSPerson &p, SUMOTime t, OutputDevice &os) const =0 |
| Called for writing the events output (begin of an action) More... | |
| virtual void | endEventOutput (const MSPerson &p, SUMOTime t, OutputDevice &os) const =0 |
| Called for writing the events output (end of an action) More... | |
| virtual SUMOReal | getAngle (SUMOTime now) const =0 |
| const MSEdge & | getDestination () const |
| returns the destination edge More... | |
| virtual const MSEdge * | getEdge (SUMOTime now) const =0 |
| Returns the current edge. More... | |
| SUMOReal | getEdgeAngle (const MSEdge *e, SUMOReal at) const |
| virtual SUMOReal | getEdgePos (SUMOTime now) const =0 |
| Position | getEdgePosition (const MSEdge *e, SUMOReal at, SUMOReal offset) const |
| get position on edge e at length at with orthogonal offset More... | |
| virtual const MSEdge * | getFromEdge () const =0 |
| virtual Position | getPosition (SUMOTime now) const =0 |
| StageType | getStageType () const |
| virtual std::string | getStageTypeName () const =0 |
| 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 (const MSEdge &destination, StageType type) | |
| constructor More... | |
| virtual void | proceed (MSNet *net, MSPerson *person, SUMOTime now, MSEdge *previousEdge, const SUMOReal at)=0 |
| proceeds to the next step More... | |
| virtual void | routeOutput (OutputDevice &os) const =0 |
| 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... | |
| virtual SUMOTime | timeWaiting4Vehicle (SUMOTime) const |
| the time this person spent waiting for a vehicle More... | |
| virtual void | tripInfoOutput (OutputDevice &os) const =0 |
| Called on writing tripinfo output. More... | |
| virtual | ~MSPersonStage () |
| 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 (const MSPersonStage &) | |
| Invalidated copy constructor. More... | |
| MSPersonStage & | operator= (const MSPersonStage &) |
| Invalidated assignment operator. More... | |
The "abstract" class for a single stage of a persons movement Contains the destination of the current movement step
Definition at line 79 of file MSPerson.h.
constructor
Definition at line 62 of file MSPerson.cpp.
|
virtual |
destructor
Definition at line 66 of file MSPerson.cpp.
|
private |
Invalidated copy constructor.
|
pure virtual |
Called for writing the events output (begin of an action)
| [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.
|
pure virtual |
Called for writing the events output (end of an action)
| [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.
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
| const MSEdge & MSPerson::MSPersonStage::getDestination | ( | ) | const |
returns the destination edge
Definition at line 70 of file MSPerson.cpp.
Returns the current edge.
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
Definition at line 106 of file MSPerson.cpp.
References MSEdge::getLanes(), and PositionVector::rotationDegreeAtOffset().
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
| Position MSPerson::MSPersonStage::getEdgePosition | ( | const MSEdge * | e, |
| SUMOReal | at, | ||
| SUMOReal | offset | ||
| ) | const |
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().
|
pure virtual |
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
|
inline |
Definition at line 100 of file MSPerson.h.
References myType.
|
pure virtual |
return string representation of the current stage
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
|
inlinevirtual |
Whether the person waits for a vehicle.
Reimplemented in MSPerson::MSPersonStage_Driving.
Definition at line 120 of file MSPerson.h.
|
virtual |
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.
|
pure virtual |
proceeds to the next step
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
|
pure virtual |
Called on writing vehroute 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.
| void MSPerson::MSPersonStage::setArrived | ( | SUMOTime | now | ) |
logs end of the step
Definition at line 84 of file MSPerson.cpp.
| void MSPerson::MSPersonStage::setDeparted | ( | SUMOTime | now | ) |
logs end of the step
Definition at line 76 of file MSPerson.cpp.
the time this person spent waiting for a vehicle
Reimplemented in MSPerson::MSPersonStage_Driving.
Definition at line 125 of file MSPerson.h.
|
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 167 of file MSPerson.h.
|
protected |
the time at which this stage started
Definition at line 164 of file MSPerson.h.
|
protected |
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().
|
protected |