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;
120 if (sampleSeconds > myParent->myMinSamples) {
122 SUMOReal vehFactor = myParent->myMaxTravelTime / sampleSeconds;
123 SUMOReal traveltime = myParent->myMaxTravelTime;
124 if (travelledDistance > 0.f) {
125 vehFactor =
MIN2(vehFactor, myLaneLength / travelledDistance);
126 traveltime =
MIN2(traveltime, myLaneLength * sampleSeconds / travelledDistance);
135 }
else if (defaultTravelTime >= 0.) {
158 const bool useLanes,
const bool withEmpty,
159 const bool printDefaults,
160 const bool withInternal,
161 const bool trackVehicles,
164 const std::set<std::string> vTypes)
165 :
MSMeanData(id, dumpBegin, dumpEnd, useLanes, withEmpty, printDefaults,
166 withInternal, trackVehicles, maxTravelTime, minSamples, vTypes) {