48 #ifdef CHECK_MEMORY_LEAKS
50 #endif // CHECK_MEMORY_LEAKS
79 std::vector<std::string> ids;
84 std::vector<std::string> ids;
102 if (!
MSNet::getInstance()->getWeightsStorage().retrieveExistingTravelTime(e, 0, time, value)) {
117 if (!
MSNet::getInstance()->getWeightsStorage().retrieveExistingEffort(e, 0, time, value)) {
130 const std::vector<MSLane*>& lanes = e->
getLanes();
131 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
132 wtime += (*i)->getWaitingSeconds();
139 std::vector<std::string> vehIDs;
140 const std::vector<MSLane*>& lanes = e->
getLanes();
141 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
143 for (MSLane::VehCont::const_iterator j = vehs.begin(); j != vehs.end(); ++j) {
144 vehIDs.push_back((*j)->getID());
146 (*i)->releaseVehicles();
154 const std::vector<MSLane*>& lanes = e->
getLanes();
155 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
156 sum += (*i)->getHBEFA_CO2Emissions();
164 const std::vector<MSLane*>& lanes = e->
getLanes();
165 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
166 sum += (*i)->getHBEFA_COEmissions();
174 const std::vector<MSLane*>& lanes = e->
getLanes();
175 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
176 sum += (*i)->getHBEFA_HCEmissions();
184 const std::vector<MSLane*>& lanes = e->
getLanes();
185 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
186 sum += (*i)->getHBEFA_PMxEmissions();
194 const std::vector<MSLane*>& lanes = e->
getLanes();
195 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
196 sum += (*i)->getHBEFA_NOxEmissions();
204 const std::vector<MSLane*>& lanes = e->
getLanes();
205 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
206 sum += (*i)->getHBEFA_FuelConsumption();
214 const std::vector<MSLane*>& lanes = e->
getLanes();
215 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
216 sum += (
SUMOReal) pow(10., ((*i)->getHarmonoise_NoiseEmissions() / 10.));
228 const std::vector<MSLane*>& lanes = e->
getLanes();
229 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
230 sum += (*i)->getVehicleNumber();
238 const std::vector<MSLane*>& lanes = e->
getLanes();
239 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
240 sum += (*i)->getMeanSpeed();
248 const std::vector<MSLane*>& lanes = e->
getLanes();
249 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
250 sum += (*i)->getNettoOccupancy();
258 const std::vector<MSLane*>& lanes = e->
getLanes();
259 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
261 for (MSLane::VehCont::const_iterator j = vehs.begin(); j != vehs.end(); ++j) {
266 (*i)->releaseVehicles();
275 const std::vector<MSLane*>& lanes = e->
getLanes();
276 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
278 for (MSLane::VehCont::const_iterator j = vehs.begin(); j != vehs.end(); ++j) {
279 lengthSum += (*j)->getVehicleType().getLength();
281 noVehicles += (
int) vehs.size();
282 (*i)->releaseVehicles();
285 if (noVehicles == 0) {
305 std::string warning =
"";
321 std::vector<std::string> classes;
326 const std::vector<MSLane*>& lanes = e->
getLanes();
327 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
328 (*i)->setPermissions(permissions);
335 std::vector<std::string> classes;
340 const std::vector<MSLane*>& lanes = e->
getLanes();
341 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
342 (*i)->setPermissions(permissions);
352 int parameterCount = inputStorage.
readInt();
353 if (parameterCount == 3) {
367 }
else if (parameterCount == 1) {
384 int parameterCount = inputStorage.
readInt();
385 if (parameterCount == 3) {
399 }
else if (parameterCount == 1) {
417 const std::vector<MSLane*>& lanes = e->
getLanes();
418 for (std::vector<MSLane*>::const_iterator i = lanes.begin(); i != lanes.end(); ++i) {
419 (*i)->setMaxSpeed(value);
437 const std::vector<MSLane*>& lanes = e->
getLanes();
438 shape.
push_back(lanes.front()->getShape());
439 if (lanes.size() > 1) {
440 shape.
push_back(lanes.back()->getShape().reverse());