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.dev/sumo
3 // Copyright (C) 2001-2024 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 
75  virtual MSDetectorFileOutput* createInductLoop(const std::string& id,
76  MSLane* lane, double pos, double length,
77  const std::string name, const std::string& vTypes,
78  const std::string& nextEdges,
79  int detectPersons,
80  bool show) override;
81 
82 
92  virtual MSDetectorFileOutput* createInstantInductLoop(const std::string& id,
93  MSLane* lane, double pos, const std::string& od, const std::string name,
94  const std::string& vTypes, const std::string& nextEdges) override;
95 
102  virtual MSE2Collector* createE2Detector(const std::string& id,
103  DetectorUsage usage, MSLane* lane, double pos, double endPos, double length,
104  SUMOTime haltingTimeThreshold, double haltingSpeedThreshold, double jamDistThreshold,
105  const std::string name, const std::string& vTypes,
106  const std::string& nextEdges,
107  int detectPersons, bool showDetector) override;
108 
109  virtual MSE2Collector* createE2Detector(const std::string& id,
110  DetectorUsage usage, std::vector<MSLane*> lanes, double pos, double endPos,
111  SUMOTime haltingTimeThreshold, double haltingSpeedThreshold, double jamDistThreshold,
112  const std::string name, const std::string& vTypes,
113  const std::string& nextEdges,
114  int detectPersons, bool showDetector) override;
115 
116 
127  virtual MSDetectorFileOutput* createE3Detector(const std::string& id,
128  const CrossSectionVector& entries,
129  const CrossSectionVector& exits,
130  double haltingSpeedThreshold,
131  SUMOTime haltingTimeThreshold,
132  const std::string name, const std::string& vTypes,
133  const std::string& nextEdges,
134  int detectPersons, bool openEntry, bool expectArrival) override;
136 
137 
138 };
long long int SUMOTime
Definition: GUI.h:35
std::vector< MSCrossSection > CrossSectionVector
Builds detectors for guisim.
virtual MSDetectorFileOutput * createInstantInductLoop(const std::string &id, MSLane *lane, double pos, const std::string &od, const std::string name, const std::string &vTypes, const std::string &nextEdges) 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 name, const std::string &vTypes, const std::string &nextEdges, int detectPersons, bool openEntry, bool expectArrival) override
Creates an instance of an e3 detector using the given values.
virtual MSDetectorFileOutput * createInductLoop(const std::string &id, MSLane *lane, double pos, double length, const std::string name, const std::string &vTypes, const std::string &nextEdges, int detectPersons, bool show) override
Creates an instance of an e1 detector using the given values.
~GUIDetectorBuilder()
Destructor.
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 name, const std::string &vTypes, const std::string &nextEdges, 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:84
The simulated network and simulation perfomer.
Definition: MSNet.h:89
Builds detectors for microsim.