net.agmodel.metsoap
Class DataStore

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

public class DataStore
extends Object

Contains a named float array of data.
Intended to be part of an ElementData container.
Conforms to the JavaBean pattern to ensure easy SOAP serialization
Copyright (c)2002 National Agricultural Research Center

See Also:
ElementData

Constructor Summary
DataStore()
           
 
Method Summary
 float[] getContents()
          Gets the numeric contents of the store.
 String getStoreID()
          Gets a national language-independent identifier for the store, suitable for use in coding.
 String getStoreName()
          Gets a the name of the store in a form suitable for display to an end-user in their own language.
 void setContents(float[] newData)
          Sets the numeric contents of the store.
 void setStoreID(String aStoreID)
          Sets a national language-independent identifier for the store, suitable for use in coding.
 void setStoreName(String newLabel)
          Sets the name of the store to a national language specific value suitable for display to a user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataStore

public DataStore()
Method Detail

setContents

public void setContents(float[] newData)
Sets the numeric contents of the store.
Parameters:
newData - the new contents

getContents

public float[] getContents()
Gets the numeric contents of the store.

getStoreID

public String getStoreID()
Gets a national language-independent identifier for the store, suitable for use in coding.
The ID depends on the kind of element data stored in the parent ElementData class:
element:rainfall, value:"total"
element:air and water temperatures, values:"average","maximum", or "minimum"
element:soil temperature, values:"n cm" where n is the depth in centimeters eg "10 cm" or "100 cm"
element:wind, values:"speed" or "direction"
element:humidity, value:"humidity","wet bulb" or "dry bulb"
element:solar radiation, value:"global","net","direct","diffuse"
element:leaf wetness, value:"standard","canopy" and others impossible to guess!
element:sunshine, value:"total"
Returns:
an element-dependent, language-independent identifier for the store.

setStoreID

public void setStoreID(String aStoreID)
Sets a national language-independent identifier for the store, suitable for use in coding.
The values typically correspond to types in net.agmodel.physical.SummaryKind.
Parameters:
aStoreID - "average","total","maximum","minimum", or "sample"

setStoreName

public void setStoreName(String newLabel)
Sets the name of the store to a national language specific value suitable for display to a user.
Parameters:
newData - the new contents

getStoreName

public String getStoreName()
Gets a the name of the store in a form suitable for display to an end-user in their own language.
Parameters:
newData - the new contents