21 #ifndef MS_E2_ZS_CollectorOverLanes_h 22 #define MS_E2_ZS_CollectorOverLanes_h 161 std::string
makeID(
const std::string& baseID,
162 size_t c,
size_t r)
const;
std::vector< SUMOReal > LengthVector
Definition of a storage for SUMOReal vectors.
SUMOReal haltingSpeedThresholdM
Describes how slow a vehicle must be before being assigned to a jam.
std::vector< MSE2Collector * > DetectorVector
Definition of a detector storage.
std::vector< MSE2Collector * > CollectorCont
Definition of a E2 collector storage.
const std::string & getStartLaneID() const
Returns the id of the lane this detector starts at.
MS_E2_ZS_CollectorOverLanes & operator=(const MS_E2_ZS_CollectorOverLanes &)
Invalidated assignment operator.
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.
LengthVector myLengths
Storage for length combinations.
std::vector< MSLane * > getLanePredeccessorLanes(MSLane *l)
Returns the list of lanes predecessing the given one.
std::vector< MSLane * > LaneVector
Definition of a lane storage.
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.
virtual MSE2Collector * buildCollector(size_t c, size_t r, MSLane *l, SUMOReal start, SUMOReal end)
Builds a single collector.
SUMOReal jamDistThresholdM
Describes how long a jam must be before being recognized.
std::string myStartLaneID
The id of the lane this detector starts at.
Representation of a vehicle.
MS_E2_ZS_CollectorOverLanes(const std::string &id, DetectorUsage usage, MSLane *lane, SUMOReal startPos, SUMOTime haltingTimeThreshold, SUMOReal haltingSpeedThreshold, SUMOReal jamDistThreshold)
Constructor.
std::vector< LaneVector > LaneVectorVector
Definition of a storage for lane vectors.
SUMOReal myLength
The length of the collector.
virtual ~MS_E2_ZS_CollectorOverLanes()
Destructor.
SUMOReal startPosM
The position the collector starts at.
DetectorVectorVector myDetectorCombinations
Storage for detector combinations.
std::map< MSLane *, MSE2Collector * > LaneDetMap
Definition of a map from a lane to the detector lying on it.
void extendTo(SUMOReal length)
This method extends the current length up to the given.
void init(MSLane *lane, SUMOReal detLength)
Builds the consecutive E2 detectors.
void writeXMLOutput(OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime)
Writes collected values into the given stream.
std::vector< DetectorVector > DetectorVectorVector
Definition of a storage for detector vectors.
LaneDetMap myAlreadyBuild
Storage for detectors which already have been build for a single lane.
Static storage of an output device and its base (abstract) implementation.
LaneVectorVector myLaneCombinations
Storage for lane combinations.
void writeXMLDetectorProlog(OutputDevice &dev) const
Opens the XML-output using "detector" as root element.
Representation of a lane in the micro simulation.
Base of value-generating classes (detectors)
SUMOReal getLength() const
Returns this detector's length [m].