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 Details

  • Constructor Details

  • Method Details

    • calculate

      public Numeric calculate(Term[] args)
      Description copied from interface: ArithmeticOperator
      Returns the result of the calculation using the specified arguments.
      Specified by:
      calculate in interface ArithmeticOperator
      Parameters:
      args - the arguments to use in the calculation
      Returns:
      the result of the calculation using the specified arguments
    • createArgumentsIncludingResult

      private Term[] createArgumentsIncludingResult(Term[] args, Variable result)