59 #ifdef CHECK_MEMORY_LEAKS
61 #endif // CHECK_MEMORY_LEAKS
68 bool addVehiclesDirectly) :
71 myAddVehiclesDirectly(addVehiclesDirectly),
72 myCurrentVTypeDistribution(0),
73 myCurrentRouteDistribution(0),
76 if (oc.
isSet(
"incremental-dua-step")) {
79 if (oc.
isSet(
"scale")) {
106 throw ProcessError(
"The from edge '" + fromID +
"' within a ride of person '" + pid +
"' is not known.");
118 throw ProcessError(
"The to edge '" + toID +
"' within a ride of person '" + pid +
"' is not known.");
198 std::string vtypeID = st.
next();
272 const std::string
id = vehType->
getID();
275 if (!MSGlobals::gStateLoaded) {
277 throw ProcessError(
"Another vehicle type (or distribution) with the id '" +
id +
"' exists.");
316 if (!MSGlobals::gStateLoaded) {
359 std::string routeID = st.
next();
447 if (!MSGlobals::gStateLoaded) {
529 std::string errorSuffix;
556 if (ok && stop.
lane !=
"") {
558 WRITE_ERROR(
"The lane '" + stop.
lane +
"' for a stop is not known" + errorSuffix);
562 WRITE_ERROR(
"A stop must be placed on a bus stop or a lane" + errorSuffix);
572 WRITE_WARNING(
"Deprecated attribute 'pos' in description of stop" + errorSuffix);
578 WRITE_ERROR(
"Invalid start or end position for stop" + errorSuffix);
592 WRITE_ERROR(
"Invalid duration or end time is given for a stop" + errorSuffix);
599 WRITE_ERROR(
"Invalid bool for 'triggered' or 'parking' for stop" + errorSuffix);
605 }
else if (idx ==
"fit") {
609 if (!ok || stop.
index < 0) {
610 WRITE_ERROR(
"Invalid 'index' for stop" + errorSuffix);