Class PlanningLocation
- java.lang.Object
-
- org.optaweb.vehiclerouting.plugin.planner.domain.PlanningLocation
-
public class PlanningLocation extends Object
-
-
Constructor Summary
Constructors Constructor Description PlanningLocation(long id, double latitude, double longitude, DistanceMap travelDistanceMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleangleTo(PlanningLocation location)Angle between the given location and the direction EAST withthislocation being the vertex.longdistanceTo(PlanningLocation location)Distance to the given location.longgetId()ID of the corresponding domain location.StringtoString()
-
-
-
Constructor Detail
-
PlanningLocation
PlanningLocation(long id, double latitude, double longitude, DistanceMap travelDistanceMap)
-
-
Method Detail
-
getId
public long getId()
ID of the corresponding domain location.- Returns:
- domain location ID
-
distanceTo
public long distanceTo(PlanningLocation location)
Distance to the given location.- Parameters:
location- other location- Returns:
- distance to the other location
-
angleTo
public double angleTo(PlanningLocation location)
Angle between the given location and the direction EAST withthislocation being the vertex.- Parameters:
location- location that forms one side of the angle (notnull)- Returns:
- angle in radians in the range of -π to π
-
-