Package it.polito.appeal.traci.POI

Examples of it.polito.appeal.traci.POI.ChangePositionQuery.run()


    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
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.