|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.agmodel.weatherData.MetRequest
Classes descending from MetRequest encapsulate all the details required in a request for meteorological data.
MetRequest is an abstract class which manages attributes which are common to all requests.
Descendant objects differ mainly in how they specify where the data is to come from.
StationMetRequest requests data from a specified station.
SpatialMetRequest requests data from all stations within an area.
| Constructor Summary | |
protected |
MetRequest(Interval dateExtremes,
Set requestedElements)
Creates a request object for daily data allowing summarising but not interpolation |
protected |
MetRequest(Interval dateExtremes,
Set requestedElements,
MetDuration resolution)
Creates a request object allowing summarising but not interpolation |
protected |
MetRequest(Interval dateExtremes,
Set requestedElements,
MetDuration resolution,
boolean summarise,
boolean interpolate)
Creates a request object |
| Method Summary | |
boolean |
containsMetElement(MetElement aMetElement)
Indicates whether a meteorological element is included in a request |
Interval |
getDateExtremes()
Gets the interval for which data is requested. |
Duration |
getElapsedTime()
Returns the elapsed time since the last call to setProcessingCommenced. |
MetElement[] |
getRequested()
Gets all the meteorological elements requested. |
MetDuration |
getResolution()
Gets the requested resolution for the result of the query. |
protected void |
setInterpolate(boolean interpolate)
Sets whether the query requests interpolation. |
void |
setProcessingCommenced()
Sets the time that processing commenced using a timing source like System.currentTimeMillis() Called by MetBroker when it receives a query. |
protected void |
setSummarise(boolean summarise)
Sets whether the query requests summarisation. |
boolean |
shouldInterpolate()
Gets whether the query requests interpolation. |
boolean |
shouldSummarise()
Gets whether the query requests summarisation. |
String |
toString()
Get a string representation of the query parameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected MetRequest(Interval dateExtremes,
Set requestedElements,
MetDuration resolution,
boolean summarise,
boolean interpolate)
dateExtremes - the interval for which data is requested (see note in class description)requestedElements - the set of elements requestedresolution - the temporal resolution. See weatherData.MetDuration for some useful constants.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.
protected MetRequest(Interval dateExtremes,
Set requestedElements,
MetDuration resolution)
dateExtremes - the interval for which data is requested (see note in class description)requestedElements - the set of elements requestedresolution - the temporal resolution. See weatherData.MetDuration for some useful constants.
protected MetRequest(Interval dateExtremes,
Set requestedElements)
dateExtremes - the interval for which data is requested (see note in class description)requestedElements - the set of elements requested| Method Detail |
public boolean containsMetElement(MetElement aMetElement)
aMetElement - the element of interest
public Interval getDateExtremes()
public MetElement[] getRequested()
public MetDuration getResolution()
public void setProcessingCommenced()
public Duration getElapsedTime()
StationDataSet.getServerProcessingTime().
public boolean shouldSummarise()
public boolean shouldInterpolate()
protected void setSummarise(boolean summarise)
summarise - true to request that data be summarised, false otherwise.protected void setInterpolate(boolean interpolate)
interpolate - true to request that data be interpolated, false otherwise.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||