Package it.polito.appeal.traci

Examples of it.polito.appeal.traci.Route


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

    //assertTrue(conn.getVehicleRepository().getIDs().size() > 0);
    final String id = "A_NEW_VEHICLE";
    Route route = conn.getRouteRepository().getByID("0");
    VehicleType vType = conn.getVehicleTypeRepository().getByID("KRAUSS_DEFAULT");
   
    AddVehicleQuery avq = conn.queryAddVehicle();
    avq.setVehicleData(id, vType, route, 0, 0, 0);
    avq.run();
View Full Code Here


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

    //assertTrue(conn.getVehicleRepository().getIDs().size() > 0);
    final String id = "A_NEW_VEHICLE";
    Route route = conn.getRouteRepository().getByID("0");
    VehicleType vType = conn.getVehicleTypeRepository().getByID("KRAUSS_DEFAULT");
   
    AddVehicleQuery avq = conn.queryAddVehicle();
    avq.setVehicleData(id, vType, route, 0, 0, 0);
    avq.run();
View Full Code Here

TOP

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

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.