Class RETEQueue
- java.lang.Object
-
- org.apache.jena.reasoner.rulesys.impl.RETEQueue
-
- All Implemented Interfaces:
RETENode
,RETESinkNode
,RETESourceNode
public class RETEQueue extends java.lang.Object implements RETESinkNode, RETESourceNode
Represents one input left of a join node. The queue points to a sibling queue representing the other leg which should be joined against.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RETENode
clone(java.util.Map<RETENode,RETENode> netCopy, RETERuleContext context)
Clone this node in the network.void
fire(BindingVector env, boolean isAdd)
Propagate a token to this node.void
setContinuation(RETESinkNode continuation)
Set the continuation node for this node (and any sibling)void
setSibling(RETEQueue sibling)
Set the sibling for this node.
-
-
-
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.
-
setContinuation
public void setContinuation(RETESinkNode continuation)
Set the continuation node for this node (and any sibling)- Specified by:
setContinuation
in interfaceRETESourceNode
-
fire
public void fire(BindingVector env, boolean isAdd)
Propagate a token to this node.- Specified by:
fire
in interfaceRETESinkNode
- 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.
-
-