Class Limit

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

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.