public final class Once extends AbstractSingleResultPredicate implements PreprocessablePredicateFactory
once(X) - calls the goal represented by a term.
The once(X) goal succeeds if an attempt to satisfy the goal represented by the term X
succeeds. No attempt is made to retry the goal during backtracking - it is only evaluated once.
| Constructor and Description |
|---|
Once() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
evaluate(Term t) |
PredicateFactory |
preprocess(Term term) |
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPredicate, isAlwaysCutOnBacktrack, isRetryableprotected boolean evaluate(Term t)
evaluate in class AbstractSingleResultPredicatepublic PredicateFactory preprocess(Term term)
preprocess in interface PreprocessablePredicateFactoryCopyright © 2024. All rights reserved.