net.agmodel.metsoap
Class ElementData

java.lang.Object
  |
  +--net.agmodel.metsoap.ElementData

public class ElementData
extends Object

A collection of time series related to a particular meteorological element (eg temperature).
May contain several data stores (eg maximum and minimum daily temperature, or soil temperatures at several depths)
Designed to be part of a StationData result.
Conforms to the JavaBean pattern to ensure easy serialization
Copyright (c)2002 National Agricultural Research Center

See Also:
StationData

Constructor Summary
ElementData()
           
 
Method Summary
 DataStore[] getData()
          Gets a reference to the array of data stores in the container.
 String getElementID()
          Retrieves a national language-independent identifier for the meteorological element.
 String getElementName()
          Retrieves the national language name for the meteorological element.
 TimeInterval getInterval()
          Gets the period (starting date and ending date) that the data in the store covers.
 void setData(DataStore[] newData)
          Puts an array of data stores into the container.
 void setElementID(String newElementID)
          Specifies a national language-independent identifier for the meteorological element.
 void setElementName(String newElementName)
          Specifies the national language name for the meteorological element.
 void setInterval(TimeInterval newInterval)
          Specifies the period (starting date and ending date) that the data in the store covers.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementData

public ElementData()
Method Detail

setInterval

public void setInterval(TimeInterval newInterval)
Specifies the period (starting date and ending date) that the data in the store covers.
Parameters:
newInterval - the period of time, with a start and an end specified

getInterval

public TimeInterval getInterval()
Gets the period (starting date and ending date) that the data in the store covers.
Returns:
a period of time with a start and end

setData

public void setData(DataStore[] newData)
Puts an array of data stores into the container.
Parameters:
newData - the numeric contents

getData

public DataStore[] getData()
Gets a reference to the array of data stores in the container.
Returns:
the numeric contents

setElementName

public void setElementName(String newElementName)
Specifies the national language name for the meteorological element.
Parameters:
newElementName - the name (in Unicode)

getElementName

public String getElementName()
Retrieves the national language name for the meteorological element.
Returns:
the name (in Unicode)

setElementID

public void setElementID(String newElementID)
Specifies a national language-independent identifier for the meteorological element.
Parameters:
newElementID - "air temperature","rain","wind","radiation","humidity","soil temperature","water temperature","leaf wetness" or "bright sunlight"

getElementID

public String getElementID()
Retrieves a national language-independent identifier for the meteorological element.
Returns:
one of "air temperature","rain","wind","radiation","humidity","soil temperature","water temperature","leaf wetness" or "bright sunlight"