Class CountingListener<V>

java.lang.Object
tools.refinery.interpreter.rete.itc.alg.incscc.CountingListener<V>
All Implemented Interfaces:
ITcObserver<V>

public class CountingListener<V> extends Object implements ITcObserver<V>
  • Constructor Details

    • CountingListener

      public CountingListener(IncSCCAlg<V> alg)
  • Method Details

    • tupleInserted

      public void tupleInserted(V source, V target)
      Description copied from interface: ITcObserver
      Used to notify when a tuple is inserted into the transitive closure relation.
      Specified by:
      tupleInserted in interface ITcObserver<V>
      Parameters:
      source - the source of the tuple
      target - the target of the tuple
    • tupleDeleted

      public void tupleDeleted(V source, V target)
      Description copied from interface: ITcObserver
      Used to notify when a tuple is deleted from the transitive closure relation.
      Specified by:
      tupleDeleted in interface ITcObserver<V>
      Parameters:
      source - the source of the tuple
      target - the target of the tuple