Class Once

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

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.