|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.agmodel.metBroker.RegionImpl
Provides persistent storage of region names and lists of weather stations under each region.
| Field Summary |
| Fields inherited from interface net.agmodel.physical.GeographicalArea |
EVEREST, METRESPERDEGREEOFLATITUDE, METRESPERDEGREEOFLONGATEQUATOR, METRESPERPIXEL |
| Constructor Summary | |
RegionImpl(String regionID,
MultilingualString regionName)
|
|
| Method Summary | |
void |
addStation(ServerStationImpl station)
|
boolean |
contains(GeographicalArea area)
Indicate whether the area passed falls entirely within this area |
boolean |
contains(Location2D point)
Indicate whether a point is within the area |
GeographicalBox |
getBoundingBox()
Return a box which bounds the area. |
Region |
getRegion(String language)
|
String |
getRegionID()
|
String |
getRegionName(String language)
|
ServerStationImpl[] |
getStations(SpatialMetRequest request)
|
WeatherStation[] |
getStations(String language)
|
boolean |
isUnknown()
Indicates whether the bounds of this area are unknown. |
boolean |
overlapsWith(GeographicalArea area)
Indicate whether the supplied area overlaps with this area. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RegionImpl(String regionID,
MultilingualString regionName)
| Method Detail |
public String getRegionName(String language)
public String getRegionID()
public WeatherStation[] getStations(String language)
public ServerStationImpl[] getStations(SpatialMetRequest request)
public void addStation(ServerStationImpl station)
public Region getRegion(String language)
public boolean contains(Location2D point)
GeographicalArea
contains in interface GeographicalAreapoint - the point of interest
public boolean contains(GeographicalArea area)
GeographicalArea
contains in interface GeographicalAreaarea - the area of interest
public GeographicalBox getBoundingBox()
GeographicalAreaoverlapsWith
for arbitrary shapes.
If isUnknown() returns true for the area, then returns GeographicalBox.UNKNOWN
getBoundingBox in interface GeographicalAreapublic boolean overlapsWith(GeographicalArea area)
GeographicalAreagetBoundingBox for a way of approximately
implementing this for arbitrary shapes. Suggestions for improvement welcome.
If isUnknown() returns true for either or both areas, the result is false;
overlapsWith in interface GeographicalAreaarea - the area of interestpublic boolean isUnknown()
GeographicalArea
isUnknown in interface GeographicalArea
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||