![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Public Member Functions | |
| SUMOTime | computeDuration (const MSEdge *prev, const MSStageMoving &stage, SUMOTime currentTime) |
| compute tranship time on edge and update state members | |
| CState (MoveToNextEdge *cmd, std::istringstream *in=nullptr) | |
| double | getAngle (const MSStageMoving &stage, SUMOTime now) const |
| return the direction in which the container heading to | |
| MoveToNextEdge * | getCommand () const |
| SUMOTime | getEventTime () const |
| virtual const MSLane * | getLane () const |
| the current lane of the transportable | |
| virtual double | getPathLength () const |
| return the total length of the current lane (in particular for on a walkingarea) | |
| Position | getPosition (const MSStageMoving &stage, SUMOTime now) const |
| return the network coordinate of the container | |
| virtual SUMOTime | getTotalWaitingTime () const |
| 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 | |
| void | saveState (std::ostringstream &out) |
| Saves the current state into the given stream. | |
| double | getEdgePos (SUMOTime now) const |
| abstract methods inherited from PedestrianState | |
| int | getDirection () const |
| return the walking direction (FORWARD, BACKWARD, UNDEFINED_DIRECTION) | |
| SUMOTime | getWaitingTime () const |
| return the time the transportable spent standing consecutively | |
| double | getSpeed (const MSStageMoving &stage) const |
| return the current speed of the transportable | |
| const MSEdge * | getNextEdge (const MSStageMoving &stage) const |
| return the list of internal edges if the transportable is on an intersection | |
Static Public Attributes | |
| static const double | LATERAL_OFFSET |
| the offset for computing container positions when being transhiped | |
Protected Attributes | |
| MoveToNextEdge * | myCommand |
| double | myCurrentBeginPos |
| SUMOTime | myCurrentDuration |
| double | myCurrentEndPos |
| SUMOTime | myLastEntryTime |
Private Attributes | |
| Position | myCurrentBeginPosition |
| Position | myCurrentEndPosition |
Definition at line 147 of file MSPModel_NonInteracting.h.
| MSPModel_NonInteracting::CState::CState | ( | MoveToNextEdge * | cmd, |
| std::istringstream * | in = nullptr ) |
Definition at line 217 of file MSPModel_NonInteracting.cpp.
References MSPModel_NonInteracting::PState::PState().
|
virtual |
compute tranship time on edge and update state members
Reimplemented from MSPModel_NonInteracting::PState.
Definition at line 240 of file MSPModel_NonInteracting.cpp.
References MSStage::getArrivalPos(), MSStageMoving::getDepartPos(), MSStageMoving::getEdges(), MSStageMoving::getFromEdge(), MSStage::getLanePosition(), MSEdge::getLanes(), MSStageMoving::getMaxSpeed(), LATERAL_OFFSET, MAX2(), MSPModel_NonInteracting::PState::myCurrentBeginPos, myCurrentBeginPosition, MSPModel_NonInteracting::PState::myCurrentDuration, MSPModel_NonInteracting::PState::myCurrentEndPos, myCurrentEndPosition, MSPModel_NonInteracting::PState::myLastEntryTime, and TIME2STEPS.
|
virtual |
return the direction in which the container heading to
Reimplemented from MSPModel_NonInteracting::PState.
Definition at line 230 of file MSPModel_NonInteracting.cpp.
References MSStageMoving::getEdge(), MSStage::getEdgeAngle(), MSPModel_NonInteracting::PState::getEdgePos(), M_PI, MSPModel_NonInteracting::PState::myCurrentBeginPos, and MSPModel_NonInteracting::PState::myCurrentEndPos.
|
inlineinherited |
Definition at line 126 of file MSPModel_NonInteracting.h.
References myCommand.
|
virtualinherited |
return the walking direction (FORWARD, BACKWARD, UNDEFINED_DIRECTION)
Implements MSTransportableStateAdapter.
Definition at line 159 of file MSPModel_NonInteracting.cpp.
References MSPModel::BACKWARD, MSPModel::FORWARD, myCurrentBeginPos, myCurrentEndPos, and MSPModel::UNDEFINED_DIRECTION.
|
virtualinherited |
abstract methods inherited from PedestrianState
return the offset from the start of the current edge measured in its natural direction
Implements MSTransportableStateAdapter.
Definition at line 153 of file MSPModel_NonInteracting.cpp.
References myCurrentBeginPos, myCurrentDuration, myCurrentEndPos, and myLastEntryTime.
Referenced by MSPModel_NonInteracting::CState::getAngle(), getAngle(), and getPosition().
|
inlineinherited |
Definition at line 130 of file MSPModel_NonInteracting.h.
References myCurrentDuration, and myLastEntryTime.
Referenced by MSPModel_NonInteracting::loadState().
|
inlinevirtualinherited |
the current lane of the transportable
Reimplemented in MSPModel_InteractingState.
Definition at line 220 of file MSPModel.h.
Referenced by MSPModel_Interacting::remove().
|
virtualinherited |
return the list of internal edges if the transportable is on an intersection
Implements MSTransportableStateAdapter.
Definition at line 203 of file MSPModel_NonInteracting.cpp.
References MSStageMoving::getNextRouteEdge().
|
inlinevirtualinherited |
return the total length of the current lane (in particular for on a walkingarea)
Reimplemented in MSPModel_Striping::PState.
Definition at line 225 of file MSPModel.h.
|
virtual |
return the network coordinate of the container
Reimplemented from MSPModel_NonInteracting::PState.
Definition at line 222 of file MSPModel_NonInteracting.cpp.
References MSStageMoving::getMaxSpeed(), MIN2(), myCurrentBeginPosition, myCurrentEndPosition, MSPModel_NonInteracting::PState::myLastEntryTime, PositionVector::positionAtOffset2D(), and STEPS2TIME.
|
virtualinherited |
return the current speed of the transportable
Implements MSTransportableStateAdapter.
Definition at line 197 of file MSPModel_NonInteracting.cpp.
References MSStageMoving::getMaxSpeed(), and myCommand.
|
inlinevirtualinherited |
Reimplemented in MSPModel_InteractingState.
Definition at line 173 of file MSPModel.h.
|
inlinevirtualinherited |
return the time the transportable spent standing consecutively
Implements MSTransportableStateAdapter.
Definition at line 117 of file MSPModel_NonInteracting.h.
|
inlinevirtualinherited |
whether the transportable has finished walking
Reimplemented in MSPModel_JuPedSim::PState.
Definition at line 215 of file MSPModel.h.
|
inlinevirtualinherited |
whether the transportable is jammed
Reimplemented in MSPModel_InteractingState.
Definition at line 210 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 184 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 194 of file MSPModel.h.
References TL, UNUSED_PARAMETER, and WRITE_WARNING.
Referenced by MSPerson::Influencer::postProcessRemoteControl().
|
virtualinherited |
Saves the current state into the given stream.
Reimplemented from MSTransportableStateAdapter.
Definition at line 209 of file MSPModel_NonInteracting.cpp.
References myCurrentDuration, and myLastEntryTime.
|
static |
the offset for computing container positions when being transhiped
Definition at line 152 of file MSPModel_NonInteracting.h.
Referenced by computeDuration().
|
protectedinherited |
Definition at line 143 of file MSPModel_NonInteracting.h.
Referenced by computeDuration(), getCommand(), getSpeed(), and PState().
|
protectedinherited |
Definition at line 141 of file MSPModel_NonInteracting.h.
Referenced by MSPModel_NonInteracting::CState::computeDuration(), computeDuration(), MSPModel_NonInteracting::CState::getAngle(), getAngle(), getDirection(), and getEdgePos().
|
private |
Definition at line 162 of file MSPModel_NonInteracting.h.
Referenced by computeDuration(), and getPosition().
|
protectedinherited |
Definition at line 140 of file MSPModel_NonInteracting.h.
Referenced by MSPModel_NonInteracting::CState::computeDuration(), computeDuration(), getEdgePos(), getEventTime(), PState(), and saveState().
|
protectedinherited |
Definition at line 142 of file MSPModel_NonInteracting.h.
Referenced by MSPModel_NonInteracting::CState::computeDuration(), computeDuration(), MSPModel_NonInteracting::CState::getAngle(), getAngle(), getDirection(), and getEdgePos().
|
private |
Definition at line 163 of file MSPModel_NonInteracting.h.
Referenced by computeDuration(), and getPosition().
|
protectedinherited |
Definition at line 139 of file MSPModel_NonInteracting.h.
Referenced by MSPModel_NonInteracting::CState::computeDuration(), computeDuration(), getEdgePos(), getEventTime(), MSPModel_NonInteracting::CState::getPosition(), PState(), and saveState().