Eclipse SUMO - Simulation of Urban MObility
|
abstract base class for managing callbacks to retrieve various state information from the model More...
#include <MSPModel.h>
Public Member Functions | |
virtual double | getAngle (const MSStageMoving &stage, SUMOTime now) const =0 |
return the direction in which the transportable faces in degrees | |
virtual int | getDirection () const =0 |
return the walking direction (FORWARD, BACKWARD, UNDEFINED_DIRECTION) | |
virtual double | getEdgePos (SUMOTime now=0) const =0 |
return the offset from the start of the current edge measured in its natural direction | |
virtual const MSLane * | getLane () const |
the current lane of the transportable | |
virtual const MSEdge * | getNextEdge (const MSStageMoving &stage) const =0 |
return the list of internal edges if the transportable is on an intersection | |
virtual double | getPathLength () const |
return the total length of the current lane (in particular for on a walkingarea) | |
virtual Position | getPosition (const MSStageMoving &stage, SUMOTime now) const =0 |
return the network coordinate of the transportable | |
virtual double | getSpeed (const MSStageMoving &stage) const =0 |
return the current speed of the transportable | |
virtual SUMOTime | getWaitingTime () const =0 |
return the time the transportable spent standing | |
virtual bool | isFinished () const |
whether the transportable has finished walking | |
virtual bool | isJammed () const |
whether the transportable is jammed | |
virtual void | moveTo (MSPerson *p, MSLane *lane, double lanePos, double lanePosLat, SUMOTime t) |
try to move transportable to the given position | |
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 | |
virtual void | saveState (std::ostringstream &out) |
Saves the current state into the given stream. | |
virtual | ~MSTransportableStateAdapter () |
abstract base class for managing callbacks to retrieve various state information from the model
Definition at line 154 of file MSPModel.h.
|
inlinevirtual |
Definition at line 156 of file MSPModel.h.
|
pure virtual |
return the direction in which the transportable faces in degrees
Implemented in MSPModel_InteractingState, MSPModel_NonInteracting::PState, MSPModel_NonInteracting::CState, and MSPModel_Striping::PState.
Referenced by MSStageMoving::getAngle().
|
pure virtual |
return the walking direction (FORWARD, BACKWARD, UNDEFINED_DIRECTION)
Implemented in MSPModel_InteractingState, and MSPModel_NonInteracting::PState.
Referenced by MSPModel_NonInteracting::MoveToNextEdge::execute(), and MSStageMoving::getDirection().
|
pure virtual |
return the offset from the start of the current edge measured in its natural direction
Implemented in MSPModel_NonInteracting::PState, and MSPModel_InteractingState.
Referenced by MSStageMoving::getEdgePos().
|
inlinevirtual |
the current lane of the transportable
Reimplemented in MSPModel_InteractingState.
Definition at line 216 of file MSPModel.h.
Referenced by MSStageMoving::getLane(), MSStageWalking::loadState(), and MSPModel_Interacting::remove().
|
pure virtual |
return the list of internal edges if the transportable is on an intersection
Implemented in MSPModel_NonInteracting::PState, MSPModel_Striping::PState, and MSPModel_JuPedSim::PState.
Referenced by MSPerson::getNextEdgePtr().
|
inlinevirtual |
return the total length of the current lane (in particular for on a walkingarea)
Reimplemented in MSPModel_Striping::PState.
Definition at line 221 of file MSPModel.h.
Referenced by MSStageWalking::moveToNextEdge().
|
pure virtual |
return the network coordinate of the transportable
Implemented in MSPModel_JuPedSim::PState, MSPModel_NonInteracting::PState, MSPModel_NonInteracting::CState, and MSPModel_Striping::PState.
Referenced by MSStageMoving::getPosition().
|
pure virtual |
return the current speed of the transportable
Implemented in MSPModel_InteractingState, and MSPModel_NonInteracting::PState.
Referenced by MSStageMoving::getSpeed().
|
pure virtual |
return the time the transportable spent standing
Implemented in MSPModel_InteractingState, and MSPModel_NonInteracting::PState.
Referenced by MSStageMoving::getWaitingTime().
|
inlinevirtual |
whether the transportable has finished walking
Reimplemented in MSPModel_JuPedSim::PState.
Definition at line 211 of file MSPModel.h.
Referenced by MSStageMoving::~MSStageMoving().
|
inlinevirtual |
whether the transportable is jammed
Reimplemented in MSPModel_InteractingState.
Definition at line 206 of file MSPModel.h.
Referenced by MSPerson::isJammed().
|
inlinevirtual |
try to move transportable to the given position
Reimplemented in MSPModel_Striping::PState.
Definition at line 180 of file MSPModel.h.
References TL, UNUSED_PARAMETER, and WRITE_WARNING.
Referenced by LIBSUMO_NAMESPACE::Person::moveTo().
|
inlinevirtual |
try to move transportable to the given position
Reimplemented in MSPModel_Striping::PState.
Definition at line 190 of file MSPModel.h.
References TL, UNUSED_PARAMETER, and WRITE_WARNING.
Referenced by MSPerson::Influencer::postProcessRemoteControl().
|
inlinevirtual |
Saves the current state into the given stream.
Reimplemented in MSPModel_NonInteracting::PState, and MSPModel_Striping::PState.
Definition at line 227 of file MSPModel.h.
References UNUSED_PARAMETER.
Referenced by MSStageWalking::saveState().