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-2015 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, SUMOReal pos, bool splitByType, bool show = true);
86 
87 
97  virtual MSDetectorFileOutput* createInstantInductLoop(const std::string& id,
98  MSLane* lane, SUMOReal pos, const std::string& od);
99 
100 
113  virtual MSDetectorFileOutput* createSingleLaneE2Detector(const std::string& id,
114  DetectorUsage usage, MSLane* lane, SUMOReal pos, SUMOReal length,
115  SUMOTime haltingTimeThreshold,
116  SUMOReal haltingSpeedThreshold,
117  SUMOReal jamDistThreshold);
118 
119 
134  const std::string& id, DetectorUsage usage, MSLane* lane, SUMOReal pos,
135  SUMOTime haltingTimeThreshold,
136  SUMOReal haltingSpeedThreshold,
137  SUMOReal jamDistThreshold);
138 
139 
150  virtual MSDetectorFileOutput* createE3Detector(const std::string& id,
151  const CrossSectionVector& entries,
152  const CrossSectionVector& exits,
153  SUMOReal haltingSpeedThreshold,
154  SUMOTime haltingTimeThreshold);
156 
157 
158 };
159 
160 
161 #endif
162 
163 /****************************************************************************/
164 
Builds detectors for microsim.
long long int SUMOTime
Definition: SUMOTime.h:43
virtual MSDetectorFileOutput * createInstantInductLoop(const std::string &id, MSLane *lane, SUMOReal pos, const std::string &od)
Creates an instance of an e1 detector using the given values.
GUIDetectorBuilder(MSNet &net)
Constructor.
std::vector< MSCrossSection > CrossSectionVector
Builds detectors for guisim.
virtual MSDetectorFileOutput * createInductLoop(const std::string &id, MSLane *lane, SUMOReal pos, bool splitByType, bool show=true)
Creates an instance of an e1 detector using the given values.
virtual MSDetectorFileOutput * createSingleLaneE2Detector(const std::string &id, DetectorUsage usage, MSLane *lane, SUMOReal pos, SUMOReal length, SUMOTime haltingTimeThreshold, SUMOReal haltingSpeedThreshold, SUMOReal jamDistThreshold)
Creates an instance of an e2-detector (areal detector) using the given values.
The simulated network and simulation perfomer.
Definition: MSNet.h:94
virtual MSDetectorFileOutput * createE3Detector(const std::string &id, const CrossSectionVector &entries, const CrossSectionVector &exits, SUMOReal haltingSpeedThreshold, SUMOTime haltingTimeThreshold)
Creates an instance of an e3 detector using the given values.
~GUIDetectorBuilder()
Destructor.
virtual MSDetectorFileOutput * createMultiLaneE2Detector(const std::string &id, DetectorUsage usage, MSLane *lane, SUMOReal pos, SUMOTime haltingTimeThreshold, SUMOReal haltingSpeedThreshold, SUMOReal jamDistThreshold)
Creates an instance of an e2ol-detector using the given values.
#define SUMOReal
Definition: config.h:214
Representation of a lane in the micro simulation.
Definition: MSLane.h:77
Base of value-generating classes (detectors)