Class PowerOfOperation
java.lang.Object
de.fho.jump.pirol.utilities.FormulaParsing.FormulaValue
de.fho.jump.pirol.utilities.FormulaParsing.Operations.GenericOperation
de.fho.jump.pirol.utilities.FormulaParsing.Operations.PowerOfOperation
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
-
Field Summary
Fields inherited from class GenericOperation
opString, value1, value2Fields inherited from class FormulaValue
logger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class GenericOperation
isFeatureDependent
-
Constructor Details
-
PowerOfOperation
- Parameters:
value1- first FormulaValue of the power operationvalue2- second FormulaValue of the power operation
-
-
Method Details
-
getValue
Description copied from class:FormulaValueReturns 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:
getValuein classFormulaValue- Parameters:
feature- feature to process- Returns:
- Math.pow(value1, value2)
-
toString
- Overrides:
toStringin classGenericOperation
-