|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.agmodel.physical.DataSetImpl
|
+--net.agmodel.weatherData.StationDataSetImpl
Encapsulates a set of met data from a single station for a given period, resolution
| Field Summary | |
protected String |
metSourceID
|
protected Duration |
serverProcessingTime
|
protected WeatherStation |
station
|
| Fields inherited from class net.agmodel.physical.DataSetImpl |
interval, resolution, sequences |
| Constructor Summary | |
StationDataSetImpl(String metSourceID,
WeatherStation station,
Interval interval,
Duration resolution)
Creates a data set without any data in it. |
|
| Method Summary | |
void |
addSequence(MetSequence sequenceToAdd)
Adds a weather data sequence into the data set. |
String |
getDSSAT(File outputDirectory,
String instituteCode,
String siteCode,
TimeZone tz,
String needDailyData,
String noData)
Writes the data into DSSAT v3.5 format weather data files. |
String |
getICASA(String instituteCode,
String siteCode,
TimeZone tz,
String needDailyData,
String noData)
Gets a string containing ICASA format data. |
protected String |
getICASAID()
|
String |
getMetSourceID()
Gets the identifier of the metsource that the data came from. |
MetSequence |
getSequence(MetElement element)
Gets the data, if it exists, for a particular weather element. |
protected Sequence[] |
getSequenceArray()
Overides DataSetImpl getSequenceArray to list columns in same order as MetElements |
Duration |
getServerProcessingTime()
Get the elapsed time taken by MetBroker and various databases to handle the request.\ This lumps together MetBroker's processing time (usually minimal), query processing on data sources (variable) and transmission time of data from the data source to MetBroker (often the slowest step). |
WeatherStation |
getWeatherStation()
Get the details of the weather station that the data comes from |
protected static String |
leftPad(String input,
int desiredLength)
|
protected static String |
leftPad(String padchar,
String input,
int desiredLength)
|
void |
setProcessingTime(Duration processingTime)
Used by MetBroker to record the duration of processing time |
| Methods inherited from class net.agmodel.physical.DataSetImpl |
addSequence, dumpDuration, getInterval, getNumberOfRows, getNumberOfSequences, getResolution, getSequence, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.agmodel.physical.DataSet |
dumpDuration, getInterval, getNumberOfRows, getNumberOfSequences, getResolution, getSequence |
| Field Detail |
protected String metSourceID
protected WeatherStation station
protected Duration serverProcessingTime
| Constructor Detail |
public StationDataSetImpl(String metSourceID,
WeatherStation station,
Interval interval,
Duration resolution)
metSourceID - the identifier assigned to the met source by MetBrokerstation - the basic station details| Method Detail |
public void addSequence(MetSequence sequenceToAdd)
public MetSequence getSequence(MetElement element)
getSequence in interface StationDataSetelement - the weather element of interest.
public void setProcessingTime(Duration processingTime)
public Duration getServerProcessingTime()
StationDataSet
getServerProcessingTime in interface StationDataSetpublic WeatherStation getWeatherStation()
StationDataSet
getWeatherStation in interface StationDataSetpublic String getMetSourceID()
getMetSourceID in interface StationDataSetprotected Sequence[] getSequenceArray()
getSequenceArray in class DataSetImplprotected String getICASAID()
protected static String leftPad(String padchar,
String input,
int desiredLength)
protected static String leftPad(String input,
int desiredLength)
public String getICASA(String instituteCode,
String siteCode,
TimeZone tz,
String needDailyData,
String noData)
throws SecurityException
StationDataSet
getICASA in interface StationDataSetinstituteCode - a two letter institute codesiteCode - a two letter site code, allocated by the institute to the sitetz - the timezone for the output dates and timesneedDailyData - a string explaining that daily data is needednoData - a string to display if no data is available
SecurityException
public String getDSSAT(File outputDirectory,
String instituteCode,
String siteCode,
TimeZone tz,
String needDailyData,
String noData)
throws IOException
StationDataSet
getDSSAT in interface StationDataSetoutputDirectory - the directory in which to write output filesinstituteCode - a two letter institute codesiteCode - a two letter site code, allocated by the institute to the sitetz - the timezone for the output dates and timesneedDailyData - a string explaining that daily data is needednoData - a string to display if no data is available
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||