51 #ifdef CHECK_MEMORY_LEAKS
53 #endif // CHECK_MEMORY_LEAKS
67 unsigned int vehicles2insert,
69 : myVehicle(vehicle), myVehicleType(type), myRoute(route),
70 myIntervalBegin(intBegin), myIntervalEnd(intEnd),
71 myVehicle2InsertNumber(vehicles2insert), myInserted(0), myRandom(randomize) {
93 return myIntervalBegin <= t && myIntervalEnd > t;
99 assert(myIntervalBegin <= t && myIntervalEnd >= t);
102 for (
unsigned int i = 0; i < absPerEachStep; i++) {
103 addSingleRoute(net, t);
107 if (toInsert > myInserted) {
108 addSingleRoute(net, t);
111 while (myDepartures.size() > 0 && myDepartures.back() < t +
DELTA_T) {
112 addSingleRoute(net, myDepartures.back());
113 myDepartures.pop_back();
121 std::string
id = myVehicle->getID() +
"_" + toString<unsigned int>(myInserted);
142 bool emptyDestinationsAllowed,
144 const std::string& fileName)
156 for (FlowDefV::const_iterator i =
myFlows.begin(); i !=
myFlows.end(); i++) {
181 if (time < myBegin || time >=
myEnd) {
185 for (FlowDefV::const_iterator i =
myFlows.begin(); i !=
myFlows.end(); i++) {
219 throw ProcessError(
"The id '" +
id +
"' appears twice within the flow descriptions.'");
243 throw ProcessError(
"Flow '" +
id +
"' has no vehicle number.");