@Test public final void testLocRefPoint() { LocRefData lrd = new LocRefData(td.getRoute()); lrd.setExpansion(td.getLRLocation()); List<Line> path = ExpansionHelper.getExpandedLocation(lrd); LocRefPoint lrp1 = null; LocRefPoint lrp2 = null; try { lrp1 = new LocRefPoint(path, td.getProperties()); lrp2 = new LocRefPoint(path, td.getProperties()); } catch (OpenLRProcessingException e) { fail("", e); } lrp1.setNextLRP(lrp2); assertEquals(lrp1.getLfrc(), FunctionalRoadClass.FRC_5); assertEquals(lrp1.getBearing(), EXPECTED_BEARING); assertEquals(lrp1.getDistanceToNext(), EXPECTED_DNP); }
public LocRefPoint(final List<Line> route, final OpenLREncoderProperties p) throws OpenLRProcessingException { this(route.get(0), route, false, route.get(0).getStartNode() .getLongitudeDeg(), route.get(0).getStartNode() .getLatitudeDeg(), p, false); }
LocRefPoint implements LocationReferencePoint { public LocRefPoint(final List<Line> route, final OpenLREncoderProperties p) throws OpenLRProcessingException { this(route.get(0), route, false, route.get(0).getStartNode() .getLongitudeDeg(), route.get(0).getStartNode() .getLatitudeDeg(), p, false); } }
LocRefPoint implements LocationReferencePoint { public LocRefPoint(final List<Line> route, final OpenLREncoderProperties p) throws OpenLRProcessingException { this(route.get(0), route, false, route.get(0).getStartNode() .getLongitudeDeg(), route.get(0).getStartNode() .getLatitudeDeg(), p, false); } LocRefPoint(final List<Line> route, final OpenLREncoderProperties p);  LocRefPoint(final Line l, final OpenLREncoderProperties p);  LocRefPoint(final Line l, final double lon, final double lat,
                       final OpenLREncoderProperties p, final boolean lastLRP); private  LocRefPoint(final Line l, final List<Line> route, final boolean isOnLine, final double lon,
                        final double lat, final OpenLREncoderProperties p,
                        final boolean lastLRP); }
LocRefPoint implements LocationReferencePoint { public LocRefPoint(final List<Line> route, final OpenLREncoderProperties p) throws OpenLRProcessingException { this(route.get(0), route, false, route.get(0).getStartNode() .getLongitudeDeg(), route.get(0).getStartNode() .getLatitudeDeg(), p, false); } LocRefPoint(final List<Line> route, final OpenLREncoderProperties p);  LocRefPoint(final Line l, final OpenLREncoderProperties p);  LocRefPoint(final Line l, final double lon, final double lat,
                       final OpenLREncoderProperties p, final boolean lastLRP); private  LocRefPoint(final Line l, final List<Line> route, final boolean isOnLine, final double lon,
                        final double lat, final OpenLREncoderProperties p,
                        final boolean lastLRP); final void setNextLRP(final LocRefPoint n); @Override final double getLongitudeDeg(); @Override final double getLatitudeDeg(); final Node getLRPNode(); @Override final int getDistanceToNext(); final List<Line> getRoute(); @Override final FunctionalRoadClass getLfrc(); @Override final FormOfWay getFOW(); @Override final FunctionalRoadClass getFRC(); final boolean isLRPOnLine(); @Override final boolean isLastLRP(); @Override final double getBearing(); @Override final String toString(); @Override final int hashCode(); @Override final boolean equals(final Object obj); @Override final int getSequenceNumber(); final void setSequenceNumber(final int seqNr); final Line getLine(); final Line getLastLineOfSubRoute(); }
LocRefPoint implements LocationReferencePoint { public LocRefPoint(final List<Line> route, final OpenLREncoderProperties p) throws OpenLRProcessingException { this(route.get(0), route, false, route.get(0).getStartNode() .getLongitudeDeg(), route.get(0).getStartNode() .getLatitudeDeg(), p, false); } LocRefPoint(final List<Line> route, final OpenLREncoderProperties p);  LocRefPoint(final Line l, final OpenLREncoderProperties p);  LocRefPoint(final Line l, final double lon, final double lat,
                       final OpenLREncoderProperties p, final boolean lastLRP); private  LocRefPoint(final Line l, final List<Line> route, final boolean isOnLine, final double lon,
                        final double lat, final OpenLREncoderProperties p,
                        final boolean lastLRP); final void setNextLRP(final LocRefPoint n); @Override final double getLongitudeDeg(); @Override final double getLatitudeDeg(); final Node getLRPNode(); @Override final int getDistanceToNext(); final List<Line> getRoute(); @Override final FunctionalRoadClass getLfrc(); @Override final FormOfWay getFOW(); @Override final FunctionalRoadClass getFRC(); final boolean isLRPOnLine(); @Override final boolean isLastLRP(); @Override final double getBearing(); @Override final String toString(); @Override final int hashCode(); @Override final boolean equals(final Object obj); @Override final int getSequenceNumber(); final void setSequenceNumber(final int seqNr); final Line getLine(); final Line getLastLineOfSubRoute();  }