| org.drools.reteoo.TupleSource org.drools.reteoo.BetaNode org.drools.reteoo.NotNode
NotNode | public class NotNode extends BetaNode (Code) | | NotNode extends BetaNode to perform tests for
the non existence of a Fact plus one or more conditions. Where none existence
is found the left ReteTuple is copied and propgated. Further to this it
maintains the "truth" by cancelling any
Activations that are nolonger
considered true by the assertion of ReteTuple's or FactHandleImpl. 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 .
author: Mark Proctor author: Bob McWhirter |
Method Summary | |
public void | assertObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory) Assert a new FactHandleImpl from the right input. | public void | assertTuple(ReteTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory) Assert a new ReteTuple from the left input. | public void | retractObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory) Retract the FactHandleImpl . | public void | retractTuple(ReteTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory) Retract the
ReteTuple, any resulting proppagated joins are also retracted. | public String | toString() | public void | updateSink(TupleSink sink, PropagationContext context, InternalWorkingMemory workingMemory) |
notAssertObject | static int notAssertObject(Code) | | |
notAssertTuple | static int notAssertTuple(Code) | | |
NotNode | public NotNode(int id, TupleSource leftInput, ObjectSource rightInput)(Code) | | Construct.
Parameters: leftInput - The left input TupleSource . Parameters: rightInput - The right input TupleSource . |
NotNode | public NotNode(int id, TupleSource leftInput, ObjectSource rightInput, BetaConstraints joinNodeBinder)(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 from the right input. If it
matches any left ReteTuple's that already has propagations then those
propagations are retracted.
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 from the left input. It iterates
over the right FactHandleImpl 's if no matches are found
the a copy of the ReteTuple is made and propagated.
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 the FactHandleImpl . If the handle has any
ReteTuple matches then those matches copied are propagated
as new joins.
Parameters: handle - the being retracted Parameters: context - The PropagationContext Parameters: workingMemory - The working memory seesion. throws: AssertionException - |
retractTuple | public void retractTuple(ReteTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)(Code) | | Retract the
ReteTuple, any resulting proppagated joins are also retracted.
Parameters: key - The tuple key. Parameters: context - The PropagationContext Parameters: workingMemory - The working memory seesion. |
|
|