42 #ifdef CHECK_MEMORY_LEAKS
44 #endif // CHECK_MEMORY_LEAKS
54 const SUMOReal length,
const bool doAdd,
55 const std::set<std::string>*
const vTypes,
58 CO2(0), CO(0), HC(0), NOx(0), PMx(0), fuel(0), myParent(parent) {}
68 travelledDistance = 0.;
94 sampleSeconds += timeOnLane;
95 travelledDistance += speed * timeOnLane;
122 if (sampleSeconds > myParent->myMinSamples) {
123 SUMOReal vehFactor = myParent->myMaxTravelTime / sampleSeconds;
124 SUMOReal traveltime = myParent->myMaxTravelTime;
125 if (travelledDistance > 0.f) {
126 vehFactor =
MIN2(vehFactor, myLaneLength / travelledDistance);
127 traveltime =
MIN2(traveltime, myLaneLength * sampleSeconds / travelledDistance);
136 }
else if (defaultTravelTime >= 0.) {
159 const bool useLanes,
const bool withEmpty,
160 const bool printDefaults,
161 const bool withInternal,
162 const bool trackVehicles,
165 const std::set<std::string> vTypes)
166 :
MSMeanData(id, dumpBegin, dumpEnd, useLanes, withEmpty, printDefaults,
167 withInternal, trackVehicles, maxTravelTime, minSamples, vTypes) {