Package it.polito.appeal.traci

Examples of it.polito.appeal.traci.ReadGlobalTravelTimeQuery


    cttq.setBeginTime(0);
    cttq.setEndTime(1000);
    cttq.setTravelTime(10000);
    cttq.run();
   
    ReadGlobalTravelTimeQuery rgttq = edge.queryReadGlobalTravelTime();
    rgttq.setTime(conn.getCurrentSimStep());
    double newTravelTime = rgttq.get();
    assertEquals(10000, newTravelTime, DELTA);

    firstVehicle.queryReroute().run();

    List<Edge> routeAfter = routeQuery.get();
View Full Code Here


    cttq.setBeginTime(0);
    cttq.setEndTime(1000);
    cttq.setTravelTime(10000);
    cttq.run();
   
    ReadGlobalTravelTimeQuery rgttq = edge.queryReadGlobalTravelTime();
    rgttq.setTime(conn.getCurrentSimStep());
    double newTravelTime = rgttq.get();
    assertEquals(10000, newTravelTime, DELTA);

    firstVehicle.queryReroute().run();

    List<Edge> routeAfter = firstVehicle.getCurrentRoute();
View Full Code Here

TOP

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

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.