SUMO - Simulation of Urban MObility
GUIDetectorBuilder.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // Builds detectors for guisim
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef GUIDetectorBuilder_h
22 #define GUIDetectorBuilder_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <string>
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 class MSNet;
42 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
57 public:
63 
64 
67 
68 
73 
84  virtual MSDetectorFileOutput* createInductLoop(const std::string& id,
85  MSLane* lane, double pos, const std::string& vTypes, bool show = true);
86 
87 
97  virtual MSDetectorFileOutput* createInstantInductLoop(const std::string& id,
98  MSLane* lane, double pos, const std::string& od, const std::string& vTypes);
99 
106  virtual MSE2Collector* createE2Detector(const std::string& id,
107  DetectorUsage usage, MSLane* lane, double pos, double endPos, double length,
108  SUMOTime haltingTimeThreshold, double haltingSpeedThreshold, double jamDistThreshold,
109  const std::string& vTypes, bool showDetector);
110 
111  virtual MSE2Collector* createE2Detector(const std::string& id,
112  DetectorUsage usage, std::vector<MSLane*> lanes, double pos, double endPos,
113  SUMOTime haltingTimeThreshold, double haltingSpeedThreshold, double jamDistThreshold,
114  const std::string& vTypes, bool showDetector);
115 
116 
127  virtual MSDetectorFileOutput* createE3Detector(const std::string& id,
128  const CrossSectionVector& entries,
129  const CrossSectionVector& exits,
130  double haltingSpeedThreshold,
131  SUMOTime haltingTimeThreshold, const std::string& vTypes);
133 
134 
135 };
136 
137 
138 #endif
139 
140 /****************************************************************************/
141 
Builds detectors for microsim.
GUIDetectorBuilder(MSNet &net)
Constructor.
An areal detector corresponding to a sequence of consecutive lanes.
Definition: MSE2Collector.h:87
std::vector< MSCrossSection > CrossSectionVector
Builds detectors for guisim.
The simulated network and simulation perfomer.
Definition: MSNet.h:94
~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:52
Representation of a lane in the micro simulation.
Definition: MSLane.h:79
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.