Class PowerOfOperation


public class PowerOfOperation extends GenericOperation
Class to handle Math.pow() like operations. The result is a value that equals Math.pow(value1, value2).
Version:
$Rev$
Author:
Ole Rahn

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

    • PowerOfOperation

      public PowerOfOperation(FormulaValue value1, FormulaValue value2)
      Parameters:
      value1 - first FormulaValue of the power operation
      value2 - second FormulaValue of the power operation
  • Method Details

    • getValue

      public double getValue(Feature feature)
      Description copied from class: FormulaValue
      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...
      Specified by:
      getValue in class FormulaValue
      Parameters:
      feature - feature to process
      Returns:
      Math.pow(value1, value2)
    • toString

      public String toString()
      Overrides:
      toString in class GenericOperation