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$
Author:
Ole Rahn

FH Osnabrück - University of Applied Sciences Osnabrück,
Project: PIROL (2005),
Subproject: Daten- und Wissensmanagement
  • Field Details

    • attributeName

      protected String attributeName
    • attributeIndex

      protected int attributeIndex
  • Constructor Details

    • AttributeValue

      public AttributeValue(String attributeName)
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class FormulaValue