 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
44 double positionInMeters,
45 const std::string& vTypes) :
47 myPosition(positionInMeters),
48 myMeanData(nullptr, mySegment->getLength(), false, nullptr) {
Base of value-generating classes (detectors)
A single mesoscopic segment (cell)
Static storage of an output device and its base (abstract) implementation.
void addDetector(MSMoveReminder *data)
Adds a data collector for a detector to this segment.
const MSEdge & getEdge() const
Returns the edge this segment belongs to.
void write(OutputDevice &dev, const SUMOTime period, const double numLanes, const double defaultTravelTime, const int numVehicles=-1) const
Writes output values into the given stream.
MSMeanData_Net::MSLaneMeanDataValues myMeanData
data collector for the loop
void reset(bool afterWrite=false)
Resets values so they may be used for the next interval.
weights: time range begin
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
void prepareDetectorForWriting(MSMoveReminder &data)
Updates data of a detector for all vehicle queues.
MESegment *const mySegment
mesoscopic edge segment the loop lies on
MEInductLoop()
Hidden default constructor.
void writeXMLOutput(OutputDevice &dev, SUMOTime startTime, SUMOTime stopTime)
static std::string escapeXML(const std::string &orig, const bool maskDoubleHyphen=false)
Replaces the standard escapes by their XML entities.
std::string time2string(SUMOTime t)
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
virtual double getSamples() const
Returns the number of collected sample seconds.
void setDescription(const std::string &description)
const std::vector< MSLane * > & getLanes() const
Returns this edge's lanes.
an aggreagated-output interval
std::string myID
The name of the object.