|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.agmodel.metsoap.MetRequest
An abstract request for a set of meteorological data over a particular time period
Concrete descendants specify where the data is to come from.
Conforms to the JavaBean pattern to ensure easy SOAP serialization
Copyright (c)2002 National Agricultural Research Center
| Constructor Summary | |
MetRequest()
|
|
| Method Summary | |
TimeInterval |
getInterval()
|
String |
getLanguage()
|
float |
getMissingValueIndicator()
|
int[] |
getRequestedElements()
|
int |
getResolution()
|
boolean |
isSummarisingAllowed()
|
void |
setInterval(TimeInterval aTimeInterval)
Specifies the interval for which data is required |
void |
setLanguage(String aLanguage)
Specifies the preferred national language to be used for any text in the result. Examples of such text include the names of meteorological elements and weather station names Use the ISO639 standard 2-letter language codes eg from this list. At present MetBroker supports en - English ja - Japanese ko - Korean no - Norwegian th - Thai zh - Chinese to varying degrees. |
void |
setMissingValueIndicator(float indicator)
Set the value that MetBroker will use to indicate missing values. |
void |
setRequestedElements(int[] metElements)
Specifies the meteorological elements to retrieve. |
void |
setResolution(int aResolution)
Specify the data resolution required Valid values are: 0 - subhourly 1 - hourly 2 - daily 3 - monthly These values correspond to the ordinal values of the MetResolution constants in MetBroker. Note that the actual resolution returned in the subhourly case depends on the database in question. |
void |
setSummarisingAllowed(boolean yesOrNo)
Controls whether MetBroker can summarise shorter resolution data to fulfill your request. MetBroker can automatically summarise, for example, hourly data into daily values if you request daily data and only hourly is available from a station. This switch lets you control whether MetBroker carries out such summaries. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MetRequest()
| Method Detail |
public void setInterval(TimeInterval aTimeInterval)
aTimeInterval - the period of time, which must have both start and end specifiedpublic TimeInterval getInterval()
public void setResolution(int aResolution)
aResolution - a code representing the required data resolutionpublic int getResolution()
public void setSummarisingAllowed(boolean yesOrNo)
yesOrNo - whether or not to allow summarizingpublic boolean isSummarisingAllowed()
public void setRequestedElements(int[] metElements)
metElements - an array of the above codespublic int[] getRequestedElements()
public void setLanguage(String aLanguage)
the - preferred languagepublic String getLanguage()
public void setMissingValueIndicator(float indicator)
indicator - public float getMissingValueIndicator()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||