net.agmodel.weatherData
Class SpatialMetRequest

java.lang.Object
  extended bynet.agmodel.weatherData.MetRequest
      extended bynet.agmodel.weatherData.SpatialMetRequest
All Implemented Interfaces:
Serializable, ServerRequest

public class SpatialMetRequest
extends MetRequest

Encapsulates a request for meteorological data from stations in an area.
In general, client applications will only use the constructor.
The remaining methods are primarily for MetBroker's internal use.

Author:
Matthew Laurenson
See Also:
StationMetRequest, Serialized Form

Constructor Summary
SpatialMetRequest(Interval dateExtremes, Set requestedElements, MetDuration resolution, GeographicalArea area)
          Creates a request for meteorological data from stations in an area, allowing summarising but not interpolation.
See Interpretation of dateExtremes in queries in MetRequest for details of how the dateExtremes parameter is interpreted.
SpatialMetRequest(Interval dateExtremes, Set requestedElements, MetDuration resolution, GeographicalArea area, boolean summarise, boolean interpolate)
          Creates a request for meteorological data from stations in an area.
SpatialMetRequest(Interval dateExtremes, Set requestedElements, MetDuration resolution, GeographicalArea area, boolean summarise, boolean interpolate, boolean allOrNothing)
          Creates a request for meteorological data from stations in an area.
See Interpretation of dateExtremes in queries in MetRequest for details of how the dateExtremes parameter is interpreted.
 
Method Summary
 GeographicalArea getArea()
          Get the geographical area associated with the request return the area in question
 boolean isAllOrNothing()
           
 String toString()
          Get a string representation of the query parameters
 
Methods inherited from class net.agmodel.weatherData.MetRequest
containsMetElement, getDateExtremes, getElapsedTime, getRequested, getResolution, setProcessingCommenced, shouldInterpolate, shouldSummarise
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpatialMetRequest

public SpatialMetRequest(Interval dateExtremes,
                         Set requestedElements,
                         MetDuration resolution,
                         GeographicalArea area,
                         boolean summarise,
                         boolean interpolate,
                         boolean allOrNothing)
Creates a request for meteorological data from stations in an area.
See Interpretation of dateExtremes in queries in MetRequest for details of how the dateExtremes parameter is interpreted.

Parameters:
dateExtremes - the interval for which data is requested
requestedElements - the set of elements requested
resolution - the temporal resolution. See weatherData.MetDuration for some useful constants.
area - to return data from.
summarise - true if you want data from higher resolutions summarised to the target resolution.
interpolate - true if you want MetBroker to find replacement values for missing data by spatial or temporal interpolation.
allOrNothing - true if you only want MetBroker to return data from stations who record all the specified elements.

SpatialMetRequest

public SpatialMetRequest(Interval dateExtremes,
                         Set requestedElements,
                         MetDuration resolution,
                         GeographicalArea area,
                         boolean summarise,
                         boolean interpolate)
Creates a request for meteorological data from stations in an area.
Returns data from stations recording any of the elements requested. See Interpretation of dateExtremes in queries in MetRequest for details of how the dateExtremes parameter is interpreted.

Parameters:
dateExtremes - the interval for which data is requested
requestedElements - the set of elements requested
resolution - the temporal resolution. See weatherData.MetDuration for some useful constants.
area - to return data from.
summarise - true if you want data from higher resolutions summarised to the target resolution.
interpolate - true if you want MetBroker to find replacement values for missing data by spatial or temporal interpolation.

SpatialMetRequest

public SpatialMetRequest(Interval dateExtremes,
                         Set requestedElements,
                         MetDuration resolution,
                         GeographicalArea area)
Creates a request for meteorological data from stations in an area, allowing summarising but not interpolation.
See Interpretation of dateExtremes in queries in MetRequest for details of how the dateExtremes parameter is interpreted.

Parameters:
dateExtremes - the interval for which data is requested
requestedElements - the set of elements requested
resolution - the temporal resolution. See weatherData.MetDuration for some useful constants.
area - to return data from.
Method Detail

getArea

public GeographicalArea getArea()
Get the geographical area associated with the request return the area in question


toString

public String toString()
Get a string representation of the query parameters

Overrides:
toString in class MetRequest
Returns:
a string in a mixture of English and the default language;

isAllOrNothing

public boolean isAllOrNothing()


Copyright (C) NARC 2001 All Rights Reserved.