Eclipse SUMO - Simulation of Urban MObility
|
Public Member Functions | |
void | abortWalk () |
SUMOTime | execute (SUMOTime currentTime) |
Executes the command. More... | |
const MSTransportable * | getTransportable () const |
MoveToNextEdge (MSTransportable *transportable, MSStageMoving &walk, MSPModel_NonInteracting *model) | |
virtual SUMOTime | shiftTime (SUMOTime, SUMOTime, SUMOTime) |
Reschedule or deschedule the command when quick-loading state. More... | |
Data Fields | |
int | priority = 0 |
Private Member Functions | |
MoveToNextEdge & | operator= (const MoveToNextEdge &) |
Invalidated assignment operator. More... | |
Private Attributes | |
MSPModel_NonInteracting * | myModel |
MSStageMoving & | myParent |
MSTransportable * | myTransportable |
Definition at line 82 of file MSPModel_NonInteracting.h.
|
inline |
Definition at line 84 of file MSPModel_NonInteracting.h.
|
inline |
Definition at line 87 of file MSPModel_NonInteracting.h.
References myTransportable.
Executes the command.
The implementations should return 0 if the command shall not be repeated, or a value larger than 0 that describe the time after which the command shall be executed again. Values below 0 must not be returned.
[in] | currentTime | The current simulation time |
ProcessError | Derived actions may throw this exception |
Implements Command.
Definition at line 100 of file MSPModel_NonInteracting.cpp.
References MSStageMoving::activateEntryReminders(), MSTransportableStateAdapter::getDirection(), MSStageMoving::getEdge(), MSStageMoving::getPState(), MSStageMoving::moveToNextEdge(), myModel, myParent, myTransportable, and MSPModel_NonInteracting::registerArrived().
|
inline |
Definition at line 90 of file MSPModel_NonInteracting.h.
References myTransportable.
|
private |
Invalidated assignment operator.
Reschedule or deschedule the command when quick-loading state.
The implementations should return -1 if the command shall not be re-scheduled, or a value >= 0 that describe the new time at which the command shall be executed again.
[in] | currentTime | The current simulation time |
[in] | execTime | The time at which the command would have been executed |
[in] | newTime | The simulation time at which the simulation is restarted |
Reimplemented in MSCalibrator::CalibratorCommand, and MSTrafficLightLogic::SwitchCommand.
|
private |
Definition at line 97 of file MSPModel_NonInteracting.h.
Referenced by execute().
|
private |
Definition at line 95 of file MSPModel_NonInteracting.h.
Referenced by execute().
|
private |
Definition at line 96 of file MSPModel_NonInteracting.h.
Referenced by abortWalk(), execute(), and getTransportable().
|
inherited |
Definition at line 87 of file Command.h.
Referenced by MSTrafficLightLogic::SwitchCommand::SwitchCommand().