Class NumberVars
java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.construct.NumberVars
- All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory
numbervars(Term,Start,End) - unifies free variables of a term.
Unifies the free variables in Term with a structure of the form $VAR(N) where
N is the number of the variable. Numbering of the variables starts with the numeric value represented by
Start. End is unified with the number that would of been given to the next variable.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractSingleResultPredicate
evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBaseMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PredicateFactory
isAlwaysCutOnBacktrack, preprocess
-
Constructor Details
-
NumberVars
public NumberVars()
-
-
Method Details
-
evaluate
- Overrides:
evaluatein classAbstractSingleResultPredicate
-
evaluate
- Overrides:
evaluatein classAbstractSingleResultPredicate
-