49 const std::string& state =
myLogics.getActive()->getCurrentPhaseDef().getState();
57 if (!
myLogics.getActive()->getCurrentPhaseDef().getName().empty()) {
std::string time2string(SUMOTime t, bool humanReadable)
convert SUMOTime to string (independently of global format setting)
@ SUMO_ATTR_STATE
The state of a link.
@ SUMO_ATTR_TIME
trigger: the time of the step
std::string myPreviousState
Storage for prior state.
OutputDevice & myOutputDevice
The device to write to.
Command_SaveTLSSwitchStates(const MSTLLogicControl::TLSLogicVariants &logics, OutputDevice &od)
Constructor.
std::string myPreviousProgramID
Storage for prior sub-id.
~Command_SaveTLSSwitchStates()
Destructor.
const MSTLLogicControl::TLSLogicVariants & myLogics
The traffic light logic to use.
SUMOTime execute(SUMOTime currentTime)
Writes the state of the tls if a change occurred.
virtual void addEvent(Command *operation, SUMOTime execTimeStep=-1)
Adds an Event.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
MSEventControl * getEndOfTimestepEvents()
Returns the event control for events executed at the end of a time step.
Storage for all programs of a single tls.
Static storage of an output device and its base (abstract) implementation.