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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // Builds detectors for guisim
19 /****************************************************************************/
20 #ifndef GUIDetectorBuilder_h
21 #define GUIDetectorBuilder_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <string>
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class MSNet;
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
56 public:
62 
63 
66 
67 
72 
83  virtual MSDetectorFileOutput* createInductLoop(const std::string& id,
84  MSLane* lane, double pos, const std::string& vTypes, bool show = true);
85 
86 
96  virtual MSDetectorFileOutput* createInstantInductLoop(const std::string& id,
97  MSLane* lane, double pos, const std::string& od, const std::string& vTypes);
98 
105  virtual MSE2Collector* createE2Detector(const std::string& id,
106  DetectorUsage usage, MSLane* lane, double pos, double endPos, double length,
107  SUMOTime haltingTimeThreshold, double haltingSpeedThreshold, double jamDistThreshold,
108  const std::string& vTypes, bool showDetector);
109 
110  virtual MSE2Collector* createE2Detector(const std::string& id,
111  DetectorUsage usage, std::vector<MSLane*> lanes, double pos, double endPos,
112  SUMOTime haltingTimeThreshold, double haltingSpeedThreshold, double jamDistThreshold,
113  const std::string& vTypes, bool showDetector);
114 
115 
126  virtual MSDetectorFileOutput* createE3Detector(const std::string& id,
127  const CrossSectionVector& entries,
128  const CrossSectionVector& exits,
129  double haltingSpeedThreshold,
130  SUMOTime haltingTimeThreshold, const std::string& vTypes);
132 
133 
134 };
135 
136 
137 #endif
138 
139 /****************************************************************************/
140 
Builds detectors for microsim.
GUIDetectorBuilder(MSNet &net)
Constructor.
An areal detector corresponding to a sequence of consecutive lanes.
Definition: MSE2Collector.h:86
std::vector< MSCrossSection > CrossSectionVector
Builds detectors for guisim.
The simulated network and simulation perfomer.
Definition: MSNet.h:90
~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.
long long int SUMOTime
Definition: TraCIDefs.h:51
Representation of a lane in the micro simulation.
Definition: MSLane.h:77
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()
virtual MSDetectorFileOutput * createE3Detector(const std::string &id, const CrossSectionVector &entries, const CrossSectionVector &exits, double haltingSpeedThreshold, SUMOTime haltingTimeThreshold, const std::string &vTypes)
Creates an instance of an e3 detector using the given values.