Package it.polito.appeal.traci

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


    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();
   
    /*
     * The new vehicle won't enter the simulation immediately, because other
     * vehicles are waiting the lane to be freed before entering.
     */
 
View Full Code Here


    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();
   
    /*
     * The new vehicle won't enter the simulation immediately, because other
     * vehicles are waiting the lane to be freed before entering.
     */
 
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.