Package org.projog.core.math
Class AbstractArithmeticOperator.PreprocessedUnaryOperator
- java.lang.Object
-
- org.projog.core.math.AbstractArithmeticOperator.PreprocessedUnaryOperator
-
- All Implemented Interfaces:
ArithmeticOperator
- Enclosing class:
- AbstractArithmeticOperator
private final class AbstractArithmeticOperator.PreprocessedUnaryOperator extends java.lang.Object implements ArithmeticOperator
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ArithmeticOperatoro
-
Constructor Summary
Constructors Constructor Description PreprocessedUnaryOperator(ArithmeticOperator o)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Numericcalculate(Term[] args)Returns the result of the calculation using the specified arguments.
-
-
-
Field Detail
-
o
final ArithmeticOperator o
-
-
Constructor Detail
-
PreprocessedUnaryOperator
PreprocessedUnaryOperator(ArithmeticOperator o)
-
-
Method Detail
-
calculate
public Numeric calculate(Term[] args)
Description copied from interface:ArithmeticOperatorReturns the result of the calculation using the specified arguments.- Specified by:
calculatein interfaceArithmeticOperator- Parameters:
args- the arguments to use in the calculation- Returns:
- the result of the calculation using the specified arguments
-
-