38 #ifdef CHECK_MEMORY_LEAKS 40 #endif // CHECK_MEMORY_LEAKS 48 : myOutputDevice(od), myLogics(logics) {
OutputDevice & myOutputDevice
The device to write to.
virtual const MSPhaseDefinition & getCurrentPhaseDef() const =0
Returns the definition of the current phase.
const std::string & getState() const
Returns the state within this phase.
virtual unsigned int getCurrentPhaseIndex() const =0
Returns the current index within the program.
Storage for all programs of a single tls.
std::string time2string(SUMOTime t)
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
SUMOTime execute(SUMOTime currentTime)
Writes the current state of the tls.
bool writeXMLHeader(const std::string &rootElement, const std::string &attrs="", const std::string &comment="")
Writes an XML header with optional configuration.
const std::string & getID() const
Returns the id.
MSTrafficLightLogic * getActive() const
const MSTLLogicControl::TLSLogicVariants & myLogics
The traffic light logic to use.
~Command_SaveTLSState()
Destructor.
Command_SaveTLSState(const MSTLLogicControl::TLSLogicVariants &logics, OutputDevice &od)
Constructor.
virtual SUMOTime addEvent(Command *operation, SUMOTime execTimeStep, AdaptType type)
Adds an Event.
MSEventControl * getEndOfTimestepEvents()
Returns the event control for events executed at the end of a time step.
Patch the time in a way that it is at least as high as the simulation begin time. ...
Static storage of an output device and its base (abstract) implementation.
const std::string & getProgramID() const
Returns this tl-logic's id.