SUMO - Simulation of Urban MObility
Command_SaveTLCoupledLaneDet.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // Writes e2 state of a link for the time the link has yellow/red
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2001-2015 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef Command_SaveTLCoupledLaneDet_h
23 #define Command_SaveTLCoupledLaneDet_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <microsim/MSLink.h>
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
49 public:
59  MSDetectorFileOutput* dtf, unsigned int begin, OutputDevice& device,
60  MSLink* link);
61 
62 
65 
66 
77  void execute();
78 
79 
80 private:
83 
86 
88  bool myHadOne;
89 
90 
91 private:
94 
97 
98 };
99 
100 
101 #endif
102 
103 /****************************************************************************/
104 
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.
Command_SaveTLCoupledLaneDet(MSTLLogicControl::TLSLogicVariants &tlls, MSDetectorFileOutput *dtf, unsigned int begin, OutputDevice &device, MSLink *link)
Constructor.
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.
void execute()
Executes the command.
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:71
Writes e2 state of a link for the time the link has yellow/red.
Base of value-generating classes (detectors)