test_class.file: optaweb-vehicle-routing-backend/src/test/java/org/optaweb/vehiclerouting/plugin/planner/domain/PlanningLocationTest.java
test_class.identifier: PlanningLocationTest
test_case.body: @Test
      void distance_to_location_should_equal_value_in_distance_map() {
          HashMap<Long, Distance> distanceMap = new HashMap<>();
          long otherId = 321;
          long millis = 777777;
          distanceMap.put(otherId, Distance.ofMillis(millis));
          Location domainLocation = new Location(1, Coordinates.valueOf(0, 0));
  
          PlanningLocation planningLocation = new PlanningLocation(
                  domainLocation.id(),
                  domainLocation.coordinates().latitude().doubleValue(),
                  domainLocation.coordinates().longitude().doubleValue(),
                  new DistanceMapImpl(distanceMap::get));
          assertThat(planningLocation.distanceTo(testLocation(otherId))).isEqualTo(millis);
      }
test_case.class_method_signature: PlanningLocationTest.distance_to_location_should_equal_value_in_distance_map()
test_case.full_signature: @Test void distance_to_location_should_equal_value_in_distance_map()
test_case.identifier: distance_to_location_should_equal_value_in_distance_map
test_case.invocations: put ofMillis valueOf id doubleValue latitude coordinates doubleValue longitude coordinates isEqualTo assertThat distanceTo testLocation
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void distance_to_location_should_equal_value_in_distance_map()
focal_class.declarator: id
focal_class.modifier: private final
focal_class.original_string: private final long id;
focal_class.type: long
focal_class.var_name: id
focal_class.declarator: latitude
focal_class.modifier: private final
focal_class.original_string: private final double latitude;
focal_class.type: double
focal_class.var_name: latitude
focal_class.declarator: longitude
focal_class.modifier: private final
focal_class.original_string: private final double longitude;
focal_class.type: double
focal_class.var_name: longitude
focal_class.declarator: travelDistanceMap
focal_class.modifier: private final
focal_class.original_string: private final DistanceMap travelDistanceMap;
focal_class.type: DistanceMap
focal_class.var_name: travelDistanceMap
focal_class.file: optaweb-vehicle-routing-backend/src/main/java/org/optaweb/vehiclerouting/plugin/planner/domain/PlanningLocation.java
focal_class.identifier: PlanningLocation
focal_class.class_method_signature: PlanningLocation.PlanningLocation(long id, double latitude, double longitude, DistanceMap travelDistanceMap)
focal_class.full_signature:   PlanningLocation(long id, double latitude, double longitude, DistanceMap travelDistanceMap)
focal_class.identifier: PlanningLocation
focal_class.parameters: (long id, double latitude, double longitude, DistanceMap travelDistanceMap)
focal_class.signature:  PlanningLocation(long id, double latitude, double longitude, DistanceMap travelDistanceMap)
focal_class.class_method_signature: PlanningLocation.getId()
focal_class.full_signature: public long getId()
focal_class.identifier: getId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getId()
focal_class.class_method_signature: PlanningLocation.distanceTo(PlanningLocation location)
focal_class.full_signature: public long distanceTo(PlanningLocation location)
focal_class.identifier: distanceTo
focal_class.modifiers: public
focal_class.parameters: (PlanningLocation location)
focal_class.return: long
focal_class.signature: long distanceTo(PlanningLocation location)
focal_class.class_method_signature: PlanningLocation.angleTo(PlanningLocation location)
focal_class.full_signature: public double angleTo(PlanningLocation location)
focal_class.identifier: angleTo
focal_class.modifiers: public
focal_class.parameters: (PlanningLocation location)
focal_class.return: double
focal_class.signature: double angleTo(PlanningLocation location)
focal_class.class_method_signature: PlanningLocation.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public long distanceTo(PlanningLocation location) {
          if (this == location) {
              return 0L;
          }
          return travelDistanceMap.distanceTo(location);
      }
focal_method.class_method_signature: PlanningLocation.distanceTo(PlanningLocation location)
focal_method.full_signature: public long distanceTo(PlanningLocation location)
focal_method.identifier: distanceTo
focal_method.invocations: distanceTo
focal_method.modifiers: public
focal_method.parameters: (PlanningLocation location)
focal_method.return: long
focal_method.signature: long distanceTo(PlanningLocation location)