Eclipse 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-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 the state of the tls to a file (in each second)
16 /****************************************************************************/
17 #ifndef Command_SaveTLSState_h
18 #define Command_SaveTLSState_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <string>
27 #include <map>
28 #include <utils/common/Command.h>
30 
31 
32 // ===========================================================================
33 // class declarations
34 // ===========================================================================
36 class OutputDevice;
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
46 class Command_SaveTLSState : public Command {
47 public:
54  OutputDevice& od);
55 
56 
59 
60 
63 
72  SUMOTime execute(SUMOTime currentTime);
74 
75 
76 private:
79 
82 
83 
84 private:
87 
90 
91 };
92 
93 
94 #endif
95 
96 /****************************************************************************/
97 
MSTLLogicControl.h
OutputDevice
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:63
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
Command_SaveTLSState::~Command_SaveTLSState
~Command_SaveTLSState()
Destructor.
Definition: Command_SaveTLSState.cpp:42
Command_SaveTLSState::Command_SaveTLSState
Command_SaveTLSState(const MSTLLogicControl::TLSLogicVariants &logics, OutputDevice &od)
Constructor.
Definition: Command_SaveTLSState.cpp:34
Command_SaveTLSState::operator=
Command_SaveTLSState & operator=(const Command_SaveTLSState &)
Invalidated assignment operator.
MSTrafficLightLogic
The parent class for traffic light logics.
Definition: MSTrafficLightLogic.h:55
Command_SaveTLSState
Writes the state of the tls to a file (in each second)
Definition: Command_SaveTLSState.h:46
Command
Base (microsim) event class.
Definition: Command.h:52
Command_SaveTLSState::myOutputDevice
OutputDevice & myOutputDevice
The device to write to.
Definition: Command_SaveTLSState.h:78
MSTLLogicControl::TLSLogicVariants
Storage for all programs of a single tls.
Definition: MSTLLogicControl.h:85
Command_SaveTLSState::Command_SaveTLSState
Command_SaveTLSState(const Command_SaveTLSState &)
Invalidated copy constructor.
config.h
Command.h
Command_SaveTLSState::execute
SUMOTime execute(SUMOTime currentTime)
Writes the current state of the tls.
Definition: Command_SaveTLSState.cpp:47
Command_SaveTLSState::myLogics
const MSTLLogicControl::TLSLogicVariants & myLogics
The traffic light logic to use.
Definition: Command_SaveTLSState.h:81