Class UnifyWithOccursCheck

java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.compare.UnifyWithOccursCheck
All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory

public final class UnifyWithOccursCheck extends AbstractSingleResultPredicate
unify_with_occurs_check(X, Y) - an equality test using sound unification.

Works like X = Y but with an additional check to avoid cyclic terms. When using unify_with_occurs_check a variable can only be unified with a term if that term does not contain the variable.