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