133134135136137138139140141142143
QMessageBox .warning(this, "Missing information", "Please fill out all neccessary fields (Id, Route)"); return; } result = new SumoVehicle(); // ID result.setId(edit_id.text()); // ROUTE SumoRoute route = getSelectedRoute(); result.setRoute(route);
547548549550551552553554555556557
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++;