public final class Dif extends AbstractSingleResultPredicate
dif(X,Y)
- enforces restriction that the two given terms are never equal.
If X
and Y
cannot unify then the goal succeeds. If X
and Y
are
equal then the goal fails. If X
and Y
could unify then a restriction is added to prevent
X
and Y
from unifying in the future.
Constructor and Description |
---|
Dif() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Term arg1,
Term arg2) |
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAlwaysCutOnBacktrack
public boolean evaluate(Term arg1, Term arg2)
evaluate
in class AbstractSingleResultPredicate
Copyright © 2024. All rights reserved.