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
Place
public Place(double latitude,
double longitude,
double altitude,
String placeName)
Place
public Place(Location location,
String placeName)
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
Copyright (C) NARC 2001 All Rights Reserved.