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