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 /****************************************************************************/
16 // Builds detectors for guisim
17 /****************************************************************************/
18 #ifndef GUIDetectorBuilder_h
19 #define GUIDetectorBuilder_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <string>
29 
30 
31 // ===========================================================================
32 // class declarations
33 // ===========================================================================
34 class MSNet;
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
50 public:
56 
57 
60 
61 
66 
77  virtual MSDetectorFileOutput* createInductLoop(const std::string& id,
78  MSLane* lane, double pos, const std::string& vTypes, bool show = true);
79 
80 
90  virtual MSDetectorFileOutput* createInstantInductLoop(const std::string& id,
91  MSLane* lane, double pos, const std::string& od, const std::string& vTypes);
92 
99  virtual MSE2Collector* createE2Detector(const std::string& id,
100  DetectorUsage usage, MSLane* lane, double pos, double endPos, double length,
101  SUMOTime haltingTimeThreshold, double haltingSpeedThreshold, double jamDistThreshold,
102  const std::string& vTypes, bool showDetector);
103 
104  virtual MSE2Collector* createE2Detector(const std::string& id,
105  DetectorUsage usage, std::vector<MSLane*> lanes, double pos, double endPos,
106  SUMOTime haltingTimeThreshold, double haltingSpeedThreshold, double jamDistThreshold,
107  const std::string& vTypes, bool showDetector);
108 
109 
120  virtual MSDetectorFileOutput* createE3Detector(const std::string& id,
121  const CrossSectionVector& entries,
122  const CrossSectionVector& exits,
123  double haltingSpeedThreshold,
124  SUMOTime haltingTimeThreshold, const std::string& vTypes, bool openEntry);
126 
127 
128 };
129 
130 
131 #endif
132 
133 /****************************************************************************/
134 
Builds detectors for microsim.
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.
long long int SUMOTime
Definition: SUMOTime.h:35
GUIDetectorBuilder(MSNet &net)
Constructor.
An areal detector corresponding to a sequence of consecutive lanes.
Definition: MSE2Collector.h:81
std::vector< MSCrossSection > CrossSectionVector
Builds detectors for guisim.
The simulated network and simulation perfomer.
Definition: MSNet.h:92
~GUIDetectorBuilder()
Destructor.
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.
Representation of a lane in the micro simulation.
Definition: MSLane.h:83
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.
Base of value-generating classes (detectors)
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()