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, setKnowledgeBase
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPredicate, isAlwaysCutOnBacktrack, isRetryable
public Predicate getPredicate(Term maxAttempts, Term goal)
getPredicate
in class AbstractPredicateFactory
public PredicateFactory preprocess(Term term)
preprocess
in interface PreprocessablePredicateFactory
Copyright © 2024. All rights reserved.