|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.common.BaseNode org.drools.reteoo.ObjectSource org.drools.reteoo.RightInputAdapterNode
public class RightInputAdapterNode
When joining a subnetwork into the main network again, RightInputAdapterNode adapts the subnetwork's tuple into a fact in order right join it with the tuple being propagated in the main network.
Field Summary |
---|
Fields inherited from class org.drools.reteoo.ObjectSource |
---|
objectSource, sink |
Fields inherited from class org.drools.common.BaseNode |
---|
hasMemory, id, sharedCount |
Constructor Summary | |
---|---|
RightInputAdapterNode(int id,
TupleSource source)
Constructor specifying the unique id of the node in the Rete network, the position of the propagating FactHandleImpl in
ReteTuple and the source that propagates the receive ReteTuple |
Method Summary | |
---|---|
void |
assertTuple(ReteTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
Takes the asserted ReteTuple received from the TupleSource and
adapts it into a FactHandleImpl |
void |
attach()
Attaches the node into the network. |
void |
attach(InternalWorkingMemory[] workingMemories)
|
Object |
createMemory(RuleBaseConfiguration config)
Creates and return the node memory |
void |
remove(BaseNode node,
InternalWorkingMemory[] workingMemories)
Removes the node from teh network. |
void |
retractTuple(ReteTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
Retracts the corresponding tuple by retrieving and retracting the fact created for it |
void |
updateSink(ObjectSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
Methods inherited from class org.drools.reteoo.ObjectSource |
---|
addObjectSink, getSinkPropagator, removeObjectSink |
Methods inherited from class org.drools.common.BaseNode |
---|
addShare, getId, getSharedCount, hashCode, hasMemory, isInUse, isShared, removeShare, setHasMemory, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.drools.common.NodeMemory |
---|
getId |
Constructor Detail |
---|
public RightInputAdapterNode(int id, TupleSource source)
FactHandleImpl
in
ReteTuple
and the source that propagates the receive ReteTuples.
- Parameters:
id
- Unique idsource
- The TupleSource
which propagates the received ReteTuple
Method Detail |
---|
public Object createMemory(RuleBaseConfiguration config)
createMemory
in interface NodeMemory
public void assertTuple(ReteTuple tuple, PropagationContext context, InternalWorkingMemory workingMemory)
ReteTuple
received from the TupleSource
and
adapts it into a FactHandleImpl
assertTuple
in interface TupleSink
tuple
- The asserted ReteTuple
.context
- The PropagationContext
of the WorkingMemory action.workingMemory
- the WorkingMemory
session.
public void retractTuple(ReteTuple tuple, PropagationContext context, InternalWorkingMemory workingMemory)
retractTuple
in interface TupleSink
public void attach()
BaseNode
ObjectSource
or TupleSource
public void attach(InternalWorkingMemory[] workingMemories)
public void updateSink(ObjectSink sink, PropagationContext context, InternalWorkingMemory workingMemory)
updateSink
in class ObjectSource
public void remove(BaseNode node, InternalWorkingMemory[] workingMemories)
BaseNode
ObjectSource
or TupleSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |