Package it.polito.appeal.traci.POI

Examples of it.polito.appeal.traci.POI.ChangePositionQuery


  @Test
  public void testSetPOIPosition() throws IOException {
    Repository<POI> poiRepo = conn.getPOIRepository();
    POI poi = poiRepo.getByID("0");
    final Point2D newPos = new Point2D.Double(0, 0);
    ChangePositionQuery q = poi.getChangePositionQuery();
    q.setValue(newPos);
    q.run();
    final Point2D pos = poi.getReadPositionQuery().get();
    assertEquals(newPos.getX(), pos.getX(), DELTA);
    assertEquals(newPos.getY(), pos.getY(), DELTA);
  }
View Full Code Here

TOP

Related Classes of it.polito.appeal.traci.POI.ChangePositionQuery

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.