net.agmodel.physical
Class Place

java.lang.Object
  |
  +--net.agmodel.physical.Location2D
        |
        +--net.agmodel.physical.Location
              |
              +--net.agmodel.physical.Place
All Implemented Interfaces:
Comparable, Serializable

public class Place
extends Location

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.agmodel.physical.Location
UNKNOWN
 
Fields inherited from class net.agmodel.physical.Location2D
latitude, longitude, nf
 
Constructor Summary
Place(double latitude, double longitude, double altitude, String placeName)
           
Place(Location location, String placeName)
           
 
Method Summary
 int compareTo(Object a)
          More northerly locations sort first.
 String getPlaceName()
           
 String toString()
           
 
Methods inherited from class net.agmodel.physical.Location
equals, getAltitude, hashCode
 
Methods inherited from class net.agmodel.physical.Location2D
getLatitude, getLongitude, isUnknown
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Place

public Place(double latitude,
             double longitude,
             double altitude,
             String placeName)

Place

public Place(Location location,
             String placeName)
Method Detail

toString

public String toString()
Overrides:
toString in class Location

getPlaceName

public String getPlaceName()

compareTo

public int compareTo(Object a)
Description copied from class: Location
More northerly locations sort first. If latitude is the same, more more westerly (lesser longitude) locations sort first. If latitude and longitude are the same, boxes with higher altitude sort first.

Specified by:
compareTo in interface Comparable
Overrides:
compareTo in class Location