Package it.polito.appeal.traci

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


    getFirstVehicle();
    Vehicle v = firstVehicle;

    ChangeTargetQuery ctq = v.queryChangeTarget();
    ctq.setValue(conn.getEdgeRepository().getByID("end"));
    ctq.run();
   
    Edge lastEdge = null;
    while (conn.getVehicleRepository().getByID(v.getID()) != null) {
      lastEdge = v.queryReadCurrentEdge().get();
      assertFalse(lastEdge.getID().equals("end"));
View Full Code Here


  public void testChangeTargetAlsoAffectsRouteList() throws IOException {
    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
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.