![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Set/unsets inductionloop override. More...
#include <Command_Hotkey_InductionLoop.h>
Public Member Functions | |
| Command_Hotkey_InductionLoop (MSInductLoop *det, bool set) | |
| Constructor. | |
| virtual SUMOTime | shiftTime (SUMOTime, SUMOTime, SUMOTime) |
| Reschedule or deschedule the command when quick-loading state. | |
| ~Command_Hotkey_InductionLoop () | |
| Destructor. | |
Derived from Command | |
| SUMOTime | execute (SUMOTime currentTime) |
| toggles override | |
Static Public Member Functions | |
| static bool | registerHotkey (const std::string &key, MSInductLoop *det) |
| register hotkey actions | |
Data Fields | |
| int | priority = 0 |
Private Member Functions | |
| Command_Hotkey_InductionLoop (const Command_Hotkey_InductionLoop &) | |
| Invalidated copy constructor. | |
| Command_Hotkey_InductionLoop & | operator= (const Command_Hotkey_InductionLoop &) |
| Invalidated assignment operator. | |
Private Attributes | |
| MSInductLoop * | myDetector |
| The detector to be manipulated. | |
| bool | mySet |
| whether the override shall be set or reset | |
Set/unsets inductionloop override.
Definition at line 41 of file Command_Hotkey_InductionLoop.h.
| Command_Hotkey_InductionLoop::Command_Hotkey_InductionLoop | ( | MSInductLoop * | det, |
| bool | set | ||
| ) |
Constructor.
| [in] | det | The Detector to manipulate |
| [in] | set | whether to set or unset the override |
Definition at line 31 of file Command_Hotkey_InductionLoop.cpp.
| Command_Hotkey_InductionLoop::~Command_Hotkey_InductionLoop | ( | ) |
Destructor.
Definition at line 36 of file Command_Hotkey_InductionLoop.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_InductionLoop.cpp.
References myDetector, mySet, and MSInductLoop::overrideTimeSinceDetection().
|
private |
Invalidated assignment operator.
|
static |
register hotkey actions
Definition at line 47 of file Command_Hotkey_InductionLoop.cpp.
References GUINet::addHotkey(), MSNet::getInstance(), gn, TL, and WRITE_WARNINGF.
Referenced by GUIInductLoop::buildDetectorGUIRepresentation().
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 detector to be manipulated.
Definition at line 74 of file Command_Hotkey_InductionLoop.h.
Referenced by execute().
|
private |
whether the override shall be set or reset
Definition at line 77 of file Command_Hotkey_InductionLoop.h.
Referenced by execute().
|
inherited |
Definition at line 87 of file Command.h.
Referenced by MSTransportableDevice_FCDReplay::MovePedestrians::MovePedestrians(), MSDevice_Routing::rebuildRerouteCommand(), and MSTrafficLightLogic::SwitchCommand::SwitchCommand().