Class AlterSpyPoint
java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.debug.AlterSpyPoint
- All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory
spy(X) / nospy(X) - add or remove a spy point for a predicate.
spy(X) - add a spy point for a predicate. By adding a spy point for the predicate name instantiated to
X the programmer will be informed how it is used in the resolution of a goal.
nospy(X) - removes a spy point for a predicate. By removing a spy point for the predicate name
instantiated to X the programmer will no longer be informed how it is used in the resolution of a goal.
-
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic AlterSpyPointnoSpy()static AlterSpyPointspy()Methods inherited from class AbstractSingleResultPredicate
evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBaseMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PredicateFactory
isAlwaysCutOnBacktrack, preprocess
-
Method Details
-
spy
-
noSpy
-
evaluate
- Overrides:
evaluatein classAbstractSingleResultPredicate
-