SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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:
MSPModel_NonInteracting::PState MSPModel_Striping::PState

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 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 96 of file MSPModel.h.

Constructor & Destructor Documentation

virtual PedestrianState::~PedestrianState ( )
inlinevirtual

Definition at line 98 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 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: