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 /****************************************************************************/
16 // Writes e2 state of a link for the time the link has yellow/red
17 /****************************************************************************/
18 #ifndef Command_SaveTLCoupledLaneDet_h
19 #define Command_SaveTLCoupledLaneDet_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <microsim/MSLink.h>
29 
30 
31 // ===========================================================================
32 // class definitions
33 // ===========================================================================
41 public:
51  MSDetectorFileOutput* dtf, SUMOTime begin, OutputDevice& device,
52  const MSLink* link);
53 
54 
57 
58 
69  void execute();
70 
71 
72 private:
74  const MSLink* myLink;
75 
78 
80  bool myHadOne;
81 
82 
83 private:
86 
89 
90 };
91 
92 
93 #endif
94 
95 /****************************************************************************/
96 
Command_SaveTLCoupledLaneDet::Command_SaveTLCoupledLaneDet
Command_SaveTLCoupledLaneDet(MSTLLogicControl::TLSLogicVariants &tlls, MSDetectorFileOutput *dtf, SUMOTime begin, OutputDevice &device, const MSLink *link)
Constructor.
Definition: Command_SaveTLCoupledLaneDet.cpp:39
MSDetectorFileOutput
Base of value-generating classes (detectors)
Definition: MSDetectorFileOutput.h:63
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_SaveTLCoupledLaneDet
Writes e2 state of a link for the time the link has yellow/red.
Definition: Command_SaveTLCoupledLaneDet.h:40
LinkState
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic,...
Definition: SUMOXMLDefinitions.h:1137
Command_SaveTLCoupledLaneDet::myLink
const MSLink * myLink
The link to observe.
Definition: Command_SaveTLCoupledLaneDet.h:74
Command_SaveTLCoupledDet
Writes e2 state on each tls switch.
Definition: Command_SaveTLCoupledDet.h:48
Command_SaveTLCoupledLaneDet::operator=
Command_SaveTLCoupledLaneDet & operator=(const Command_SaveTLCoupledLaneDet &)
Invalidated assignment operator.
Command_SaveTLCoupledDet.h
Command_SaveTLCoupledLaneDet::myHadOne
bool myHadOne
Whether the last link state was already saved.
Definition: Command_SaveTLCoupledLaneDet.h:80
Command_SaveTLCoupledLaneDet::myLastState
LinkState myLastState
The state the link had the last time.
Definition: Command_SaveTLCoupledLaneDet.h:77
Command_SaveTLCoupledLaneDet::~Command_SaveTLCoupledLaneDet
~Command_SaveTLCoupledLaneDet()
Destructor.
Definition: Command_SaveTLCoupledLaneDet.cpp:48
MSTLLogicControl::TLSLogicVariants
Storage for all programs of a single tls.
Definition: MSTLLogicControl.h:85
config.h
Command_SaveTLCoupledLaneDet::execute
void execute()
Executes the command.
Definition: Command_SaveTLCoupledLaneDet.cpp:53