SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MSPModel_NonInteracting::PState Class Reference

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

Inheritance diagram for MSPModel_NonInteracting::PState:
PedestrianState

Public Member Functions

SUMOTime computeWalkingTime (const MSEdge *prev, const MSPerson::MSPersonStage_Walking &stage, SUMOTime currentTime)
 compute walking time on edge and update state members More...
 
 PState ()
 
SUMOReal getEdgePos (const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const
 abstract methods inherited from PedestrianState More...
 
Position getPosition (const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const
 return the network coordinate of the person More...
 
SUMOReal getAngle (const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const
 return the direction in which the person faces in degrees More...
 
SUMOTime getWaitingTime (const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const
 return the time the person spent standing More...
 
SUMOReal getSpeed (const MSPerson::MSPersonStage_Walking &stage) const
 return the current speed of the person More...
 

Private Attributes

SUMOReal myCurrentBeginPos
 
SUMOTime myCurrentDuration
 
SUMOReal myCurrentEndPos
 
SUMOTime myLastEntryTime
 

Detailed Description

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

Definition at line 86 of file MSPModel_NonInteracting.h.

Constructor & Destructor Documentation

MSPModel_NonInteracting::PState::PState ( )
inline

Definition at line 88 of file MSPModel_NonInteracting.h.

Member Function Documentation

SUMOReal MSPModel_NonInteracting::PState::getAngle ( const MSPerson::MSPersonStage_Walking stage,
SUMOTime  now 
) const
virtual

return the direction in which the person faces in degrees

Implements PedestrianState.

Definition at line 154 of file MSPModel_NonInteracting.cpp.

References MSPerson::MSPersonStage_Walking::getEdge(), MSPerson::MSPersonStage::getEdgeAngle(), and SUMOReal.

SUMOReal MSPModel_NonInteracting::PState::getEdgePos ( const MSPerson::MSPersonStage_Walking stage,
SUMOTime  now 
) const
virtual

abstract methods inherited from PedestrianState

Implements PedestrianState.

Definition at line 139 of file MSPModel_NonInteracting.cpp.

Position MSPModel_NonInteracting::PState::getPosition ( const MSPerson::MSPersonStage_Walking stage,
SUMOTime  now 
) const
virtual
SUMOReal MSPModel_NonInteracting::PState::getSpeed ( const MSPerson::MSPersonStage_Walking stage) const
virtual

return the current speed of the person

Implements PedestrianState.

Definition at line 171 of file MSPModel_NonInteracting.cpp.

References MSPerson::MSPersonStage_Walking::getMaxSpeed().

SUMOTime MSPModel_NonInteracting::PState::getWaitingTime ( const MSPerson::MSPersonStage_Walking stage,
SUMOTime  now 
) const
virtual

return the time the person spent standing

Implements PedestrianState.

Definition at line 165 of file MSPModel_NonInteracting.cpp.

Field Documentation

SUMOReal MSPModel_NonInteracting::PState::myCurrentBeginPos
private

Definition at line 106 of file MSPModel_NonInteracting.h.

SUMOTime MSPModel_NonInteracting::PState::myCurrentDuration
private

Definition at line 105 of file MSPModel_NonInteracting.h.

SUMOReal MSPModel_NonInteracting::PState::myCurrentEndPos
private

Definition at line 107 of file MSPModel_NonInteracting.h.

SUMOTime MSPModel_NonInteracting::PState::myLastEntryTime
private

Definition at line 104 of file MSPModel_NonInteracting.h.


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