![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Public Member Functions | |
| SUMOTime | execute (SUMOTime currentTime) |
| Executes the command. | |
| ProceedCmd (MSTransportable *person, MSEdge *edge) | |
| virtual SUMOTime | shiftTime (SUMOTime, SUMOTime, SUMOTime) |
| Reschedule or deschedule the command when quick-loading state. | |
| ~ProceedCmd () | |
Data Fields | |
| int | priority = 0 |
Private Member Functions | |
| ProceedCmd & | operator= (const ProceedCmd &) |
| Invalidated assignment operator. | |
Private Attributes | |
| MSTransportable *const | myPerson |
| MSEdge * | myStopEdge |
Definition at line 110 of file MSPerson.h.
|
inline |
Definition at line 112 of file MSPerson.h.
References MSTransportable::MSTransportable(), myPerson, and myStopEdge.
Referenced by operator=().
|
inline |
Definition at line 113 of file MSPerson.h.
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 138 of file MSPerson.cpp.
References MSTransportableControl::endedAccess(), MSTransportableControl::erase(), MSNet::getInstance(), MSNet::getPersonControl(), myPerson, and myStopEdge.
|
private |
Invalidated assignment operator.
References ProceedCmd().
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 116 of file MSPerson.h.
Referenced by execute(), and ProceedCmd().
|
private |
Definition at line 117 of file MSPerson.h.
Referenced by execute(), and ProceedCmd().
|
inherited |
Definition at line 87 of file Command.h.
Referenced by MSTransportableDevice_FCDReplay::MovePedestrians::MovePedestrians(), and MSTrafficLightLogic::SwitchCommand::SwitchCommand().