Eclipse SUMO - Simulation of Urban MObility
GUIDetectorBuilder.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 /****************************************************************************/
15 // Builds detectors for guisim
16 /****************************************************************************/
17 #ifndef GUIDetectorBuilder_h
18 #define GUIDetectorBuilder_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <string>
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class MSNet;
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
49 public:
55 
56 
59 
60 
65 
76  virtual MSDetectorFileOutput* createInductLoop(const std::string& id,
77  MSLane* lane, double pos, const std::string& vTypes, bool show = true);
78 
79 
89  virtual MSDetectorFileOutput* createInstantInductLoop(const std::string& id,
90  MSLane* lane, double pos, const std::string& od, const std::string& vTypes);
91 
98  virtual MSE2Collector* createE2Detector(const std::string& id,
99  DetectorUsage usage, MSLane* lane, double pos, double endPos, double length,
100  SUMOTime haltingTimeThreshold, double haltingSpeedThreshold, double jamDistThreshold,
101  const std::string& vTypes, bool showDetector);
102 
103  virtual MSE2Collector* createE2Detector(const std::string& id,
104  DetectorUsage usage, std::vector<MSLane*> lanes, double pos, double endPos,
105  SUMOTime haltingTimeThreshold, double haltingSpeedThreshold, double jamDistThreshold,
106  const std::string& vTypes, bool showDetector);
107 
108 
119  virtual MSDetectorFileOutput* createE3Detector(const std::string& id,
120  const CrossSectionVector& entries,
121  const CrossSectionVector& exits,
122  double haltingSpeedThreshold,
123  SUMOTime haltingTimeThreshold, const std::string& vTypes, bool openEntry);
125 
126 
127 };
128 
129 
130 #endif
131 
132 /****************************************************************************/
133 
MSDetectorFileOutput
Base of value-generating classes (detectors)
Definition: MSDetectorFileOutput.h:63
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
MSNet
The simulated network and simulation perfomer.
Definition: MSNet.h:91
GUIDetectorBuilder::createE3Detector
virtual MSDetectorFileOutput * createE3Detector(const std::string &id, const CrossSectionVector &entries, const CrossSectionVector &exits, double haltingSpeedThreshold, SUMOTime haltingTimeThreshold, const std::string &vTypes, bool openEntry)
Creates an instance of an e3 detector using the given values.
Definition: GUIDetectorBuilder.cpp:86
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
MSE2Collector
An areal detector corresponding to a sequence of consecutive lanes.
Definition: MSE2Collector.h:81
GUIDetectorBuilder::GUIDetectorBuilder
GUIDetectorBuilder(MSNet &net)
Constructor.
Definition: GUIDetectorBuilder.cpp:44
GUIDetectorBuilder::~GUIDetectorBuilder
~GUIDetectorBuilder()
Destructor.
Definition: GUIDetectorBuilder.cpp:48
GUIDetectorBuilder
Builds detectors for guisim.
Definition: GUIDetectorBuilder.h:48
NLDetectorBuilder.h
DetectorUsage
DetectorUsage
Definition: MSDetectorFileOutput.h:50
GUIDetectorBuilder::createInstantInductLoop
virtual MSDetectorFileOutput * createInstantInductLoop(const std::string &id, MSLane *lane, double pos, const std::string &od, const std::string &vTypes)
Creates an instance of an e1 detector using the given values.
Definition: GUIDetectorBuilder.cpp:63
config.h
GUIDetectorBuilder::createInductLoop
virtual MSDetectorFileOutput * createInductLoop(const std::string &id, MSLane *lane, double pos, const std::string &vTypes, bool show=true)
Creates an instance of an e1 detector using the given values.
Definition: GUIDetectorBuilder.cpp:52
GUIDetectorBuilder::createE2Detector
virtual MSE2Collector * createE2Detector(const std::string &id, DetectorUsage usage, MSLane *lane, double pos, double endPos, double length, SUMOTime haltingTimeThreshold, double haltingSpeedThreshold, double jamDistThreshold, const std::string &vTypes, bool showDetector)
Creates a GUIE2Collector instance, overrides MSE2Collector::createE2Detector()
Definition: GUIDetectorBuilder.cpp:70
NLDetectorBuilder
Builds detectors for microsim.
Definition: NLDetectorBuilder.h:55
CrossSectionVector
std::vector< MSCrossSection > CrossSectionVector
Definition: MSCrossSection.h:63