Writes the switch times of a tls into a file when the tls switches.
SUMOTime execute(SUMOTime currentTime)
Writes the state of the tls if a change occurred.
std::vector< MSPhaseDefinition > myPreviousStates
Storage for prior state.
const MSTLLogicControl::TLSLogicVariants & myLogics
The traffic light logic to use.
void writeCurrent()
Write the current program.
std::string myTLSID
Storage for the tls ID (needed in destructor)
~Command_SaveTLSProgram()
Destructor.
std::string myPreviousProgramID
Storage for prior sub-id.
OutputDevice & myOutputDevice
The device to write to.
Command_SaveTLSProgram & operator=(const Command_SaveTLSProgram &)
Invalidated assignment operator.
Command_SaveTLSProgram(const Command_SaveTLSProgram &)
Invalidated copy constructor.
Base (microsim) event class.
Storage for all programs of a single tls.
The parent class for traffic light logics.
Static storage of an output device and its base (abstract) implementation.