Class FormulaValue

java.lang.Object
de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue
Direct Known Subclasses:
AcosOperation, AsinOperation, AtnaOperation, AttributeValue, ConstantValue, CosOperation, ExpOperation, GenericOperation, Log10Operation, LogarithmOperation, PiValue, SinOperation, SquareRootOperation, TanOperation, ToDegreesOperation, ToRadiansOperation

public abstract class FormulaValue extends Object
Base class for each sub-formula or value of a formula, since we don't want to parse the formula again and again for each value...
Version:
$Rev$
Author:
Ole Rahn

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

  • Constructor Details

    • FormulaValue

      public FormulaValue()
  • Method Details

    • getValue

      public abstract double getValue(Feature feature)
      Returns the value (as a double) of this part of the formula. It may be the result of a sub-formula, a feature-specific attribute value or just a constant value... Since the value may depend on a feature, we give the feature to the method to get a unified interface...
      Returns:
      value of this part of the formula
    • isFeatureDependent

      public abstract boolean isFeatureDependent()
      Helps to determine, if the value depends on a feature's attribute value.
      Returns:
      true, if the value depends on a feature
    • toString

      public String toString()
      Overrides:
      toString in class Object