Class AlterSpyPoint

  • All Implemented Interfaces:
    KnowledgeBaseConsumer, PredicateFactory

    public final class AlterSpyPoint
    extends AbstractSingleResultPredicate
    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.

    • Field Detail

      • valueToSetSpyPointTo

        private final boolean valueToSetSpyPointTo
    • Constructor Detail

      • AlterSpyPoint

        private AlterSpyPoint​(boolean valueToSetSpyPointTo)
        The valueToSetSpyPointTo parameter specifies whether spy points matched by the evaluate(Term) method should be enabled or disabled.
        Parameters:
        valueToSetSpyPointTo - true to enable spy points, false to disable spy points