Examples of SumoRoute


Examples of de.hpi.eworld.exporter.sumo.data.SumoRoute

    if (selectedEdges.size() < 2) {
      QMessageBox.warning(this, "Missing information",
          "The route doesnt contain enough waypoints. Please add at least two waypoints to the current route.");
      return;
    }
    SumoRoute result = new SumoRoute(routeId.text());
    for(Edge e : selectedEdges)
      result.addEdge(e.getInternalID());
    signalFinished.emit(result);
    parentWidget().setVisible(true);
    this.close();
  }
View Full Code Here

Examples of de.hpi.eworld.exporter.sumo.data.SumoRoute

    }
    result = new SumoVehicle();
    // ID
    result.setId(edit_id.text());
    // ROUTE
    SumoRoute route = getSelectedRoute();
    result.setRoute(route);
   
   
    // VEHICLE TYPE -> if no selection use Default vtype
    SumoVehicleType vtype = SumoManager.getInstance().getDefaultVehicleType();
View Full Code Here

Examples of de.hpi.eworld.exporter.sumo.data.SumoRoute

      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++;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.