Eclipse SUMO - Simulation of Urban MObility
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:
Collaboration diagram for PedestrianState:

Public Member Functions

virtual double getAngle (const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const =0
 return the direction in which the person faces in degrees More...
 
virtual double 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 double 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 void moveToXY (MSPerson *p, Position pos, MSLane *lane, double lanePos, double lanePosLat, double angle, int routeOffset, const ConstMSEdgeVector &edges, SUMOTime t)
 try to move person to the given position More...
 
virtual ~PedestrianState ()
 

Detailed Description

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

Definition at line 128 of file MSPModel.h.

Constructor & Destructor Documentation

◆ ~PedestrianState()

virtual PedestrianState::~PedestrianState ( )
inlinevirtual

Definition at line 130 of file MSPModel.h.

Member Function Documentation

◆ getAngle()

virtual double 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_Remote::PState, MSPModel_Striping::PState, MSPModel_NonInteracting::PState, and DummyState.

◆ getEdgePos()

virtual double 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_Remote::PState, MSPModel_Striping::PState, MSPModel_NonInteracting::PState, and DummyState.

◆ getNextEdge()

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_Remote::PState, MSPModel_Striping::PState, MSPModel_NonInteracting::PState, and DummyState.

Referenced by MSPerson::getNextEdgePtr().

◆ getPosition()

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

return the network coordinate of the person

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

◆ getSpeed()

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

return the current speed of the person

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

◆ getWaitingTime()

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

return the time the person spent standing

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

◆ moveToXY()

virtual void PedestrianState::moveToXY ( MSPerson p,
Position  pos,
MSLane lane,
double  lanePos,
double  lanePosLat,
double  angle,
int  routeOffset,
const ConstMSEdgeVector edges,
SUMOTime  t 
)
inlinevirtual

try to move person to the given position

Reimplemented in MSPModel_Striping::PState.

Definition at line 151 of file MSPModel.h.

References UNUSED_PARAMETER, and WRITE_WARNING.

Referenced by MSPerson::Influencer::postProcessRemoteControl().


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