SUMO - Simulation of Urban MObility
Command_SaveTLCoupledDet.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // Writes e2 state on each tls switch
19 /****************************************************************************/
20 #ifndef Command_SaveTLCoupledDet_h
21 #define Command_SaveTLCoupledDet_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <string>
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class MSNet;
43 class OutputDevice;
44 
45 
46 // ===========================================================================
47 // class definitions
48 // ===========================================================================
56 public:
65  MSDetectorFileOutput* dtf, SUMOTime begin, OutputDevice& device);
66 
67 
69  virtual ~Command_SaveTLCoupledDet();
70 
71 
80  virtual void execute();
81 
82 
83 protected:
86 
89 
92 
95 
96 
97 private:
100 
103 
104 };
105 
106 
107 #endif
108 
109 /****************************************************************************/
110 
Command_SaveTLCoupledDet & operator=(const Command_SaveTLCoupledDet &)
Invalidated assignment operator.
Storage for all programs of a single tls.
Base class for things to execute if a tls switches to a new phase.
Command_SaveTLCoupledDet(MSTLLogicControl::TLSLogicVariants &tlls, MSDetectorFileOutput *dtf, SUMOTime begin, OutputDevice &device)
Constructor.
The simulated network and simulation perfomer.
Definition: MSNet.h:90
Writes e2 state on each tls switch.
virtual void execute()
Executes the command.
SUMOTime myStartTime
The last time the values were written.
const MSTLLogicControl::TLSLogicVariants & myLogics
The logic to use.
The parent class for traffic light logics.
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:70
long long int SUMOTime
Definition: TraCIDefs.h:51
OutputDevice & myDevice
The file to write the output to.
MSDetectorFileOutput * myDetector
The detector to use.
virtual ~Command_SaveTLCoupledDet()
Destructor.
Base of value-generating classes (detectors)