test_class.declarator: locationReferencePointEncoder = new LocationReferencePointEncoder()
test_class.original_string: LocationReferencePointEncoder locationReferencePointEncoder = new LocationReferencePointEncoder();
test_class.type: LocationReferencePointEncoder
test_class.var_name: locationReferencePointEncoder
test_class.file: proto/src/test/java/openlr/proto/encoder/LocationReferencePointEncoderTest.java
test_class.identifier: LocationReferencePointEncoderTest
test_case.body: @Test
      public void testEncodeLocationReferencePoint() {
          LocationReferencePointProtoImpl locationReferencePoint = new LocationReferencePointProtoImpl(
                  1,
                  5.7,
                  53.5,
                  15.5,
                  FunctionalRoadClass.FRC_3,
                  FormOfWay.MULTIPLE_CARRIAGEWAY,
                  200,
                  FunctionalRoadClass.FRC_4);
  
          LocationReferencePoint lrp = locationReferencePointEncoder.encode(locationReferencePoint);
  
          assertNotNull(lrp);
          assertTrue(lrp.hasCoordinates());
          assertTrue(lrp.hasLineAttributes());
          assertTrue(lrp.hasPathAttributes());
  
          Coordinates coordinates = lrp.getCoordinates();
          assertEquals(coordinates.getLongitude(), 5.7);
          assertEquals(coordinates.getLatitude(), 53.5);
  
          LineAttributes lineAttributes = lrp.getLineAttributes();
          assertEquals(lineAttributes.getBearing(), 15);
          assertEquals(lineAttributes.getFrc(), FRC.FRC_3);
          assertEquals(lineAttributes.getFow(), FOW.FOW_MULTIPLE_CARRIAGEWAY);
  
          PathAttributes pathAttributes = lrp.getPathAttributes();
          assertEquals(pathAttributes.getDistanceToNext(), 200);
          assertEquals(pathAttributes.getLowestFrcAlongPath(), FRC.FRC_4);
      }
test_case.class_method_signature: LocationReferencePointEncoderTest.testEncodeLocationReferencePoint()
test_case.full_signature: @Test public void testEncodeLocationReferencePoint()
test_case.identifier: testEncodeLocationReferencePoint
test_case.invocations: encode assertNotNull assertTrue hasCoordinates assertTrue hasLineAttributes assertTrue hasPathAttributes getCoordinates assertEquals getLongitude assertEquals getLatitude getLineAttributes assertEquals getBearing assertEquals getFrc assertEquals getFow getPathAttributes assertEquals getDistanceToNext assertEquals getLowestFrcAlongPath
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEncodeLocationReferencePoint()
focal_class.file: proto/src/main/java/openlr/proto/encoder/LocationReferencePointEncoder.java
focal_class.identifier: LocationReferencePointEncoder
focal_class.class_method_signature: LocationReferencePointEncoder.encode(LocationReferencePoint locationReferencePoint)
focal_class.full_signature: public openlr.proto.schema.LocationReferencePoint encode(LocationReferencePoint locationReferencePoint)
focal_class.identifier: encode
focal_class.modifiers: public
focal_class.parameters: (LocationReferencePoint locationReferencePoint)
focal_class.return: openlr.proto.schema.LocationReferencePoint
focal_class.signature: openlr.proto.schema.LocationReferencePoint encode(LocationReferencePoint locationReferencePoint)
focal_class.class_method_signature: LocationReferencePointEncoder.encode(FunctionalRoadClass functionalRoadClass)
focal_class.full_signature: private FRC encode(FunctionalRoadClass functionalRoadClass)
focal_class.identifier: encode
focal_class.modifiers: private
focal_class.parameters: (FunctionalRoadClass functionalRoadClass)
focal_class.return: FRC
focal_class.signature: FRC encode(FunctionalRoadClass functionalRoadClass)
focal_class.class_method_signature: LocationReferencePointEncoder.encode(FormOfWay formOfWay)
focal_class.full_signature: private FOW encode(FormOfWay formOfWay)
focal_class.identifier: encode
focal_class.modifiers: private
focal_class.parameters: (FormOfWay formOfWay)
focal_class.return: FOW
focal_class.signature: FOW encode(FormOfWay formOfWay)
focal_method.body: public openlr.proto.schema.LocationReferencePoint encode(LocationReferencePoint locationReferencePoint) {
          openlr.proto.schema.LocationReferencePoint.Builder builder = openlr.proto.schema.LocationReferencePoint.newBuilder();
  
          Coordinates coordinates = Coordinates.newBuilder()
                  .setLongitude(locationReferencePoint.getLongitudeDeg())
                  .setLatitude(locationReferencePoint.getLatitudeDeg())
                  .build();
          builder.setCoordinates(coordinates);
  
          LineAttributes lineAttributes = LineAttributes.newBuilder()
                  .setBearing((int) locationReferencePoint.getBearing())
                  .setFrc(encode(locationReferencePoint.getFRC()))
                  .setFow(encode(locationReferencePoint.getFOW()))
                  .build();
          builder.setLineAttributes(lineAttributes);
  
          if (!locationReferencePoint.isLastLRP()) {
              PathAttributes pathAttributes = PathAttributes.newBuilder()
                      .setDistanceToNext(locationReferencePoint.getDistanceToNext())
                      .setLowestFrcAlongPath(encode(locationReferencePoint.getLfrc()))
                      .build();
              builder.setPathAttributes(pathAttributes);
          }
  
          return builder.build();
      }
focal_method.class_method_signature: LocationReferencePointEncoder.encode(LocationReferencePoint locationReferencePoint)
focal_method.full_signature: public openlr.proto.schema.LocationReferencePoint encode(LocationReferencePoint locationReferencePoint)
focal_method.identifier: encode
focal_method.invocations: newBuilder build setLatitude setLongitude newBuilder getLongitudeDeg getLatitudeDeg setCoordinates build setFow setFrc setBearing newBuilder getBearing encode getFRC encode getFOW setLineAttributes isLastLRP build setLowestFrcAlongPath setDistanceToNext newBuilder getDistanceToNext encode getLfrc setPathAttributes build
focal_method.modifiers: public
focal_method.parameters: (LocationReferencePoint locationReferencePoint)
focal_method.return: openlr.proto.schema.LocationReferencePoint
focal_method.signature: openlr.proto.schema.LocationReferencePoint encode(LocationReferencePoint locationReferencePoint)