Class UnifyWithOccursCheck
java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.compare.UnifyWithOccursCheck
- All Implemented Interfaces:
KnowledgeBaseConsumer,PredicateFactory
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.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.projog.core.predicate.AbstractSingleResultPredicate
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBaseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.projog.core.predicate.PredicateFactory
isAlwaysCutOnBacktrack
-
Constructor Details
-
UnifyWithOccursCheck
public UnifyWithOccursCheck()
-
-
Method Details
-
evaluate
- Overrides:
evaluatein classAbstractSingleResultPredicate
-
isCyclic
-
isCyclic
-