Class FindAll

java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.compound.FindAll
All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory, PreprocessablePredicateFactory

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.