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 
MSDetectorFileOutput
Base of value-generating classes (detectors)
Definition: MSDetectorFileOutput.h:64
OutputDevice
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:64
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:35
Command_SaveTLCoupledLaneDet
Writes e2 state of a link for the time the link has yellow/red.
Definition: Command_SaveTLCoupledLaneDet.h:41
LinkState
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic,...
Definition: SUMOXMLDefinitions.h:1132
Command_SaveTLCoupledDet
Writes e2 state on each tls switch.
Definition: Command_SaveTLCoupledDet.h:49
Command_SaveTLCoupledLaneDet::operator=
Command_SaveTLCoupledLaneDet & operator=(const Command_SaveTLCoupledLaneDet &)
Invalidated assignment operator.
Command_SaveTLCoupledLaneDet::myLink
MSLink * myLink
The link to observe.
Definition: Command_SaveTLCoupledLaneDet.h:75
Command_SaveTLCoupledDet.h
Command_SaveTLCoupledLaneDet::myHadOne
bool myHadOne
Whether the last link state was already saved.
Definition: Command_SaveTLCoupledLaneDet.h:81
Command_SaveTLCoupledLaneDet::myLastState
LinkState myLastState
The state the link had the last time.
Definition: Command_SaveTLCoupledLaneDet.h:78
Command_SaveTLCoupledLaneDet::~Command_SaveTLCoupledLaneDet
~Command_SaveTLCoupledLaneDet()
Destructor.
Definition: Command_SaveTLCoupledLaneDet.cpp:49
MSTLLogicControl::TLSLogicVariants
Storage for all programs of a single tls.
Definition: MSTLLogicControl.h:86
config.h
Command_SaveTLCoupledLaneDet::execute
void execute()
Executes the command.
Definition: Command_SaveTLCoupledLaneDet.cpp:54
Command_SaveTLCoupledLaneDet::Command_SaveTLCoupledLaneDet
Command_SaveTLCoupledLaneDet(MSTLLogicControl::TLSLogicVariants &tlls, MSDetectorFileOutput *dtf, SUMOTime begin, OutputDevice &device, MSLink *link)
Constructor.
Definition: Command_SaveTLCoupledLaneDet.cpp:40