SUMO - Simulation of Urban MObility
Command_SaveTLSState.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 the state of the tls to a file (in each second)
19 /****************************************************************************/
20 #ifndef Command_SaveTLSState_h
21 #define Command_SaveTLSState_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>
34 #include <map>
35 #include <utils/common/Command.h>
37 
38 
39 // ===========================================================================
40 // class declarations
41 // ===========================================================================
43 class OutputDevice;
44 
45 
46 // ===========================================================================
47 // class definitions
48 // ===========================================================================
53 class Command_SaveTLSState : public Command {
54 public:
61  OutputDevice& od);
62 
63 
66 
67 
70 
79  SUMOTime execute(SUMOTime currentTime);
81 
82 
83 private:
86 
89 
90 
91 private:
94 
97 
98 };
99 
100 
101 #endif
102 
103 /****************************************************************************/
104 
OutputDevice & myOutputDevice
The device to write to.
Storage for all programs of a single tls.
SUMOTime execute(SUMOTime currentTime)
Writes the current state of the tls.
Base (microsim) event class.
Definition: Command.h:60
const MSTLLogicControl::TLSLogicVariants & myLogics
The traffic light logic to use.
~Command_SaveTLSState()
Destructor.
Command_SaveTLSState(const MSTLLogicControl::TLSLogicVariants &logics, OutputDevice &od)
Constructor.
Writes the state of the tls to a file (in each second)
Command_SaveTLSState & operator=(const Command_SaveTLSState &)
Invalidated assignment operator.
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