public final class Limit extends AbstractPredicateFactory implements PreprocessablePredicateFactory
limit(N, X) - calls the goal represented by a term a maximum number of times.
Evaluates the goal represented by X for a maximum of N attempts.
| Constructor and Description |
|---|
Limit() |
| Modifier and Type | Method and Description |
|---|---|
Predicate |
getPredicate(Term maxAttempts,
Term goal) |
PredicateFactory |
preprocess(Term term) |
getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicate, getPredicate, getPredicate, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPredicate, isAlwaysCutOnBacktrack, isRetryablepublic Predicate getPredicate(Term maxAttempts, Term goal)
getPredicate in class AbstractPredicateFactorypublic PredicateFactory preprocess(Term term)
preprocess in interface PreprocessablePredicateFactoryCopyright © 2024. All rights reserved.