43 #ifdef CHECK_MEMORY_LEAKS
45 #endif // CHECK_MEMORY_LEAKS
60 haltingTimeThreshold, haltingSpeedThreshold, jamDistThreshold) {}
93 myDetector(detector) {
94 for (LaneDetMap::const_iterator i = detectors.begin(); i != detectors.end(); ++i) {
104 for (std::vector<GUIDetectorWrapper*>::iterator i = mySubWrappers.begin(); i != mySubWrappers.end(); ++i) {
136 ret->
mkItem(
"length [m]",
false, myDetector.getLength());
165 for (std::vector<GUIDetectorWrapper*>::const_iterator i = mySubWrappers.begin(); i != mySubWrappers.end(); ++i) {
SUMOReal haltingSpeedThresholdM
Describes how slow a vehicle must be before being assigned to a jam.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
MSE2Collector * buildCollector(size_t c, size_t r, MSLane *l, SUMOReal start, SUMOReal end)
Builds a single collector.
The gui-version of a MS_E2_ZS_CollectorOverLanes.
An areal (along a single lane) detector.
A detector which joins E2Collectors over consecutive lanes (backward)
SUMOTime haltingTimeThresholdM
Describes how long a vehicle shall stay before being assigned to a jam.
Stores the information about how to visualize structures.
SUMOReal getLength() const
Returns the lane's length.
GUI_E2_ZS_CollectorOverLanes & getLoop()
Returns the detector itself.
virtual Boundary getCenteringBoundary() const =0
Returns the boundary to which the view shall be centered in order to show the object.
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Returns the wrapper for this detector.
GUI_E2_ZS_CollectorOverLanes(std::string id, DetectorUsage usage, MSLane *lane, SUMOReal startPos, SUMOTime haltingTimeThreshold, SUMOReal haltingSpeedThreshold, SUMOReal jamDistThreshold)
Constructor.
A class that stores a 2D geometrical boundary.
std::string makeID(const std::string &baseID, size_t c, size_t r) const
Builds an id for one of the E2 collectors this detector uses.
DetectorUsage myUsage
Information about how this detector is used.
SUMOReal jamDistThresholdM
Describes how long a jam must be before being recognized.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Boundary myBoundary
The detector's boundary.
std::vector< GUIDetectorWrapper * > mySubWrappers
virtual GUIDetectorWrapper * buildDetectorGUIRepresentation()
Builds the graphical representation.
std::map< MSLane *, MSE2Collector * > LaneDetMap
Definition of a map from a lane to the detector lying on it.
void add(SUMOReal x, SUMOReal y)
Makes the boundary include the given coordinate.
std::string myID
The name of the object.
MyWrapper(GUI_E2_ZS_CollectorOverLanes &detector, const LaneDetMap &detectors)
Constructor.
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
The gui-version of the MS_E2_ZS_Collector.
LaneDetMap myAlreadyBuild
Storage for detectors which already have been build for a single lane.
~GUI_E2_ZS_CollectorOverLanes()
Destructor.
void mkItem(const char *name, bool dynamic, ValueSource< unsigned > *src)
Adds a row which obtains its value from an unsigned-ValueSource.
void closeBuilding()
Closes the building of the table.
Representation of a lane in the micro simulation.
A window containing a gl-object's parameter.
SUMOReal getLength() const
Returns this detector's length [m].