![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Container for pedestrian state and individual position update function. More...
Public Member Functions | |
| double | getAngle (const MSStageMoving &stage, SUMOTime now) const override |
| return the direction in which the transportable faces in degrees More... | |
| int | getDirection (const MSStageMoving &stage, SUMOTime now) const override |
| return the walking direction (FORWARD, BACKWARD) More... | |
| double | getEdgePos (const MSStageMoving &stage, SUMOTime now) const override |
| return the offset from the start of the current edge measured in its natural direction More... | |
| virtual const MSLane * | getLane () const |
| whether the transportable is jammed More... | |
| const MSEdge * | getNextEdge (const MSStageMoving &stage) const override |
| return the list of internal edges if the transportable is on an intersection More... | |
| virtual double | getPathLength () const |
| return the total length of the current lane (in particular for on a walkingarea) More... | |
| MSPerson * | getPerson () |
| Position | getPosition (const MSStageMoving &stage, SUMOTime now) const override |
| return the network coordinate of the transportable More... | |
| double | getSpeed (const MSStageMoving &stage) const override |
| return the current speed of the transportable More... | |
| MSStageMoving * | getStage () |
| SUMOTime | getWaitingTime (const MSStageMoving &stage, SUMOTime now) const override |
| return the time the transportable spent standing More... | |
| virtual bool | isJammed () const |
| whether the transportable is jammed More... | |
| virtual void | moveTo (MSPerson *p, MSLane *lane, double lanePos, double lanePosLat, SUMOTime t) |
| try to move transportable to the given position 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 transportable to the given position More... | |
| PState (MSPerson *person, MSStageMoving *stage) | |
| virtual void | saveState (std::ostringstream &out) |
| Saves the current state into the given stream. More... | |
| void | setPhi (double phi) |
| void | setPosition (double x, double y) |
| ~PState () override | |
Private Attributes | |
| MSPerson * | myPerson |
| double | myPhi |
| Position | myPosition |
| MSStageMoving * | myStage |
Container for pedestrian state and individual position update function.
Definition at line 70 of file MSPModel_Remote.h.
| MSPModel_Remote::PState::PState | ( | MSPerson * | person, |
| MSStageMoving * | stage | ||
| ) |
Definition at line 230 of file MSPModel_Remote.cpp.
|
override |
Definition at line 235 of file MSPModel_Remote.cpp.
|
overridevirtual |
return the direction in which the transportable faces in degrees
Implements MSTransportableStateAdapter.
Definition at line 252 of file MSPModel_Remote.cpp.
|
overridevirtual |
return the walking direction (FORWARD, BACKWARD)
Implements MSTransportableStateAdapter.
Definition at line 243 of file MSPModel_Remote.cpp.
References MSPModel::UNDEFINED_DIRECTION.
|
overridevirtual |
return the offset from the start of the current edge measured in its natural direction
Implements MSTransportableStateAdapter.
Definition at line 239 of file MSPModel_Remote.cpp.
|
inlinevirtualinherited |
whether the transportable is jammed
Reimplemented in MSPModel_Striping::PState.
Definition at line 207 of file MSPModel.h.
Referenced by MSStageMoving::getLane(), and MSPerson::MSPersonStage_Walking::loadState().
|
overridevirtual |
return the list of internal edges if the transportable is on an intersection
Implements MSTransportableStateAdapter.
Definition at line 267 of file MSPModel_Remote.cpp.
|
inlinevirtualinherited |
return the total length of the current lane (in particular for on a walkingarea)
Reimplemented in MSPModel_Striping::PState.
Definition at line 212 of file MSPModel.h.
| MSPerson * MSPModel_Remote::PState::getPerson | ( | ) |
Definition at line 287 of file MSPModel_Remote.cpp.
|
overridevirtual |
return the network coordinate of the transportable
Implements MSTransportableStateAdapter.
Definition at line 247 of file MSPModel_Remote.cpp.
|
overridevirtual |
return the current speed of the transportable
Implements MSTransportableStateAdapter.
Definition at line 262 of file MSPModel_Remote.cpp.
| MSStageMoving * MSPModel_Remote::PState::getStage | ( | ) |
Definition at line 282 of file MSPModel_Remote.cpp.
|
overridevirtual |
return the time the transportable spent standing
Implements MSTransportableStateAdapter.
Definition at line 257 of file MSPModel_Remote.cpp.
|
inlinevirtualinherited |
whether the transportable is jammed
Reimplemented in MSPModel_Striping::PState.
Definition at line 202 of file MSPModel.h.
Referenced by MSPerson::isJammed().
|
inlinevirtualinherited |
try to move transportable to the given position
Reimplemented in MSPModel_Striping::PState.
Definition at line 176 of file MSPModel.h.
References TL, UNUSED_PARAMETER, and WRITE_WARNING.
Referenced by LIBSUMO_NAMESPACE::Person::moveTo().
|
inlinevirtualinherited |
try to move transportable to the given position
Reimplemented in MSPModel_Striping::PState.
Definition at line 186 of file MSPModel.h.
References TL, UNUSED_PARAMETER, and WRITE_WARNING.
Referenced by MSPerson::Influencer::postProcessRemoteControl().
|
inlinevirtualinherited |
Saves the current state into the given stream.
Reimplemented in MSPModel_Striping::PState, and MSPModel_NonInteracting::PState.
Definition at line 218 of file MSPModel.h.
References UNUSED_PARAMETER.
| void MSPModel_Remote::PState::setPhi | ( | double | phi | ) |
Definition at line 277 of file MSPModel_Remote.cpp.
| void MSPModel_Remote::PState::setPosition | ( | double | x, |
| double | y | ||
| ) |
Definition at line 272 of file MSPModel_Remote.cpp.
|
private |
Definition at line 90 of file MSPModel_Remote.h.
|
private |
Definition at line 88 of file MSPModel_Remote.h.
|
private |
Definition at line 87 of file MSPModel_Remote.h.
|
private |
Definition at line 89 of file MSPModel_Remote.h.