47 double positionInMeters,
48 const std::string name,
const std::string& vTypes,
49 const std::string& nextEdges,
54 myPosition(positionInMeters),
55 myMeanData(nullptr, mySegment->getLength(), false, nullptr) {
std::string time2string(SUMOTime t, bool humanReadable)
convert SUMOTime to string (independently of global format setting)
@ SUMO_TAG_INTERVAL
an aggreagated-output interval
@ SUMO_ATTR_BEGIN
weights: time range begin
@ SUMO_ATTR_END
weights: time range end
const MSEdge & getEdge() const
MESegment *const mySegment
mesoscopic edge segment the loop lies on
void writeXMLOutput(OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime)
MSMeanData_Net::MSLaneMeanDataValues myMeanData
data collector for the loop
MEInductLoop()
Hidden default constructor.
A single mesoscopic segment (cell)
void addDetector(MSMoveReminder *data, int queueIndex=-1)
Adds a data collector for a detector to this segment.
const MSEdge & getEdge() const
Returns the edge this segment belongs to.
void prepareDetectorForWriting(MSMoveReminder &data, int queueIndex=-1)
Removes a data collector for a detector from this segment.
Base of value-generating classes (detectors)
A road/street connecting two junctions.
const std::vector< MSLane * > & getLanes() const
Returns this edge's lanes.
double getSpeedLimit() const
Returns the speed limit of the edge @caution The speed limit of the first lane is retured; should pro...
virtual double getSamples() const
Returns the number of collected sample seconds.
void write(OutputDevice &dev, long long int attributeMask, const SUMOTime period, const int numLanes, const double speedLimit, const double defaultTravelTime, const int numVehicles=-1) const
Writes output values into the given stream.
void reset(bool afterWrite=false)
Resets values so they may be used for the next interval.
void setDescription(const std::string &description)
std::string myID
The name of the object.
Static storage of an output device and its base (abstract) implementation.
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
static std::string escapeXML(const std::string &orig, const bool maskDoubleHyphen=false)
Replaces the standard escapes by their XML entities.