SUMO - Simulation of Urban MObility
Command_SaveTLCoupledDet.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // Writes e2 state on each tls switch
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef Command_SaveTLCoupledDet_h
22 #define Command_SaveTLCoupledDet_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <string>
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 class MSNet;
44 class OutputDevice;
45 
46 
47 // ===========================================================================
48 // class definitions
49 // ===========================================================================
57 public:
66  MSDetectorFileOutput* dtf, SUMOTime begin, OutputDevice& device);
67 
68 
70  virtual ~Command_SaveTLCoupledDet();
71 
72 
81  virtual void execute();
82 
83 
84 protected:
87 
90 
93 
96 
97 
98 private:
101 
104 
105 };
106 
107 
108 #endif
109 
110 /****************************************************************************/
111 
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:94
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:71
long long int SUMOTime
Definition: TraCIDefs.h:52
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)