Class RETEQueue

    • Constructor Detail

      • RETEQueue

        public RETEQueue​(byte[] matchIndices)
        Constructor. The queue is not usable until it has been bound to a sibling and a continuation node.
        Parameters:
        matchIndices - set of variable indices which should match between the two inputs
      • RETEQueue

        public RETEQueue​(java.util.List<? extends java.lang.Byte> matchIndexList)
        Constructor. The queue is not usable until it has been bound to a sibling and a continuation node.
        Parameters:
        matchIndexList - List of variable indices which should match between the two inputs
    • Method Detail

      • setSibling

        public void setSibling​(RETEQueue sibling)
        Set the sibling for this node.
      • fire

        public void fire​(BindingVector env,
                         boolean isAdd)
        Propagate a token to this node.
        Specified by:
        fire in interface RETESinkNode
        Parameters:
        env - a set of variable bindings for the rule being processed.
        isAdd - distinguishes between add and remove operations.
      • clone

        public RETENode clone​(java.util.Map<RETENode,​RETENode> netCopy,
                              RETERuleContext context)
        Clone this node in the network.
        Specified by:
        clone in interface RETENode
        Parameters:
        context - the new context to which the network is being ported
        netCopy - a map from RETENodes to cloned instance so far.