Class CopyTerm
- java.lang.Object
-
- org.projog.core.predicate.AbstractSingleResultPredicate
-
- org.projog.core.predicate.builtin.construct.CopyTerm
-
- All Implemented Interfaces:
KnowledgeBaseConsumer,PredicateFactory
public final class CopyTerm extends AbstractSingleResultPredicate
copy_term(X,Y)- makes a copy of a term.copy_term(X,Y)makes a copy ofXand attempts to unify it withY. Any variables in termXwill be replaced with new variables in the copied version of the term.
-
-
Constructor Summary
Constructors Constructor Description CopyTerm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanevaluate(Term arg1, Term arg2)-
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, setKnowledgeBase
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.projog.core.predicate.PredicateFactory
isAlwaysCutOnBacktrack
-
-
-
-
Method Detail
-
evaluate
protected boolean evaluate(Term arg1, Term arg2)
- Overrides:
evaluatein classAbstractSingleResultPredicate
-
-