Interface Locatable

All Known Implementing Classes:
ColorBlock

public interface Locatable

AP® Computer Science Marine Biology Simulation:
Locatable is an interface that guarantees that an object knows its location and returns it when the location method is called.

The Locatable interface is copyright© 2002 College Entrance Examination Board (www.collegeboard.com).

See Also:
Location

Method Summary
 Location location()
          Returns the location of this object.
 

Method Detail

location

public Location location()
Returns the location of this object.
Returns:
the location of this object in the environment