44 #include <mesosim/MESegment.h>
45 #include <mesosim/MELoop.h>
49 #ifdef CHECK_MEMORY_LEAKS
51 #endif // CHECK_MEMORY_LEAKS
62 myEdgeAndLane(0, -1) {
80 for (MESegment* s = MSGlobals::gMesoNet->getSegmentForEdge(*
MSEdge::dictionary(i)); s != 0; s = s->getNextSegment()) {
88 for (std::vector<MSLane*>::const_iterator it = lanes.begin(); it != lanes.end(); ++it) {
89 (*it)->saveState(out);
119 0, std::vector<SUMOVehicleParameter::Stop>());
128 std::vector<std::string> routeIDs;
131 for (std::vector<std::string>::const_iterator it = routeIDs.begin(); it != routeIDs.end(); ++it) {
136 dist->
add(prob, r,
false);
151 std::vector<std::string> typeIDs;
154 for (std::vector<std::string>::const_iterator it = typeIDs.begin(); it != typeIDs.end(); ++it) {
159 dist->
add(prob, t,
false);
180 throw ProcessError(
"Error: Could not build vehicle " + p->
id +
"!");
186 if (mySegment == 0) {
188 }
else if (mySegment->getNextSegment() == 0) {
189 mySegment = MSGlobals::gMesoNet->getSegmentForEdge(*
MSEdge::dictionary(mySegment->getEdge().getNumericalID() + 1));
191 mySegment = mySegment->getNextSegment();
206 std::vector<std::string> vehIDs;