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) | |
virtual void | endEventOutput (const MSPerson &p, SUMOTime t, OutputDevice &os) const =0 |
Called for writing the events output (end of an action) | |
virtual SUMOReal | getAngle (SUMOTime now) const =0 |
const MSEdge & | getDestination () const |
returns the destination edge | |
virtual const MSEdge * | getEdge () const =0 |
Returns the current edge. | |
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 | |
virtual const MSEdge * | getFromEdge () const =0 |
Position | getLanePosition (const MSLane *lane, SUMOReal at, SUMOReal offset) const |
get position on lane at length at with orthogonal offset | |
virtual Position | getPosition (SUMOTime now) const =0 |
virtual SUMOReal | getSpeed () const =0 |
the time this person spent waiting | |
virtual std::string | getStageDescription () const =0 |
return string representation of the current stage | |
StageType | getStageType () const |
virtual SUMOTime | getWaitingTime (SUMOTime now) const =0 |
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 (const MSEdge &destination, StageType type) | |
constructor | |
virtual void | proceed (MSNet *net, MSPerson *person, SUMOTime now, MSEdge *previousEdge, const SUMOReal at)=0 |
proceeds to the next step | |
virtual void | routeOutput (OutputDevice &os) const =0 |
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 =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) | |
StageType | myType |
The type of this stage. |
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 83 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.
|
pure virtual |
Returns the current edge.
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
Definition at line 108 of file MSPerson.cpp.
References MSEdge::getLanes(), and PositionVector::rotationDegreeAtOffset().
Referenced by MSPModel_NonInteracting::PState::getAngle().
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
Referenced by MSEdge::person_by_offset_sorter::operator()().
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().
|
pure virtual |
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
Position MSPerson::MSPersonStage::getLanePosition | ( | const MSLane * | lane, |
SUMOReal | at, | ||
SUMOReal | offset | ||
) | const |
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().
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
|
pure virtual |
the time this person spent waiting
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
|
pure virtual |
return string representation of the current stage
Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.
|
inline |
Definition at line 104 of file MSPerson.h.
References myType.
the time this person spent waiting
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 124 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.
|
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 175 of file MSPerson.h.
|
protected |
the time at which this stage started
Definition at line 172 of file MSPerson.h.
|
protected |
the next edge to reach (either by walking or driving)
Definition at line 169 of file MSPerson.h.
Referenced by MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting().
|
protected |