public final class FindAll extends AbstractSingleResultPredicate implements PreprocessablePredicateFactory
findall(X,P,L)
- find all solutions that satisfy the goal.
findall(X,P,L)
produces a list (L
) of X
for each possible solution of the goal
P
. Succeeds with L
unified to an empty list if P
has no solutions.
Constructor and Description |
---|
FindAll() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluate(Term template,
Term goal,
Term output) |
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 template, Term goal, Term output)
evaluate
in class AbstractSingleResultPredicate
public PredicateFactory preprocess(Term term)
preprocess
in interface PreprocessablePredicateFactory
Copyright © 2024. All rights reserved.