public class AttributeValue extends FormulaValue
| Modifier and Type | Field and Description |
|---|---|
protected int |
attributeIndex |
protected java.lang.String |
attributeName |
logger| Constructor and Description |
|---|
AttributeValue(java.lang.String attributeName) |
| Modifier and Type | Method and Description |
|---|---|
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() |
protected java.lang.String attributeName
protected int attributeIndex
public double getValue(Feature feature)
getValue in class FormulaValuefeature - the Feature we want to get the attribute value frompublic boolean isFeatureDependent()
FormulaValueisFeatureDependent in class FormulaValuepublic java.lang.String toString()
toString in class FormulaValue