Class AddUserDefinedArithmeticOperator.UserDefinedArithmeticOperator
java.lang.Object
org.projog.core.predicate.builtin.kb.AddUserDefinedArithmeticOperator.UserDefinedArithmeticOperator
- All Implemented Interfaces:
ArithmeticOperator
- Enclosing class:
AddUserDefinedArithmeticOperator
private static final class AddUserDefinedArithmeticOperator.UserDefinedArithmeticOperator
extends Object
implements ArithmeticOperator
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final PredicateKey(package private) final int(package private) final PredicateFactory -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
numArgs
final int numArgs -
key
-
pf
-
-
Constructor Details
-
UserDefinedArithmeticOperator
UserDefinedArithmeticOperator(Predicates p, PredicateKey originalKey)
-
-
Method Details
-
calculate
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
-
createArgumentsIncludingResult
-