net.agmodel.weatherData
Class SpatialMetSetImpl

java.lang.Object
  |
  +--net.agmodel.weatherData.SpatialMetSetImpl
All Implemented Interfaces:
Serializable, ServerResult, SpatialMetSet

public class SpatialMetSetImpl
extends Object
implements SpatialMetSet, ServerResult

Represents the state of one or more meteorological element within a given latitude/longitude box at the earth's surface over a period of time. If contentStatus is EMPTY, can be used to represent a request for weather data. If contentStatus is FULL, contains any measurements of the elements from stations withing the box and period, stored in sequences related to particular stations. If contentStatus is METADATA contains empty sequences representing available data. Can interpolate values at any point within the box, and perhaps some distance outside (including forecasting?)

See Also:
Serialized Form

Constructor Summary
SpatialMetSetImpl()
           
 
Method Summary
 void addServerException(Exception m)
           
 void addStationDataSet(StationDataSet station)
           
 int getDatabasesRemainingToQuery()
           
 int getNumberOfStations()
          Gets the number of StationDataSets held
 StationDataSet getStationDataSet(int i)
          Extract a particular StationDataSet
 void registerCompleted()
           
 void registerToQuery()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpatialMetSetImpl

public SpatialMetSetImpl()
Method Detail

addStationDataSet

public void addStationDataSet(StationDataSet station)

registerCompleted

public void registerCompleted()

registerToQuery

public void registerToQuery()

getDatabasesRemainingToQuery

public int getDatabasesRemainingToQuery()

getStationDataSet

public StationDataSet getStationDataSet(int i)
Description copied from interface: SpatialMetSet
Extract a particular StationDataSet

Specified by:
getStationDataSet in interface SpatialMetSet
Parameters:
i - an index used to identify a StationDataSet within the SpatialMetSet.
Returns:
the requested StationDataSet

getNumberOfStations

public int getNumberOfStations()
Description copied from interface: SpatialMetSet
Gets the number of StationDataSets held

Specified by:
getNumberOfStations in interface SpatialMetSet
Returns:
the number

addServerException

public void addServerException(Exception m)