![]() |
SUMO - Simulation of Urban MObility
|
Container for pedestrian state and individual position update function. More...


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 MSEdge * | getNextEdge (const MSPerson::MSPersonStage_Walking &stage) const override |
| return the list of internal edges if the pedestrian is on an intersection More... | |
| MSPerson * | getPerson () |
| 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_Walking * | getStage () |
| 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 | |
| MSPerson * | myPerson |
| double | myPhi |
| Position | myPosition |
| MSPerson::MSPersonStage_Walking * | myStage |
Container for pedestrian state and individual position update function.
Definition at line 56 of file MSPModel_Remote.h.
| MSPModel_Remote::PState::PState | ( | MSPerson * | person, |
| MSPerson::MSPersonStage_Walking * | stage | ||
| ) |
Definition at line 382 of file MSPModel_Remote.cpp.
|
override |
Definition at line 387 of file MSPModel_Remote.cpp.
|
overridevirtual |
return the direction in which the person faces in degrees
Implements PedestrianState.
Definition at line 396 of file MSPModel_Remote.cpp.
References myPhi.
|
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.
|
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.
| MSPerson * MSPModel_Remote::PState::getPerson | ( | ) |
Definition at line 417 of file MSPModel_Remote.cpp.
References myPerson.
Referenced by MSPModel_Remote::execute().
|
overridevirtual |
return the network coordinate of the person
Implements PedestrianState.
Definition at line 393 of file MSPModel_Remote.cpp.
References myPosition.
|
overridevirtual |
return the current speed of the person
Implements PedestrianState.
Definition at line 402 of file MSPModel_Remote.cpp.
| MSPerson::MSPersonStage_Walking * MSPModel_Remote::PState::getStage | ( | ) |
Definition at line 414 of file MSPModel_Remote.cpp.
References myStage.
Referenced by MSPModel_Remote::execute().
|
overridevirtual |
return the time the person spent standing
Implements PedestrianState.
Definition at line 399 of file MSPModel_Remote.cpp.
|
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().
| void MSPModel_Remote::PState::setPhi | ( | double | phi | ) |
Definition at line 411 of file MSPModel_Remote.cpp.
References myPhi.
Referenced by MSPModel_Remote::execute().
| 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().
|
private |
Definition at line 75 of file MSPModel_Remote.h.
Referenced by getPerson().
|
private |
Definition at line 73 of file MSPModel_Remote.h.
Referenced by getAngle(), and setPhi().
|
private |
Definition at line 72 of file MSPModel_Remote.h.
Referenced by getPosition(), and setPosition().
|
private |
Definition at line 74 of file MSPModel_Remote.h.
Referenced by getStage().