ArithmeticRelation
abstract class ArithmeticRelation<E : ExecutionContext>(operator: String) : BinaryRelation.Predicative<E>
Base class for implementing ISO arithmetic comparison predicates (=:=/2, =\=/2, </2, >/2, =</2, >=/2), i.e. BinaryRelation.Predicatives that first evaluate both arguments as arithmetic expressions (via it.unibo.tuprolog.solve.function.evalAsArithmeticExpression, raising an it.unibo.tuprolog.solve.exception.error.InstantiationError if unbound, or a it.unibo.tuprolog.solve.exception.error.TypeError if not evaluable/numeric) before comparing the resulting Numeric values via computeNumeric.
Inheritors
Properties
Link copied to clipboard
Gets this wrapped primitive description Pair formed by signature and wrapped primitive type
Link copied to clipboard
Checked primitive implementation
Functions
Link copied to clipboard
Template method comparing the two already-evaluated Numeric operands.