Class SpyPoints
java.lang.Object
org.projog.core.event.SpyPoints
Collection of spy points.
Spy points are useful in the debugging of Prolog programs. When a spy point is set on a predicate a
SpyPoints.SpyPointEvent is generated every time the predicate is executed, fails or succeeds.
Each KnowledgeBase has a single unique SpyPoints instance.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclass -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KnowledgeBaseprivate final Objectprivate final ProjogListenersprivate final Map<PredicateKey, SpyPoints.SpyPoint> private final TermFormatterprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate SpyPoints.SpyPointgetSpyPoint(PredicateKey key) voidsetSpyPoint(PredicateKey key, boolean set) voidsetTraceEnabled(boolean traceEnabled)
-
Field Details
-
lock
-
spyPoints
-
kb
-
projogListeners
-
termFormatter
-
traceEnabled
private boolean traceEnabled
-
-
Constructor Details
-
SpyPoints
-
SpyPoints
-
-
Method Details
-
setTraceEnabled
public void setTraceEnabled(boolean traceEnabled) -
setSpyPoint
-
getSpyPoint
-
createNewSpyPoint
-
getSpyPoints
-