Interface ILocation
- 
public interface ILocationA location on the virtual map. 
- 
- 
Method Summary
All 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
- 
getX
double getX()
Get the x of this Location. The x-coordinate.- Returns:
 - x
 
 
- 
getY
double getY()
Get the y of this Location. The y-coordinate.- Returns:
 - y
 
 
- 
getDistance
double getDistance(ILocation other)
Caculate the distance to another location.- Returns:
 - The distance.
 
 
- 
isNear
boolean 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.
 
 
 - 
 
 -