44 #ifdef CHECK_MEMORY_LEAKS 46 #endif // CHECK_MEMORY_LEAKS 61 haltingTimeThreshold, haltingSpeedThreshold, jamDistThreshold) {}
94 myDetector(detector) {
95 for (LaneDetMap::const_iterator i = detectors.begin(); i != detectors.end(); ++i) {
SUMOReal haltingSpeedThresholdM
Describes how slow a vehicle must be before being assigned to a jam.
GUI_E2_ZS_CollectorOverLanes & myDetector
Builds a view within the parameter table if the according type is available.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
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
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.
DetectorUsage myUsage
Information about how this detector is used.
const std::string & getID() const
Returns the id.
std::string makeID(const std::string &baseID, int c, int r) const
Builds an id for one of the E2 collectors this detector uses.
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.
MSE2Collector * buildCollector(int c, int r, MSLane *l, SUMOReal start, SUMOReal end)
Builds a single collector.
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].