net.agmodel.weatherData
Class Region
java.lang.Object
|
+--net.agmodel.weatherData.Region
- All Implemented Interfaces:
- Comparable, Serializable
- public class Region
- extends Object
- implements Serializable, Comparable
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Region
public Region(String regionID,
String regionName,
GeographicalArea regionArea)
- Creates a new region
- Parameters:
regionID - an identifier for this region (unique within a database)regionName - a language-specific regionNameregionArea - the geographical area covered by the region (may be null if not yet defined)
getRegionName
public String getRegionName()
getRegionID
public String getRegionID()
getRegionArea
public GeographicalArea getRegionArea()
compareTo
public int compareTo(Object another)
- Compares based on regionArea.getBoundingBox()
if boundingBox is null for one, it sorts greater.
if boundingBox is undefined for both, regionID is used.
- Specified by:
compareTo in interface Comparable