Eclipse SUMO - Simulation of Urban MObility
|
Writes e2 state on each tls switch. More...
#include <Command_SaveTLCoupledDet.h>
Public Member Functions | |
Command_SaveTLCoupledDet (MSTLLogicControl::TLSLogicVariants &tlls, MSDetectorFileOutput *dtf, SUMOTime begin, OutputDevice &device) | |
Constructor. | |
virtual void | execute () |
Executes the command. | |
virtual | ~Command_SaveTLCoupledDet () |
Destructor. | |
Protected Attributes | |
MSDetectorFileOutput * | myDetector |
The detector to use. | |
OutputDevice & | myDevice |
The file to write the output to. | |
const MSTLLogicControl::TLSLogicVariants & | myLogics |
The logic to use. | |
SUMOTime | myStartTime |
The last time the values were written. | |
Private Member Functions | |
Command_SaveTLCoupledDet (const Command_SaveTLCoupledDet &) | |
Invalidated copy constructor. | |
Command_SaveTLCoupledDet & | operator= (const Command_SaveTLCoupledDet &) |
Invalidated assignment operator. | |
Writes e2 state on each tls switch.
Definition at line 46 of file Command_SaveTLCoupledDet.h.
Command_SaveTLCoupledDet::Command_SaveTLCoupledDet | ( | MSTLLogicControl::TLSLogicVariants & | tlls, |
MSDetectorFileOutput * | dtf, | ||
SUMOTime | begin, | ||
OutputDevice & | device | ||
) |
Constructor.
[in] | tlls | The logic to observe |
[in] | dtf | The detector used to generate the values |
[in] | begin | The begin simulation time |
[in] | device | The output device to write the detector values into |
Definition at line 36 of file Command_SaveTLCoupledDet.cpp.
References MSTLLogicControl::TLSLogicVariants::addSwitchCommand(), and MSDetectorFileOutput::writeXMLDetectorProlog().
|
virtual |
Destructor.
Definition at line 45 of file Command_SaveTLCoupledDet.cpp.
|
private |
Invalidated copy constructor.
|
virtual |
Executes the command.
Called when an active tls program switches, this method calls "writeXMLOutput" of its detector (e2; the values are resetted there).
Implements MSTLLogicControl::OnSwitchAction.
Reimplemented in Command_SaveTLCoupledLaneDet.
Definition at line 50 of file Command_SaveTLCoupledDet.cpp.
References MSNet::getCurrentTimeStep(), MSNet::getInstance(), myDetector, myDevice, myStartTime, and MSDetectorFileOutput::writeXMLOutput().
|
private |
Invalidated assignment operator.
|
protected |
The detector to use.
Definition at line 82 of file Command_SaveTLCoupledDet.h.
Referenced by execute(), and Command_SaveTLCoupledLaneDet::execute().
|
protected |
The file to write the output to.
Definition at line 76 of file Command_SaveTLCoupledDet.h.
Referenced by execute(), and Command_SaveTLCoupledLaneDet::execute().
|
protected |
The logic to use.
Definition at line 79 of file Command_SaveTLCoupledDet.h.
|
protected |
The last time the values were written.
Definition at line 85 of file Command_SaveTLCoupledDet.h.
Referenced by execute(), and Command_SaveTLCoupledLaneDet::execute().