Examples of changePosition()


Examples of it.polito.appeal.traci.POI.changePosition()

  @Test
  public void testSetPOIPosition() throws IOException {
    Repository<POI> poiRepo = conn.getPOIRepository();
    POI poi = poiRepo.getByID("0");
    final Point2D newPos = new Point2D.Double(0, 0);
    poi.changePosition(newPos);
    final Point2D pos = poi.getPosition();
    assertEquals(newPos.getX(), pos.getX(), DELTA);
    assertEquals(newPos.getY(), pos.getY(), DELTA);
  }
 
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.