![]() |
Eclipse 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 55 of file MSPModel_Remote.h.
| MSPModel_Remote::PState::PState | ( | MSPerson * | person, |
| MSPerson::MSPersonStage_Walking * | stage | ||
| ) |
Definition at line 381 of file MSPModel_Remote.cpp.
|
override |
Definition at line 386 of file MSPModel_Remote.cpp.
|
overridevirtual |
return the direction in which the person faces in degrees
Implements PedestrianState.
Definition at line 395 of file MSPModel_Remote.cpp.
|
overridevirtual |
return the offset from the start of the current edge measured in its natural direction
Implements PedestrianState.
Definition at line 389 of file MSPModel_Remote.cpp.
|
overridevirtual |
return the list of internal edges if the pedestrian is on an intersection
Implements PedestrianState.
Definition at line 404 of file MSPModel_Remote.cpp.
| MSPerson * MSPModel_Remote::PState::getPerson | ( | ) |
Definition at line 416 of file MSPModel_Remote.cpp.
Referenced by MSPModel_Remote::execute().
|
overridevirtual |
return the network coordinate of the person
Implements PedestrianState.
Definition at line 392 of file MSPModel_Remote.cpp.
|
overridevirtual |
return the current speed of the person
Implements PedestrianState.
Definition at line 401 of file MSPModel_Remote.cpp.
| MSPerson::MSPersonStage_Walking * MSPModel_Remote::PState::getStage | ( | ) |
Definition at line 413 of file MSPModel_Remote.cpp.
Referenced by MSPModel_Remote::execute().
|
overridevirtual |
return the time the person spent standing
Implements PedestrianState.
Definition at line 398 of file MSPModel_Remote.cpp.
|
inlinevirtualinherited |
try to move person to the given position
Reimplemented in MSPModel_Striping::PState.
Definition at line 160 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 410 of file MSPModel_Remote.cpp.
Referenced by MSPModel_Remote::execute().
| void MSPModel_Remote::PState::setPosition | ( | double | x, |
| double | y | ||
| ) |
Definition at line 407 of file MSPModel_Remote.cpp.
Referenced by MSPModel_Remote::execute().
|
private |
Definition at line 74 of file MSPModel_Remote.h.
|
private |
Definition at line 72 of file MSPModel_Remote.h.
|
private |
Definition at line 71 of file MSPModel_Remote.h.
|
private |
Definition at line 73 of file MSPModel_Remote.h.