Examples of queryReadCurrentRoute()


Examples of it.polito.appeal.traci.Vehicle.queryReadCurrentRoute()

      Vehicle aVehicle = vehicles.iterator().next();
     
      System.out.println("Vehicle " + aVehicle
          + " will traverse these edges: "
          + aVehicle.queryReadCurrentRoute().get());
     
      conn.close();
    }
    catch(Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of it.polito.appeal.traci.Vehicle.queryReadCurrentRoute()

    getFirstVehicle();
    Vehicle v = firstVehicle;
    ChangeTargetQuery ctq = v.queryChangeTarget();
    ctq.setValue(conn.getEdgeRepository().getByID("end"));
    ctq.run();
    List<Edge> route = v.queryReadCurrentRoute().get();
    assertEquals("end", route.get(route.size()-1).getID());
  }
 
  @Test
  public void testChangeRoute() throws IOException {
View Full Code Here

Examples of it.polito.appeal.traci.Vehicle.queryReadCurrentRoute()

    newRoute.add(conn.getEdgeRepository().getByID("left"));
    newRoute.add(conn.getEdgeRepository().getByID("left2end"));
    ChangeRouteQuery crq = v.queryChangeRoute();
    crq.setValue(newRoute);
    crq.run();
    assertEquals(newRoute, v.queryReadCurrentRoute().get());
  }
 
  @Test
  public void testLaneLinks() throws IOException {
    Lane begLane = conn.getLaneRepository().getByID("beg_0");
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.