 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
19 #ifndef MSMeanData_Net_h
20 #define MSMeanData_Net_h
79 void reset(
bool afterWrite =
false);
128 const double numLanes,
const double defaultTravelTime,
129 const int numVehicles = -1)
const;
136 const double frontOnLane,
const double timeOnLane,
const double,
137 const double meanSpeedVehicleOnLane,
138 const double travelledDistanceFrontOnLane,
139 const double travelledDistanceVehicleOnLane,
140 const double meanLengthOnLane);
218 const bool useLanes,
const bool withEmpty,
const bool printDefaults,
219 const bool withInternal,
const bool trackVehicles,
const int detectPersons,
220 const double maxTravelTime,
const double minSamples,
221 const double haltSpeed,
const std::string& vTypes);
virtual ~MSLaneMeanDataValues()
Destructor.
MSMeanData_Net & operator=(const MSMeanData_Net &)
Invalidated assignment operator.
Representation of a vehicle or person.
Representation of a lane in the micro simulation.
double frontTravelledDistance
The travelled distance regarding the vehicle front.
Static storage of an output device and its base (abstract) implementation.
Data structure for mean (aggregated) edge/lane values.
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.
int nVehArrived
The number of vehicles that finished on the lane.
double waitSeconds
The number of vehicle probes with small speed.
int nVehLeft
The number of vehicles that left this lane within the sample interval.
void addTo(MSMeanData::MeanDataValues &val) const
Add the values of this to the given one and store them there.
void reset(bool afterWrite=false)
Resets values so they may be used for the next interval.
bool notifyLeave(SUMOTrafficObject &veh, double lastPos, MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
Called if the vehicle leaves the reminder's lane.
int nVehLaneChangeFrom
The number of vehicles that changed from this lane.
double occupationSum
The sum of the occupation of the lane.
Data collector for edges/lanes.
int nVehVaporized
The number of vehicles that left this lane within the sample interval.
bool isEmpty() const
Returns whether any data was collected.
double frontSampleSeconds
The number of vehicle probes regarding the vehicle front.
MSMeanData::MeanDataValues * createValues(MSLane *const lane, const double length, const bool doAdd) const
Create an instance of MeanDataValues.
void notifyMoveInternal(const SUMOTrafficObject &veh, const double frontOnLane, const double timeOnLane, const double, const double meanSpeedVehicleOnLane, const double travelledDistanceFrontOnLane, const double travelledDistanceVehicleOnLane, const double meanLengthOnLane)
Internal notification about the vehicle moves.
double minimalVehicleLength
minimal vehicle length in the current interval (used to determine a maximal density,...
A road/street connecting two junctions.
Network state mean data collector for edges/lanes.
Data structure for mean (aggregated) edge/lane values.
bool detectPersons() const
int nVehLaneChangeTo
The number of vehicles that changed to this lane.
Stores edges and lanes, performs moving of vehicle.
const double myHaltSpeed
the minimum sample seconds
MSLaneMeanDataValues(MSLane *const lane, const double length, const bool doAdd, const MSMeanData_Net *parent)
Constructor.
int nVehEntered
The number of vehicles that entered this lane within the sample interval.
void resetOnly(SUMOTime stopTime)
Resets network value in order to allow processing of the next interval.
MSMeanData_Net(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.
bool notifyEnter(SUMOTrafficObject &veh, MSMoveReminder::Notification reason, const MSLane *enteredLane=0)
Computes current values and adds them to their sums.
Notification
Definition of a vehicle state.
virtual ~MSMeanData_Net()
Destructor.
const MSMeanData_Net * myParent
The meandata parent.
double vehLengthSum
The sum of the lengths the vehicles had.