| org.drools.reteoo.TupleSource org.drools.reteoo.BetaNode org.drools.reteoo.JoinNode
JoinNode | public class JoinNode extends BetaNode (Code) | | JoinNode extends BetaNode to perform
ReteTuple and FactHandle joins. Tuples are
considered to be asserted from the left input and facts from the right input.
The BetaNode provides the BetaMemory to store assserted
ReteTuples and
FactHandleImpls. Each fact handle is stored in the right memory as a key in a HashMap , the value is an ObjectMatches
instance which maintains a LinkedList of TuplesMatches - The tuples that are matched with the handle. the left memory is a LinkedList
of ReteTuples which maintains a HashMa , where the keys are the matching FactHandleImpl s and the value is
populated TupleMatche es, the keys are matched fact handles. TupleMatch maintains a List of resulting joins,
where there is joined ReteTuple per TupleSink .
The BetaNode provides
the BetaMemory which stores the
See Also: BetaNode See Also: ObjectMatches See Also: TupleMatch See Also: TupleSink author: Mark Proctor author: Bob McWhirter |
Method Summary | |
public void | assertObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory) Assert a new FactHandleImpl . | public void | assertTuple(ReteTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory) Assert a new ReteTuple . | public void | retractObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory) Retract a FactHandleImpl. | public void | retractTuple(ReteTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory) Retract a ReteTuple . | public String | toString() | public void | updateSink(TupleSink sink, PropagationContext context, InternalWorkingMemory workingMemory) |
JoinNode | public JoinNode(int id, TupleSource leftInput, ObjectSource rightInput)(Code) | | Construct.
Parameters: leftInput - The left input TupleSource . Parameters: rightInput - The right input TupleSource . |
assertObject | public void assertObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory)(Code) | | Assert a new FactHandleImpl . The left input of
ReteTuple s is iterated and joins attemped, via the
binder, any successful bindings results in joined tuples being created
and propaged. there is a joined tuple per TupleSink.
See Also: ReteTuple See Also: ObjectMatches See Also: TupleSink See Also: TupleMatch Parameters: handle - The FactHandleImpl being asserted. Parameters: context - The PropagationContext Parameters: workingMemory - The working memory seesion. |
assertTuple | public void assertTuple(ReteTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)(Code) | | Assert a new ReteTuple . The right input of
FactHandleInput 's is iterated and joins attemped, via the
binder, any successful bindings results in joined tuples being created
and propaged. there is a joined tuple per TupleSink.
See Also: ReteTuple See Also: ObjectMatches See Also: TupleSink See Also: TupleMatch Parameters: tuple - The Tuple being asserted. Parameters: context - The PropagationContext Parameters: workingMemory - The working memory seesion. |
retractObject | public void retractObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory)(Code) | | Retract a FactHandleImpl. Iterates the referenced TupleMatches stored in
the handle's ObjectMatches retracting joined tuples.
Parameters: handle - the being retracted Parameters: context - The PropagationContext Parameters: workingMemory - The working memory seesion. |
retractTuple | public void retractTuple(ReteTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)(Code) | | Retract a ReteTuple . Iterates the referenced
TupleMatche 's stored in the tuples Map
retracting all joined tuples.
Parameters: key - The tuple key. Parameters: context - The PropagationContext Parameters: workingMemory - The working memory seesion. |
|
|