Package it.polito.appeal.traci

Examples of it.polito.appeal.traci.MeMeDetector


  }
 
  @Test
  public void testMeMeDetectorIsDetecting() throws IOException {
    Repository<MeMeDetector> memeRepo = conn.getMeMeDetectorRepository();
    MeMeDetector detector = memeRepo.getByID("e3_0");
   
//    ValueReadQuery<Double> meanSpeed = detector.queryReadLastStepMeanSpeed();
    ValueReadQuery<Integer> vehicleNum = detector.queryReadLastStepVehicleNumber();
//    ValueReadQuery<Set<Vehicle>> vehicles = detector.queryReadLastStepVehicles();
   
    MultiQuery batch = conn.makeMultiQuery();
//    batch.add(meanSpeed);
    batch.add(vehicleNum);
View Full Code Here


    for (int t=0; t<100; t++) {
      conn.nextSimStep();
    }
   
    Repository<MeMeDetector> memeRepo = conn.getMeMeDetectorRepository();
    MeMeDetector detector = memeRepo.getByID("e3_0");
   
    assertEquals(38, (int)detector.getVehicleNumber());
  }
View Full Code Here

TOP

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

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.