Class Listing
- java.lang.Object
-
- org.projog.core.predicate.AbstractSingleResultPredicate
-
- org.projog.core.predicate.builtin.kb.Listing
-
- All Implemented Interfaces:
KnowledgeBaseConsumer,PredicateFactory
public final class Listing extends AbstractSingleResultPredicate
listing(X)- outputs current clauses.listing(X)allows you to inspect the clauses you currently have loaded. Causes all clauses withXas the predicate name to be written to the current output stream.
-
-
Constructor Summary
Constructors Constructor Description Listing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanevaluate(Term arg)private java.util.Iterator<ClauseModel>getClauses(PredicateKey key)private voidlistClause(ClauseModel clauseModel)private voidlistClauses(PredicateKey key)-
Methods inherited from class org.projog.core.predicate.AbstractSingleResultPredicate
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.projog.core.predicate.PredicateFactory
isAlwaysCutOnBacktrack
-
-
-
-
Method Detail
-
evaluate
protected boolean evaluate(Term arg)
- Overrides:
evaluatein classAbstractSingleResultPredicate
-
listClauses
private void listClauses(PredicateKey key)
-
getClauses
private java.util.Iterator<ClauseModel> getClauses(PredicateKey key)
-
listClause
private void listClause(ClauseModel clauseModel)
-
-