org.n52.operation.cropmodeling
Class WeatherData

java.lang.Object
  extended by org.n52.operation.cropmodeling.AttributeData
      extended by org.n52.operation.cropmodeling.WeatherData
Direct Known Subclasses:
CGMSWeatherData, ClassicDriessenKonijnWeatherData, GridWeatherData, WageningenWeatherData

public class WeatherData
extends AttributeData

TODO Purpose of

Author:
Willem Nieuwenhuis

Field Summary
protected  double latitude
          WeatherData latitude field
protected  double longitude
          WeatherData longitude field
protected  java.lang.String outputName
          WeatherData outputName field
protected  boolean useRealData
          WeatherData useRealData field
 
Fields inherited from class org.n52.operation.cropmodeling.AttributeData
attributes, name
 
Constructor Summary
WeatherData()
          constructor
 
Method Summary
 DayWeatherData getDayWeatherData(JulianTime time)
          Get day weather data for the date in time.
 double getLatitude()
           
 double getLongitude()
           
 boolean isUseRealData()
           
 void setDayWeatherData(JulianTime time, DayWeatherData newData)
          Set day weather data for the date in time.
 void setLatitude(double latitude)
           
 void setLongitude(double longitude)
           
 void setOutputDataTable(java.lang.String newName)
           
 void setUseRealData(boolean useRealData)
           
 
Methods inherited from class org.n52.operation.cropmodeling.AttributeData
getAttributeData, getAttributes, getIndexedAttribute, setAttributeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

latitude

protected double latitude
WeatherData latitude field


longitude

protected double longitude
WeatherData longitude field


outputName

protected java.lang.String outputName
WeatherData outputName field


useRealData

protected boolean useRealData
WeatherData useRealData field

Constructor Detail

WeatherData

public WeatherData()
constructor

Method Detail

getDayWeatherData

public DayWeatherData getDayWeatherData(JulianTime time)
Get day weather data for the date in time. On each day two data sets are kept: one for the daypart before two o'clock and one for the part after that.

Parameters:
time - the date for which to get the data
Returns:
the day weather date

setDayWeatherData

public void setDayWeatherData(JulianTime time,
                              DayWeatherData newData)
Set day weather data for the date in time. On each day two data sets are kept: one for the daypart before two o'clock and one for the part after that.

Parameters:
time - the date for which to set/replace the data
newData - the (new) data

getLatitude

public double getLatitude()
Returns:
Returns the latitude.

setLatitude

public void setLatitude(double latitude)
Parameters:
latitude - The latitude to set.

getLongitude

public double getLongitude()
Returns:
Returns the longitude.

setLongitude

public void setLongitude(double longitude)
Parameters:
longitude - The longitude to set.

setOutputDataTable

public void setOutputDataTable(java.lang.String newName)
Parameters:
newName -

isUseRealData

public boolean isUseRealData()
Returns:
Returns the useRealData.

setUseRealData

public void setUseRealData(boolean useRealData)
Parameters:
useRealData - The useRealData to set.