public class HubSegmentLocation extends Location
  • Field Details

  • Constructor Details

    • HubSegmentLocation

      public HubSegmentLocation()
    • HubSegmentLocation

      public HubSegmentLocation(long id)
    • HubSegmentLocation

      public HubSegmentLocation(long id, double latitude, double longitude)
  • Method Details

    • getNearbyTravelDistanceMap

      public Map<RoadSegmentLocation,Double> getNearbyTravelDistanceMap()
    • setNearbyTravelDistanceMap

      public void setNearbyTravelDistanceMap(Map<RoadSegmentLocation,Double> nearbyTravelDistanceMap)
    • getHubTravelDistanceMap

      public Map<HubSegmentLocation,Double> getHubTravelDistanceMap()
    • setHubTravelDistanceMap

      public void setHubTravelDistanceMap(Map<HubSegmentLocation,Double> hubTravelDistanceMap)
    • getDistanceTo

      public long getDistanceTo(Location location)
      Description copied from class: Location
      The distance's unit of measurement depends on the VehicleRoutingSolution's DistanceType. It can be in miles or km, but for most cases it's in the TSPLIB's unit of measurement.
      Specified by:
      getDistanceTo in class Location
      Parameters:
      location - never null
      Returns:
      a positive number, the distance multiplied by 1000 to avoid floating point arithmetic rounding errors
    • getDistanceDouble

      public double getDistanceDouble(RoadSegmentLocation location)
    • getShortestDistanceDoubleThroughOtherHub

      protected double getShortestDistanceDoubleThroughOtherHub(RoadSegmentLocation location)