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-2022 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
19 // Builds detectors for guisim
20 /****************************************************************************/
21 #pragma once
22 #include <config.h>
23 
24 #include <string>
26 
27 
28 // ===========================================================================
29 // class declarations
30 // ===========================================================================
31 class MSNet;
32 
33 
34 // ===========================================================================
35 // class definitions
36 // ===========================================================================
47 public:
53 
54 
57 
58 
63 
74  virtual MSDetectorFileOutput* createInductLoop(const std::string& id,
75  MSLane* lane, double pos, const std::string& vTypes, int detectPersons,
76  bool show = true) override;
77 
78 
88  virtual MSDetectorFileOutput* createInstantInductLoop(const std::string& id,
89  MSLane* lane, double pos, const std::string& od, const std::string& vTypes) override;
90 
97  virtual MSE2Collector* createE2Detector(const std::string& id,
98  DetectorUsage usage, MSLane* lane, double pos, double endPos, double length,
99  SUMOTime haltingTimeThreshold, double haltingSpeedThreshold, double jamDistThreshold,
100  const std::string& vTypes, int detectPersons, bool showDetector) override;
101 
102  virtual MSE2Collector* createE2Detector(const std::string& id,
103  DetectorUsage usage, std::vector<MSLane*> lanes, double pos, double endPos,
104  SUMOTime haltingTimeThreshold, double haltingSpeedThreshold, double jamDistThreshold,
105  const std::string& vTypes, int detectPersons, bool showDetector) override;
106 
107 
118  virtual MSDetectorFileOutput* createE3Detector(const std::string& id,
119  const CrossSectionVector& entries,
120  const CrossSectionVector& exits,
121  double haltingSpeedThreshold,
122  SUMOTime haltingTimeThreshold, const std::string& vTypes, int detectPersons, bool openEntry) override;
124 
125 
126 };
std::vector< MSCrossSection > CrossSectionVector
long long int SUMOTime
Definition: SUMOTime.h:32
Builds detectors for guisim.
virtual MSDetectorFileOutput * createInstantInductLoop(const std::string &id, MSLane *lane, double pos, const std::string &od, const std::string &vTypes) override
Creates an instance of an e1 detector using the given values.
GUIDetectorBuilder(MSNet &net)
Constructor.
virtual MSDetectorFileOutput * createE3Detector(const std::string &id, const CrossSectionVector &entries, const CrossSectionVector &exits, double haltingSpeedThreshold, SUMOTime haltingTimeThreshold, const std::string &vTypes, int detectPersons, bool openEntry) override
Creates an instance of an e3 detector using the given values.
~GUIDetectorBuilder()
Destructor.
virtual MSDetectorFileOutput * createInductLoop(const std::string &id, MSLane *lane, double pos, const std::string &vTypes, int detectPersons, bool show=true) override
Creates an instance of an e1 detector using the given values.
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, int detectPersons, bool showDetector) override
Creates a GUIE2Collector instance, overrides MSE2Collector::createE2Detector()
Base of value-generating classes (detectors)
An areal detector corresponding to a sequence of consecutive lanes.
Definition: MSE2Collector.h:79
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
The simulated network and simulation perfomer.
Definition: MSNet.h:88
Builds detectors for microsim.