Class TransitiveClosureNodeIndexer

All Implemented Interfaces:
Iterable<Tuple>, Indexer, IterableIndexer, NetworkStructureChangeSensitiveNode, Node

public class TransitiveClosureNodeIndexer extends StandardIndexer implements IterableIndexer
  • Constructor Details

  • Method Details

    • get

      public Collection<Tuple> get(Tuple signature)
      Specified by:
      get in interface Indexer
      Returns:
      all stored tuples that conform to the specified signature, null if there are none such. CONTRACT: do not modify!
    • getBucketCount

      public int getBucketCount()
      Specified by:
      getBucketCount in interface IterableIndexer
      Returns:
      the number of signatures whose tuple group is not empty
    • getSignatures

      public Collection<Tuple> getSignatures()
      Description copied from interface: IterableIndexer
      A view consisting of exactly those signatures whose tuple group is not empty
      Specified by:
      getSignatures in interface IterableIndexer
    • iterator

      public Iterator<Tuple> iterator()
      Specified by:
      iterator in interface Iterable<Tuple>
    • propagate

      public void propagate(Direction direction, Tuple updateElement, boolean change)
      Since:
      2.4
    • getActiveNode

      public Receiver getActiveNode()
      Description copied from interface: Indexer
      This indexer will be updated whenever a Rete update is sent to the active node (or an equivalent time slot allotted to it). The active node is typically the indexer itself, but it can be a different node such as its parent.
      Specified by:
      getActiveNode in interface Indexer
      Returns:
      the active node that operates this indexer