Package it.polito.appeal.traci

Examples of it.polito.appeal.traci.AddRouteQuery


  public void testAddRoute() throws IOException {
    conn.nextSimStep();

    final String id = "A_NEW_ROUTE";
   
    AddRouteQuery arq = conn.queryAddRoute();
    List<Edge> edges = new ArrayList<Edge>();
    edges.add(conn.getEdgeRepository().getByID("beg"));
    edges.add(conn.getEdgeRepository().getByID("beg2left"));
    edges.add(conn.getEdgeRepository().getByID("left"));
    edges.add(conn.getEdgeRepository().getByID("left2end"));
    edges.add(conn.getEdgeRepository().getByID("end"));
    arq.setVehicleData(id, edges);
    arq.run();
   
    assertTrue(conn.getRouteRepository().getAll().containsKey(id));
  }
View Full Code Here

TOP

Related Classes of it.polito.appeal.traci.AddRouteQuery

Copyright © 2018 www.massapicom. 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.