Class InequalityFilterNode

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

public class InequalityFilterNode extends FilterNode
This node filters patterns according to equalities and inequalities of elements. The 'subject' element is asserted to be different from the elements given by the inequalityMask.
  • Constructor Details

    • InequalityFilterNode

      public InequalityFilterNode(ReteContainer reteContainer, int subject, TupleMask inequalityMask)
      Parameters:
      reteContainer -
      subject - the index of the element that should be compared.
      inequalityMask - the indices of elements that should be different from the subjectIndex.
  • 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.