Interface ILocation
- 
 public interface ILocationA location on the virtual map.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetDistance(ILocation other)Caculate the distance to another location.doublegetX()Get the x of this Location.doublegetY()Get the y of this Location.booleanisNear(ILocation other)Check, if the other location is in range.
 
- 
- 
- 
Method Detail- 
getXdouble getX() Get the x of this Location. The x-coordinate.- Returns:
- x
 
 - 
getYdouble getY() Get the y of this Location. The y-coordinate.- Returns:
- y
 
 - 
getDistancedouble getDistance(ILocation other) Caculate the distance to another location.- Returns:
- The distance.
 
 - 
isNearboolean isNear(ILocation other) Check, if the other location is in range. E.g. when the chargin station is near to the cleaner it can recharge, etc.- Returns:
- True, if the given locations is near to this location.
 
 
- 
 
-