|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.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.
| 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. Called by MetBroker just before it returns the query results. Normally client applications would use StationDataSet.getServerProcessingTime(). |
MetElement[] |
getRequested()
Gets all the meteorological elements requested. |
MetDuration |
getResolution()
Gets the requested resolution for the result of the query. |
void |
setProcessingCommenced()
Sets the time that processing commenced using a timing source like System.currentTimeMillis() Called by MetBroker when it receives a query. Normally client applications would not use this. |
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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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()
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||