org.dartra.framework
Interface Location

All Superinterfaces:
Persistent
All Known Implementing Classes:
StandardLocation

public interface Location
extends Persistent

Location on a darts board.

Locations are value objects.

Author:
Erwin Vervaet

Method Summary
 double distanceTo(Location l)
          Calculate the distance between this location and given location.
 double getX()
          Return the x coordinate of this location.
 double getY()
          Return the y coordinate of this location.
 
Methods inherited from interface org.dartra.framework.Persistent
getId, setId
 

Method Detail

getX

public double getX()

Return the x coordinate of this location.


getY

public double getY()

Return the y coordinate of this location.


distanceTo

public double distanceTo(Location l)

Calculate the distance between this location and given location.