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

Constructor Summary
Region(String regionID, String regionName, GeographicalArea regionArea)
          Creates a new region
 
Method Summary
 int compareTo(Object another)
          Compares based on regionArea.getBoundingBox() if boundingBox is null for one, it sorts greater.
 GeographicalArea getRegionArea()
           
 String getRegionID()
           
 String getRegionName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 regionName
regionArea - the geographical area covered by the region (may be null if not yet defined)
Method Detail

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