de.fho.jump.pirol.utilities.FormulaParsing.Values
Class AttributeValue
java.lang.Object
de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue
de.fho.jump.pirol.utilities.FormulaParsing.Values.AttributeValue
public class AttributeValue
- extends FormulaValue
Class to extract integer or double values (as double) out of the given Feature...
- Version:
- $Rev: 1653 $
- Author:
- Ole Rahn
FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement
| Fields inherited from class de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue |
logger |
|
Method Summary |
double |
getValue(Feature feature)
Gets the value (as a double) of the specified attribute out of the given feature. |
boolean |
isFeatureDependent()
Helps to determine, if the value depends on a feature's attribute value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
attributeName
protected java.lang.String attributeName
attributeIndex
protected int attributeIndex
AttributeValue
public AttributeValue(java.lang.String attributeName)
getValue
public double getValue(Feature feature)
- Gets the value (as a double) of the specified attribute out of the given feature.
- Specified by:
getValue in class FormulaValue
- Parameters:
feature - the Feature we want to get the attribute value from
- Returns:
- value of the specified attribute
isFeatureDependent
public boolean isFeatureDependent()
- Description copied from class:
FormulaValue
- Helps to determine, if the value depends on a feature's attribute value.
- Specified by:
isFeatureDependent in class FormulaValue
- Returns:
- true, if the value depends on a feature
toString
public java.lang.String toString()
- Overrides:
toString in class FormulaValue