Class Dif

All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory

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.