SUMO - Simulation of Urban MObility
MSPModel_Remote::PState Class Reference

Container for pedestrian state and individual position update function. More...

Inheritance diagram for MSPModel_Remote::PState:
Inheritance graph
Collaboration diagram for MSPModel_Remote::PState:
Collaboration graph

Public Member Functions

double getAngle (const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const override
 return the direction in which the person faces in degrees More...
 
double getEdgePos (const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const override
 return the offset from the start of the current edge measured in its natural direction More...
 
const MSEdgegetNextEdge (const MSPerson::MSPersonStage_Walking &stage) const override
 return the list of internal edges if the pedestrian is on an intersection More...
 
MSPersongetPerson ()
 
Position getPosition (const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const override
 return the network coordinate of the person More...
 
double getSpeed (const MSPerson::MSPersonStage_Walking &stage) const override
 return the current speed of the person More...
 
MSPerson::MSPersonStage_WalkinggetStage ()
 
SUMOTime getWaitingTime (const MSPerson::MSPersonStage_Walking &stage, SUMOTime now) const override
 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...
 
 PState (MSPerson *person, MSPerson::MSPersonStage_Walking *stage)
 
void setPhi (double phi)
 
void setPosition (double x, double y)
 
 ~PState () override
 

Private Attributes

MSPersonmyPerson
 
double myPhi
 
Position myPosition
 
MSPerson::MSPersonStage_WalkingmyStage
 

Detailed Description

Container for pedestrian state and individual position update function.

Definition at line 56 of file MSPModel_Remote.h.

Constructor & Destructor Documentation

◆ PState()

MSPModel_Remote::PState::PState ( MSPerson person,
MSPerson::MSPersonStage_Walking stage 
)

Definition at line 382 of file MSPModel_Remote.cpp.

◆ ~PState()

MSPModel_Remote::PState::~PState ( )
override

Definition at line 387 of file MSPModel_Remote.cpp.

Member Function Documentation

◆ getAngle()

double MSPModel_Remote::PState::getAngle ( const MSPerson::MSPersonStage_Walking stage,
SUMOTime  now 
) const
overridevirtual

return the direction in which the person faces in degrees

Implements PedestrianState.

Definition at line 396 of file MSPModel_Remote.cpp.

References myPhi.

◆ getEdgePos()

double MSPModel_Remote::PState::getEdgePos ( const MSPerson::MSPersonStage_Walking stage,
SUMOTime  now 
) const
overridevirtual

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

Implements PedestrianState.

Definition at line 390 of file MSPModel_Remote.cpp.

◆ getNextEdge()

const MSEdge * MSPModel_Remote::PState::getNextEdge ( const MSPerson::MSPersonStage_Walking stage) const
overridevirtual

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

Implements PedestrianState.

Definition at line 405 of file MSPModel_Remote.cpp.

◆ getPerson()

MSPerson * MSPModel_Remote::PState::getPerson ( )

Definition at line 417 of file MSPModel_Remote.cpp.

References myPerson.

Referenced by MSPModel_Remote::execute().

◆ getPosition()

Position MSPModel_Remote::PState::getPosition ( const MSPerson::MSPersonStage_Walking stage,
SUMOTime  now 
) const
overridevirtual

return the network coordinate of the person

Implements PedestrianState.

Definition at line 393 of file MSPModel_Remote.cpp.

References myPosition.

◆ getSpeed()

double MSPModel_Remote::PState::getSpeed ( const MSPerson::MSPersonStage_Walking stage) const
overridevirtual

return the current speed of the person

Implements PedestrianState.

Definition at line 402 of file MSPModel_Remote.cpp.

◆ getStage()

MSPerson::MSPersonStage_Walking * MSPModel_Remote::PState::getStage ( )

Definition at line 414 of file MSPModel_Remote.cpp.

References myStage.

Referenced by MSPModel_Remote::execute().

◆ getWaitingTime()

SUMOTime MSPModel_Remote::PState::getWaitingTime ( const MSPerson::MSPersonStage_Walking stage,
SUMOTime  now 
) const
overridevirtual

return the time the person spent standing

Implements PedestrianState.

Definition at line 399 of file MSPModel_Remote.cpp.

◆ moveToXY()

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

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().

◆ setPhi()

void MSPModel_Remote::PState::setPhi ( double  phi)

Definition at line 411 of file MSPModel_Remote.cpp.

References myPhi.

Referenced by MSPModel_Remote::execute().

◆ setPosition()

void MSPModel_Remote::PState::setPosition ( double  x,
double  y 
)

Definition at line 408 of file MSPModel_Remote.cpp.

References myPosition, and Position::set().

Referenced by MSPModel_Remote::execute().

Field Documentation

◆ myPerson

MSPerson* MSPModel_Remote::PState::myPerson
private

Definition at line 75 of file MSPModel_Remote.h.

Referenced by getPerson().

◆ myPhi

double MSPModel_Remote::PState::myPhi
private

Definition at line 73 of file MSPModel_Remote.h.

Referenced by getAngle(), and setPhi().

◆ myPosition

Position MSPModel_Remote::PState::myPosition
private

Definition at line 72 of file MSPModel_Remote.h.

Referenced by getPosition(), and setPosition().

◆ myStage

MSPerson::MSPersonStage_Walking* MSPModel_Remote::PState::myStage
private

Definition at line 74 of file MSPModel_Remote.h.

Referenced by getStage().


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