Examples of queryReadLanePosition()


Examples of it.polito.appeal.traci.Vehicle.queryReadLanePosition()

  @Test
  public void testVehiclePositionAtStepOne() throws IOException {
    conn.nextSimStep();
    final Repository<Vehicle> repo = conn.getVehicleRepository();
    Vehicle v0 = repo.getByID("0.0");
    assertEquals(0, v0.queryReadLanePosition().get(), DELTA);
  }
 
  @Test
  public void testVehiclePositionAtStepTwo() throws IOException {
    conn.nextSimStep();
View Full Code Here

Examples of it.polito.appeal.traci.Vehicle.queryReadLanePosition()

  public void testVehiclePositionAtStepTwo() throws IOException {
    conn.nextSimStep();
    conn.nextSimStep();
    final Repository<Vehicle> repo = conn.getVehicleRepository();
    Vehicle v0 = repo.getByID("0.0");
    assertEquals(1.886542, v0.queryReadLanePosition().get(), DELTA);
  }
 
  private Vehicle firstVehicle = null;
 
  @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.