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