Class ValueBinderFilterNode

All Implemented Interfaces:
NetworkStructureChangeSensitiveNode, Node, Receiver, Supplier, Tunnel

public class ValueBinderFilterNode extends FilterNode
A filter node that keeps only those tuples that contain a certain value at a certain position.
  • Constructor Details

    • ValueBinderFilterNode

      public ValueBinderFilterNode(ReteContainer reteContainer, int bindingIndex, Object bindingValue)
      Parameters:
      reteContainer -
      bindingIndex - the position in the tuple that should be bound
      bindingValue - the value to which the tuple has to be bound
  • Method Details

    • check

      public boolean check(Tuple ps)
      Description copied from class: FilterNode
      Abstract filtering predicate. Expected to be stateless.
      Specified by:
      check in class FilterNode
      Parameters:
      ps - the matching to be checked.
      Returns:
      true if and only if the parameter matching is allowed to pass through this node.