|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.operation.cropmodeling.AttributeData
public abstract class AttributeData
The class is a base class for weatherdata and cropdata. Its purpose is to store all attributes that belong to another attributes e.g. the attribute day has temperature, percipatation etc.
Field Summary | |
---|---|
protected java.util.Hashtable |
attributes
AttributeData attributes field contains all attributes and their values |
protected java.lang.String |
name
AttributeData name field |
Constructor Summary | |
---|---|
protected |
AttributeData()
construct / initialize |
Method Summary | |
---|---|
double |
getAttributeData(java.lang.String attributeName)
get the value of the attribute with name attributeName |
protected java.lang.String[] |
getAttributes(java.io.BufferedReader reader)
|
double |
getIndexedAttribute(java.lang.String attributeName,
int index)
|
void |
setAttributeData(java.lang.String attributeName,
double attributeValue)
set the (new) value for the attribute with name attributeName to attributeValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected java.util.Hashtable attributes
Constructor Detail |
---|
protected AttributeData()
Method Detail |
---|
public double getAttributeData(java.lang.String attributeName)
attributeName
- the name of the attribute
public void setAttributeData(java.lang.String attributeName, double attributeValue)
attributeName
- the attribute nameattributeValue
- the (new) valuepublic double getIndexedAttribute(java.lang.String attributeName, int index)
attributeName
- index
-
protected java.lang.String[] getAttributes(java.io.BufferedReader reader)
reader
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |