22 #ifndef MSMeanData_Amitran_h 23 #define MSMeanData_Amitran_h 79 const std::set<std::string>*
const vTypes = 0,
87 void reset(
bool afterWrite =
false);
125 const int numVehicles = -1)
const;
178 const bool useLanes,
const bool withEmpty,
const bool printDefaults,
179 const bool withInternal,
const bool trackVehicles,
181 const SUMOReal haltSpeed,
const std::set<std::string> vTypes);
223 const SumoXMLTag tag,
const std::string
id)
const;
bool notifyEnter(SUMOVehicle &veh, MSMoveReminder::Notification reason)
Computes current values and adds them to their sums.
void resetOnly(SUMOTime stopTime)
Resets network value in order to allow processing of the next interval.
Data collector for edges/lanes.
SumoXMLTag
Numbers representing SUMO-XML - element names.
Network state mean data collector for edges/lanes.
void notifyMoveInternal(SUMOVehicle &veh, SUMOReal timeOnLane, SUMOReal speed)
Internal notification about the vehicle moves.
Notification
Definition of a vehicle state.
MSLaneMeanDataValues(MSLane *const lane, const SUMOReal length, const bool doAdd, const std::set< std::string > *const vTypes=0, const MSMeanData_Amitran *parent=0)
Constructor.
void addTo(MSMeanData::MeanDataValues &val) const
Add the values of this to the given one and store them there.
std::map< const MSVehicleType *, SUMOReal > typedSamples
The number of sampled vehicle movements by type (in s)
bool isEmpty() const
Returns whether any data was collected.
Data structure for mean (aggregated) edge/lane values.
const SUMOReal myHaltSpeed
the minimum sample seconds
A road/street connecting two junctions.
MSMeanData::MeanDataValues * createValues(MSLane *const lane, const SUMOReal length, const bool doAdd) const
Create an instance of MeanDataValues.
virtual ~MSMeanData_Amitran()
Destructor.
Representation of a vehicle.
Data structure for mean (aggregated) edge/lane values.
void write(OutputDevice &dev, const SUMOTime period, const SUMOReal numLanes, const SUMOReal defaultTravelTime, const int numVehicles=-1) const
Writes output values into the given stream.
Stores edges and lanes, performs moving of vehicle.
void reset(bool afterWrite=false)
Resets values so they may be used for the next interval.
MSMeanData_Amitran(const std::string &id, const SUMOTime dumpBegin, const SUMOTime dumpEnd, const bool useLanes, const bool withEmpty, const bool printDefaults, const bool withInternal, const bool trackVehicles, const SUMOReal maxTravelTime, const SUMOReal minSamples, const SUMOReal haltSpeed, const std::set< std::string > vTypes)
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 void openInterval(OutputDevice &dev, const SUMOTime startTime, const SUMOTime stopTime)
Writes the interval opener.
virtual std::string getEdgeID(const MSEdge *const edge)
Return the relevant edge id.
std::map< const MSVehicleType *, int > typedAmount
The number of vehicles that entered this lane within the sample interval by type. ...
virtual void writeXMLDetectorProlog(OutputDevice &dev) const
Opens the XML-output using "netstats" as root element.
virtual ~MSLaneMeanDataValues()
Destructor.
MSMoveReminder & operator=(const MSMoveReminder &)
Static storage of an output device and its base (abstract) implementation.
Representation of a lane in the micro simulation.
std::map< const MSVehicleType *, SUMOReal > typedTravelDistance
The sum of the distances the vehicles travelled by type.