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 
83  virtual MSDetectorFileOutput* createInductLoop(const std::string& id,
84  MSLane* lane, SUMOReal pos, bool splitByType);
85 
86 
96  virtual MSDetectorFileOutput* createInstantInductLoop(const std::string& id,
97  MSLane* lane, SUMOReal pos, const std::string& od);
98 
99 
100 #ifdef HAVE_INTERNAL
101 
110  virtual MEInductLoop* createMEInductLoop(const std::string& id,
111  MESegment* s, SUMOReal pos);
112 #endif
113 
114 
127  virtual MSDetectorFileOutput* createSingleLaneE2Detector(const std::string& id,
128  DetectorUsage usage, MSLane* lane, SUMOReal pos, SUMOReal length,
129  SUMOTime haltingTimeThreshold,
130  SUMOReal haltingSpeedThreshold,
131  SUMOReal jamDistThreshold);
132 
133 
148  const std::string& id, DetectorUsage usage, MSLane* lane, SUMOReal pos,
149  SUMOTime haltingTimeThreshold,
150  SUMOReal haltingSpeedThreshold,
151  SUMOReal jamDistThreshold);
152 
153 
164  virtual MSDetectorFileOutput* createE3Detector(const std::string& id,
165  const CrossSectionVector& entries,
166  const CrossSectionVector& exits,
167  SUMOReal haltingSpeedThreshold,
168  SUMOTime haltingTimeThreshold);
170 
171 
172 };
173 
174 
175 #endif
176 
177 /****************************************************************************/
178 
Builds detectors for microsim.
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 * 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 * createInductLoop(const std::string &id, MSLane *lane, SUMOReal pos, bool splitByType)
Creates an instance of an e1 detector using the given values.
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.
int SUMOTime
Definition: SUMOTime.h:43
#define SUMOReal
Definition: config.h:218
Representation of a lane in the micro simulation.
Definition: MSLane.h:77
Base of value-generating classes (detectors)