Eclipse 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-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 /****************************************************************************/
17 // Writes e2 state of a link for the time the link has yellow/red
18 /****************************************************************************/
19 #ifndef Command_SaveTLCoupledLaneDet_h
20 #define Command_SaveTLCoupledLaneDet_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <microsim/MSLink.h>
30 
31 
32 // ===========================================================================
33 // class definitions
34 // ===========================================================================
42 public:
52  MSDetectorFileOutput* dtf, SUMOTime begin, OutputDevice& device,
53  MSLink* link);
54 
55 
58 
59 
70  void execute();
71 
72 
73 private:
76 
79 
81  bool myHadOne;
82 
83 
84 private:
87 
90 
91 };
92 
93 
94 #endif
95 
96 /****************************************************************************/
97 
long long int SUMOTime
Definition: SUMOTime.h:35
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:64
Writes e2 state of a link for the time the link has yellow/red.
Base of value-generating classes (detectors)