Package it.polito.appeal.traci

Examples of it.polito.appeal.traci.ChangeEdgeTravelTimeQuery.run()


    String edgeID = "middle";
    Edge edge = conn.getEdgeRepository().getByID(edgeID);
    ChangeEdgeTravelTimeQuery settq = firstVehicle.querySetEdgeTravelTime();
    settq.setEdge(edge);
    settq.setTravelTime(10000);
    settq.run();
   
    firstVehicle.queryReroute().run();
   
    List<Edge> routeAfter = routeQuery.get();
    System.out.println("Route after:          " + routeAfter);
View Full Code Here


    String edgeID = "middle";
    Edge edge = conn.getEdgeRepository().getByID(edgeID);
    ChangeEdgeTravelTimeQuery settq = firstVehicle.querySetEdgeTravelTime();
    settq.setEdge(edge);
    settq.setTravelTime(10000);
    settq.run();
   
    firstVehicle.queryReroute().run();
   
    List<Edge> routeAfter = firstVehicle.getCurrentRoute();
    log.info("Route after:          " + routeAfter);
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.