SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PedestrianState Class Referenceabstract

abstract base class for managing callbacks to retrieve various state information from the model More...

#include <MSPModel.h>

Inheritance diagram for PedestrianState:
Inheritance graph
Collaboration diagram for PedestrianState:
Collaboration graph

Public Member Functions

virtual SUMOReal getAngle (const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const =0
 return the direction in which the person faces in degrees More...
 
virtual SUMOReal getEdgePos (const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const =0
 return the offset from the start of the current edge measured in its natural direction More...
 
virtual const MSEdgegetNextEdge (const MSPerson::MSPersonStage_Walking &stage) const =0
 return the list of internal edges if the pedestrian is on an intersection More...
 
virtual Position getPosition (const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const =0
 return the network coordinate of the person More...
 
virtual SUMOReal getSpeed (const MSPerson::MSPersonStage_Walking &stage) const =0
 return the current speed of the person More...
 
virtual SUMOTime getWaitingTime (const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const =0
 return the time the person spent standing More...
 
virtual ~PedestrianState ()
 

Detailed Description

abstract base class for managing callbacks to retrieve various state information from the model

Definition at line 93 of file MSPModel.h.

Constructor & Destructor Documentation

virtual PedestrianState::~PedestrianState ( )
inlinevirtual

Definition at line 95 of file MSPModel.h.

Member Function Documentation

virtual SUMOReal PedestrianState::getAngle ( const MSPerson::MSPersonStage_Walking stage,
SUMOTime  now 
) const
pure virtual

return the direction in which the person faces in degrees

Implemented in MSPModel_Striping::PState, and MSPModel_NonInteracting::PState.

virtual SUMOReal PedestrianState::getEdgePos ( const MSPerson::MSPersonStage_Walking stage,
SUMOTime  now 
) const
pure virtual

return the offset from the start of the current edge measured in its natural direction

Implemented in MSPModel_Striping::PState, and MSPModel_NonInteracting::PState.

virtual const MSEdge* PedestrianState::getNextEdge ( const MSPerson::MSPersonStage_Walking stage) const
pure virtual

return the list of internal edges if the pedestrian is on an intersection

Implemented in MSPModel_Striping::PState, and MSPModel_NonInteracting::PState.

Referenced by MSPerson::getNextEdgePtr().

virtual Position PedestrianState::getPosition ( const MSPerson::MSPersonStage_Walking stage,
SUMOTime  now 
) const
pure virtual

return the network coordinate of the person

Implemented in MSPModel_Striping::PState, and MSPModel_NonInteracting::PState.

virtual SUMOReal PedestrianState::getSpeed ( const MSPerson::MSPersonStage_Walking stage) const
pure virtual

return the current speed of the person

Implemented in MSPModel_Striping::PState, and MSPModel_NonInteracting::PState.

virtual SUMOTime PedestrianState::getWaitingTime ( const MSPerson::MSPersonStage_Walking stage,
SUMOTime  now 
) const
pure virtual

return the time the person spent standing

Implemented in MSPModel_Striping::PState, and MSPModel_NonInteracting::PState.


The documentation for this class was generated from the following file: