Eclipse 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-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
16 // Writes e2 state on each tls switch
17 /****************************************************************************/
18 #ifndef Command_SaveTLCoupledDet_h
19 #define Command_SaveTLCoupledDet_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <string>
29 
30 
31 // ===========================================================================
32 // class declarations
33 // ===========================================================================
34 class MSNet;
37 class OutputDevice;
38 
39 
40 // ===========================================================================
41 // class definitions
42 // ===========================================================================
50 public:
59  MSDetectorFileOutput* dtf, SUMOTime begin, OutputDevice& device);
60 
61 
63  virtual ~Command_SaveTLCoupledDet();
64 
65 
74  virtual void execute();
75 
76 
77 protected:
80 
83 
86 
89 
90 
91 private:
94 
97 
98 };
99 
100 
101 #endif
102 
103 /****************************************************************************/
104 
Command_SaveTLCoupledDet & operator=(const Command_SaveTLCoupledDet &)
Invalidated assignment operator.
long long int SUMOTime
Definition: SUMOTime.h:35
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:92
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:64
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)