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 /****************************************************************************/
15 // Writes e2 state on each tls switch
16 /****************************************************************************/
17 #ifndef Command_SaveTLCoupledDet_h
18 #define Command_SaveTLCoupledDet_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <string>
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class MSNet;
36 class OutputDevice;
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
49 public:
58  MSDetectorFileOutput* dtf, SUMOTime begin, OutputDevice& device);
59 
60 
62  virtual ~Command_SaveTLCoupledDet();
63 
64 
73  virtual void execute();
74 
75 
76 protected:
79 
82 
85 
88 
89 
90 private:
93 
96 
97 };
98 
99 
100 #endif
101 
102 /****************************************************************************/
103 
Command_SaveTLCoupledDet::operator=
Command_SaveTLCoupledDet & operator=(const Command_SaveTLCoupledDet &)
Invalidated assignment operator.
Command_SaveTLCoupledDet::myDevice
OutputDevice & myDevice
The file to write the output to.
Definition: Command_SaveTLCoupledDet.h:78
Command_SaveTLCoupledDet::myDetector
MSDetectorFileOutput * myDetector
The detector to use.
Definition: Command_SaveTLCoupledDet.h:84
MSTLLogicControl.h
MSDetectorFileOutput
Base of value-generating classes (detectors)
Definition: MSDetectorFileOutput.h:63
OutputDevice
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:63
MSNet
The simulated network and simulation perfomer.
Definition: MSNet.h:91
Command_SaveTLCoupledDet::~Command_SaveTLCoupledDet
virtual ~Command_SaveTLCoupledDet()
Destructor.
Definition: Command_SaveTLCoupledDet.cpp:46
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
Command_SaveTLCoupledDet::myLogics
const MSTLLogicControl::TLSLogicVariants & myLogics
The logic to use.
Definition: Command_SaveTLCoupledDet.h:81
Command_SaveTLCoupledDet::execute
virtual void execute()
Executes the command.
Definition: Command_SaveTLCoupledDet.cpp:51
Command_SaveTLCoupledDet
Writes e2 state on each tls switch.
Definition: Command_SaveTLCoupledDet.h:48
MSTrafficLightLogic
The parent class for traffic light logics.
Definition: MSTrafficLightLogic.h:55
Command_SaveTLCoupledDet::Command_SaveTLCoupledDet
Command_SaveTLCoupledDet(MSTLLogicControl::TLSLogicVariants &tlls, MSDetectorFileOutput *dtf, SUMOTime begin, OutputDevice &device)
Constructor.
Definition: Command_SaveTLCoupledDet.cpp:37
MSTLLogicControl::TLSLogicVariants
Storage for all programs of a single tls.
Definition: MSTLLogicControl.h:85
config.h
MSTLLogicControl::OnSwitchAction
Base class for things to execute if a tls switches to a new phase.
Definition: MSTLLogicControl.h:65
Command_SaveTLCoupledDet::myStartTime
SUMOTime myStartTime
The last time the values were written.
Definition: Command_SaveTLCoupledDet.h:87