de.fho.jump.pirol.utilities.FormulaParsing.Operations
Class PowerOfOperation

java.lang.Object
  extended by de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue
      extended by de.fho.jump.pirol.utilities.FormulaParsing.Operations.GenericOperation
          extended by de.fho.jump.pirol.utilities.FormulaParsing.Operations.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: 856 $
Author:
Ole Rahn

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

Field Summary
 
Fields inherited from class de.fho.jump.pirol.utilities.FormulaParsing.Operations.GenericOperation
opString, value1, value2
 
Fields inherited from class de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue
logger
 
Constructor Summary
PowerOfOperation(FormulaValue value1, FormulaValue value2)
           
 
Method Summary
 double getValue(Feature feature)
          Returns the value (as a double) of this part of the formula.
 java.lang.String toString()
           
 
Methods inherited from class de.fho.jump.pirol.utilities.FormulaParsing.Operations.GenericOperation
isFeatureDependent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PowerOfOperation

public PowerOfOperation(FormulaValue value1,
                        FormulaValue value2)
Parameters:
value1 -
value2 -
Method Detail

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 rsult 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 -
Returns:
Math.pow(value1, value2)

toString

public java.lang.String toString()
Overrides:
toString in class GenericOperation