SUMO - Simulation of Urban MObility
Command_SaveTLCoupledLaneDet.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 /****************************************************************************/
19 // Writes e2 state of a link for the time the link has yellow/red
20 /****************************************************************************/
21 #ifndef Command_SaveTLCoupledLaneDet_h
22 #define Command_SaveTLCoupledLaneDet_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 <microsim/MSLink.h>
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
48 public:
58  MSDetectorFileOutput* dtf, SUMOTime begin, OutputDevice& device,
59  MSLink* link);
60 
61 
64 
65 
76  void execute();
77 
78 
79 private:
82 
85 
87  bool myHadOne;
88 
89 
90 private:
93 
96 
97 };
98 
99 
100 #endif
101 
102 /****************************************************************************/
103 
bool myHadOne
Whether the last link state was already saved.
Storage for all programs of a single tls.
MSLink * myLink
The link to observe.
LinkState myLastState
The state the link had the last time.
Command_SaveTLCoupledLaneDet & operator=(const Command_SaveTLCoupledLaneDet &)
Invalidated assignment operator.
Writes e2 state on each tls switch.
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic, in MSLink and GNEInternalLane.
Command_SaveTLCoupledLaneDet(MSTLLogicControl::TLSLogicVariants &tlls, MSDetectorFileOutput *dtf, SUMOTime begin, OutputDevice &device, MSLink *link)
Constructor.
void execute()
Executes the command.
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:70
long long int SUMOTime
Definition: TraCIDefs.h:51
Writes e2 state of a link for the time the link has yellow/red.
Base of value-generating classes (detectors)