SUMO - Simulation of Urban MObility
Command_SaveTLSState.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // Writes the state of the tls to a file (in each second)
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright (C) 2001-2015 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_SaveTLSState_h
22 #define Command_SaveTLSState_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>
35 #include <map>
36 #include <utils/common/Command.h>
38 
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
44 class OutputDevice;
45 
46 
47 // ===========================================================================
48 // class definitions
49 // ===========================================================================
54 class Command_SaveTLSState : public Command {
55 public:
62  OutputDevice& od);
63 
64 
67 
68 
71 
80  SUMOTime execute(SUMOTime currentTime);
82 
83 
84 private:
87 
90 
91 
92 private:
95 
98 
99 };
100 
101 
102 #endif
103 
104 /****************************************************************************/
105 
OutputDevice & myOutputDevice
The device to write to.
long long int SUMOTime
Definition: SUMOTime.h:43
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:61
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:71