Eclipse SUMO - Simulation of Urban MObility
|
Set/unsets inductionloop override. More...
#include <Command_Hotkey_TrafficLight.h>
Public Member Functions | |
Command_Hotkey_TrafficLight (MSTrafficLightLogic &tll) | |
Constructor. | |
virtual SUMOTime | shiftTime (SUMOTime, SUMOTime, SUMOTime) |
Reschedule or deschedule the command when quick-loading state. | |
~Command_Hotkey_TrafficLight () | |
Destructor. | |
Derived from Command | |
SUMOTime | execute (SUMOTime currentTime) |
toggles override | |
Static Public Member Functions | |
static bool | registerHotkey (const std::string &key, MSTrafficLightLogic &tll) |
register hotkey actions | |
Data Fields | |
int | priority = 0 |
Private Member Functions | |
Command_Hotkey_TrafficLight (const Command_Hotkey_TrafficLight &) | |
Invalidated copy constructor. | |
Command_Hotkey_TrafficLight & | operator= (const Command_Hotkey_TrafficLight &) |
Invalidated assignment operator. | |
Private Attributes | |
MSTrafficLightLogic & | myLogic |
The traffic light logic to be manipulated. | |
Set/unsets inductionloop override.
Definition at line 40 of file Command_Hotkey_TrafficLight.h.
Command_Hotkey_TrafficLight::Command_Hotkey_TrafficLight | ( | MSTrafficLightLogic & | tll | ) |
Constructor.
[in] | tll | The traffic light logic to manipulate |
Definition at line 31 of file Command_Hotkey_TrafficLight.cpp.
Command_Hotkey_TrafficLight::~Command_Hotkey_TrafficLight | ( | ) |
Destructor.
Definition at line 36 of file Command_Hotkey_TrafficLight.cpp.
|
private |
Invalidated copy constructor.
toggles override
Returns always 1.
[in] | currentTime | The current simulation time (unused) |
Implements Command.
Definition at line 40 of file Command_Hotkey_TrafficLight.cpp.
References MSTrafficLightLogic::changeStepAndDuration(), MSTrafficLightLogic::getCurrentPhaseIndex(), MSNet::getInstance(), MSTrafficLightLogic::getPhaseNumber(), MSNet::getTLSControl(), and myLogic.
|
private |
Invalidated assignment operator.
|
static |
register hotkey actions
Definition at line 48 of file Command_Hotkey_TrafficLight.cpp.
References GUINet::addHotkey(), MSNet::getInstance(), gn, TL, and WRITE_WARNINGF.
Referenced by GUINet::createTLWrapper().
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 MSTrafficLightLogic::SwitchCommand, and MSCalibrator::CalibratorCommand.
|
private |
The traffic light logic to be manipulated.
Definition at line 72 of file Command_Hotkey_TrafficLight.h.
Referenced by execute().
|
inherited |
Definition at line 87 of file Command.h.
Referenced by MSTransportableDevice_FCDReplay::MovePedestrians::MovePedestrians(), and MSTrafficLightLogic::SwitchCommand::SwitchCommand().