net.agmodel.weatherData
Class StationMetRequest

java.lang.Object
  |
  +--net.agmodel.weatherData.MetRequest
        |
        +--net.agmodel.weatherData.StationMetRequest
All Implemented Interfaces:
Serializable, ServerRequest

public class StationMetRequest
extends MetRequest

Encapsulates the details of a request for meteorological data from a station.
In general, client applications will only use the constructor.
The remaining methods are primarily for MetBroker's internal use.

See Also:
SpatialMetRequest, Serialized Form

Constructor Summary
StationMetRequest(Interval dateExtremes, Set requested, MetDuration resolution, String sourceID, String stationID, boolean summarise, boolean interpolate)
          Creates a request for meteorological data from a station.
 
Method Summary
 String getHostID()
          Deprecated. use getStationID() instead
 String getSourceID()
          Get the ID of the source to be queried.
 String getStationID()
          Get the ID of the station to be queried.
 String toString()
          Get a string representation of the query parameters
 
Methods inherited from class net.agmodel.weatherData.MetRequest
containsMetElement, getDateExtremes, getElapsedTime, getRequested, getResolution, setInterpolate, setProcessingCommenced, setSummarise, shouldInterpolate, shouldSummarise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StationMetRequest

public StationMetRequest(Interval dateExtremes,
                         Set requested,
                         MetDuration resolution,
                         String sourceID,
                         String stationID,
                         boolean summarise,
                         boolean interpolate)
Creates a request for meteorological data from a station.
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
resolution - the temporal resolution. See weatherData.MetDuration for some useful constants.
sourceID - the database to query
stationID - the identifier of the station of interest
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.
Method Detail

getSourceID

public String getSourceID()
Get the ID of the source to be queried.

Returns:
the ID

getHostID

public String getHostID()
Deprecated. use getStationID() instead

Get the ID of the station to be queried.

Returns:
the ID

getStationID

public String getStationID()
Get the ID of the station to be queried.

Returns:
the ID

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;