for (int j = 0; j < routes.getLength(); j++) {
if (routes.item(j).getNodeName().equals("route")) {
String routeStr = routes.item(j).getAttributes().getNamedItem("edges").getTextContent();
String[] edgeList = routeStr.split(" ");
SumoRoute curRoute = new SumoRoute("route_for_vehicle_nr_" + id + "_"
+ UUID.randomUUID().toString());
for (String curEdgeLabel : edgeList) {
EdgeModel edgeToAdd = edges.get(curEdgeLabel);
curRoute.addEdge(edgeToAdd.getInternalID());
}
sumoMan.addRoute(curRoute);
SumoVehicle newVehicle = new SumoVehicle(depart, id, sumoMan.getSumoRouteById(curRoute
.getId()), vType);
sumoMan.addVehicle(newVehicle);
}
current++;