76 void reset(
bool afterWrite =
false);
113 const int numLanes,
const double speedLimit,
const double defaultTravelTime,
114 const int numVehicles = -1)
const;
120 void notifyMoveInternal(
const SUMOTrafficObject& veh,
const double ,
const double timeOnLane,
const double ,
const double meanSpeedVehicleOnLane,
const double travelledDistanceFrontOnLane,
const double travelledDistanceVehicleOnLane,
const double );
160 const bool useLanes,
const bool withEmpty,
const bool printDefaults,
161 const bool withInternal,
const bool trackVehicles,
const int detectPersons,
162 const double maxTravelTime,
const double minSamples,
163 const double haltSpeed,
const std::string& vTypes,
164 const std::string& writeAttributes,
165 const std::vector<MSEdge*>& edges,
208 const SumoXMLTag tag,
const std::string
id)
const;
SumoXMLTag
Numbers representing SUMO-XML - element names.
bool detectPersons() const
virtual void reset()
Resets collected values.
Stores edges and lanes, performs moving of vehicle.
A road/street connecting two junctions.
Representation of a lane in the micro simulation.
Data structure for mean (aggregated) edge/lane values.
Data structure for mean (aggregated) edge/lane values.
void notifyMoveInternal(const SUMOTrafficObject &veh, const double, const double timeOnLane, const double, const double meanSpeedVehicleOnLane, const double travelledDistanceFrontOnLane, const double travelledDistanceVehicleOnLane, const double)
Internal notification about the vehicle moves.
void addTo(MSMeanData::MeanDataValues &val) const
Add the values of this to the given one and store them there.
bool notifyEnter(SUMOTrafficObject &veh, MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
Computes current values and adds them to their sums.
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.
bool isEmpty() const
Returns whether any data was collected.
std::map< const MSVehicleType *, double > typedTravelDistance
The sum of the distances the vehicles travelled by type.
std::map< const MSVehicleType *, int > typedAmount
The number of vehicles that entered this lane within the sample interval by type.
virtual ~MSLaneMeanDataValues()
Destructor.
std::map< const MSVehicleType *, double > typedSamples
The number of sampled vehicle movements by type (in s)
Network state mean data collector for edges/lanes.
virtual void openInterval(OutputDevice &dev, const SUMOTime startTime, const SUMOTime stopTime)
Writes the interval opener.
virtual void writeXMLDetectorProlog(OutputDevice &dev) const
Opens the XML-output using "netstats" as root element.
MSMeanData::MeanDataValues * createValues(MSLane *const lane, const double length, const bool doAdd) const
Create an instance of MeanDataValues.
MSMeanData_Amitran & operator=(const MSMeanData_Amitran &)
Invalidated assignment operator.
MSMeanData_Amitran(const MSMeanData_Amitran &)
Invalidated copy constructor.
virtual bool writePrefix(OutputDevice &dev, const MeanDataValues &values, const SumoXMLTag tag, const std::string id) const
Checks for emptiness and writes prefix into the given stream.
virtual std::string getEdgeID(const MSEdge *const edge)
Return the relevant edge id.
virtual ~MSMeanData_Amitran()
Destructor.
const double myHaltSpeed
the minimum sample seconds
void resetOnly(SUMOTime stopTime)
Resets network value in order to allow processing of the next interval.
Data collector for edges/lanes.
Notification
Definition of a vehicle state.
Static storage of an output device and its base (abstract) implementation.
Representation of a vehicle, person, or container.