![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Public Member Functions | |
| BookReservation (MSTransportable *transportable, SUMOTime earliestPickupTime, MSStageDriving *stage) | |
| SUMOTime | execute (SUMOTime currentTime) |
| Executes the command. | |
| virtual SUMOTime | shiftTime (SUMOTime, SUMOTime, SUMOTime) |
| Reschedule or deschedule the command when quick-loading state. | |
Data Fields | |
| SUMOTime | myEarliestPickupTime |
| MSStageDriving * | myStage |
| MSTransportable * | myTransportable |
| double | myWaitingPos |
| int | priority = 0 |
Definition at line 246 of file MSStageDriving.h.
|
inline |
Definition at line 248 of file MSStageDriving.h.
References MSStageDriving::MSStageDriving(), myEarliestPickupTime, myStage, myTransportable, and myWaitingPos.
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 684 of file MSStageDriving.cpp.
References MSDevice_Taxi::addReservation(), myEarliestPickupTime, myStage, and myTransportable.
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.
| SUMOTime MSStageDriving::BookReservation::myEarliestPickupTime |
Definition at line 254 of file MSStageDriving.h.
Referenced by BookReservation(), and execute().
| MSStageDriving* MSStageDriving::BookReservation::myStage |
Definition at line 255 of file MSStageDriving.h.
Referenced by BookReservation(), and execute().
| MSTransportable* MSStageDriving::BookReservation::myTransportable |
Definition at line 253 of file MSStageDriving.h.
Referenced by BookReservation(), and execute().
| double MSStageDriving::BookReservation::myWaitingPos |
Definition at line 256 of file MSStageDriving.h.
Referenced by BookReservation().
|
inherited |
Definition at line 87 of file Command.h.
Referenced by MSTransportableDevice_FCDReplay::MovePedestrians::MovePedestrians(), and MSTrafficLightLogic::SwitchCommand::SwitchCommand().