Package it.polito.appeal.traci.protocol

Examples of it.polito.appeal.traci.protocol.RoadmapPosition



public class RoadmapPositionTest {
  @Test
  public void testEqualsHashcode() {
    RoadmapPosition same1 = new RoadmapPosition("edgeID", 1.5, 3);
    RoadmapPosition same2 = new RoadmapPosition("edgeID", 1.5, 3);
    RoadmapPosition different = new RoadmapPosition("anotherEdgeID", 1.5, 3);
    EqualsHashcodeTester.testAll(same1, same2, different);
  }
View Full Code Here


  }

  @Test
  public void testConvertRoadmapBeginToLonLat() throws IOException {
    PositionConversionQuery conv = conn.queryPositionConversion();
    conv.setPositionToConvert(new RoadmapPosition(EDGE_NAME, 0, LANE_NUM));
    Point2D out = conv.get();
    assertEquals(LOCATION_GEO.getX(), out.getX(), 1e-5);
    assertEquals(LOCATION_GEO.getY(), out.getY(), 1e-5);
  }
View Full Code Here

@SuppressWarnings("javadoc")
public class RoadmapPositionTest {
  @Test
  public void testEqualsHashcode() {
    RoadmapPosition same1 = new RoadmapPosition("edgeID", 1.5, 3);
    RoadmapPosition same2 = new RoadmapPosition("edgeID", 1.5, 3);
    RoadmapPosition different = new RoadmapPosition("anotherEdgeID", 1.5, 3);
    EqualsHashcodeTester.testAll(same1, same2, different);
  }
View Full Code Here

TOP

Related Classes of it.polito.appeal.traci.protocol.RoadmapPosition

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.