@ LINKSTATE_TL_RED
The link has red light (must brake)
Writes e2 state on each tls switch.
MSDetectorFileOutput * myDetector
The detector to use.
OutputDevice & myDevice
The file to write the output to.
SUMOTime myStartTime
The last time the values were written.
~Command_SaveTLCoupledLaneDet()
Destructor.
Command_SaveTLCoupledLaneDet(MSTLLogicControl::TLSLogicVariants &tlls, MSDetectorFileOutput *dtf, SUMOTime begin, OutputDevice &device, const MSLink *link)
Constructor.
const MSLink * myLink
The link to observe.
bool myHadOne
Whether the last link state was already saved.
void execute()
Executes the command.
LinkState myLastState
The state the link had the last time.
Base of value-generating classes (detectors)
virtual void reset()
Resets collected values.
virtual void writeXMLOutput(OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime)=0
Write the generated output to the given device.
LinkState getState() const
Returns the current state of the link.
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
SUMOTime getCurrentTimeStep() const
Returns the current simulation step.
Storage for all programs of a single tls.
Static storage of an output device and its base (abstract) implementation.