![]() |
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... | |
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... | |
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 | 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 66 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 249 of file MSPModel_Remote.cpp.
|
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 174 of file MSPModel.h.
Referenced by MSStageMoving::getLane().
|
overridevirtual |
return the list of internal edges if the transportable is on an intersection
Implements MSTransportableStateAdapter.
Definition at line 264 of file MSPModel_Remote.cpp.
MSPerson * MSPModel_Remote::PState::getPerson | ( | ) |
Definition at line 284 of file MSPModel_Remote.cpp.
|
overridevirtual |
return the network coordinate of the transportable
Implements MSTransportableStateAdapter.
Definition at line 244 of file MSPModel_Remote.cpp.
|
overridevirtual |
return the current speed of the transportable
Implements MSTransportableStateAdapter.
Definition at line 259 of file MSPModel_Remote.cpp.
MSStageMoving * MSPModel_Remote::PState::getStage | ( | ) |
Definition at line 279 of file MSPModel_Remote.cpp.
|
overridevirtual |
return the time the transportable spent standing
Implements MSTransportableStateAdapter.
Definition at line 254 of file MSPModel_Remote.cpp.
|
inlinevirtualinherited |
whether the transportable is jammed
Reimplemented in MSPModel_Striping::PState.
Definition at line 169 of file MSPModel.h.
Referenced by GUIPerson::isJammed().
|
inlinevirtualinherited |
try to move transportable to the given position
Reimplemented in MSPModel_Striping::PState.
Definition at line 153 of file MSPModel.h.
References UNUSED_PARAMETER, and WRITE_WARNING.
Referenced by MSPerson::Influencer::postProcessRemoteControl().
|
inlinevirtualinherited |
Saves the current state into the given stream.
Reimplemented in MSPModel_NonInteracting::PState.
Definition at line 180 of file MSPModel.h.
References UNUSED_PARAMETER.
void MSPModel_Remote::PState::setPhi | ( | double | phi | ) |
Definition at line 274 of file MSPModel_Remote.cpp.
void MSPModel_Remote::PState::setPosition | ( | double | x, |
double | y | ||
) |
Definition at line 269 of file MSPModel_Remote.cpp.
|
private |
Definition at line 85 of file MSPModel_Remote.h.
|
private |
Definition at line 83 of file MSPModel_Remote.h.
|
private |
Definition at line 82 of file MSPModel_Remote.h.
|
private |
Definition at line 84 of file MSPModel_Remote.h.