|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 | |
---|---|
protected boolean |
tupleMemoryEnabled
|
Fields inherited from class org.drools.reteoo.ObjectSource |
---|
objectSource, sink |
Fields inherited from class org.drools.common.BaseNode |
---|
id |
Constructor Summary | |
---|---|
RightInputAdapterNode(int id,
TupleSource source,
BuildContext context)
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)
|
java.lang.Object |
createMemory(RuleBaseConfiguration config)
Creates and return the node memory |
TupleSinkNode |
getNextTupleSinkNode()
Returns the next node |
TupleSinkNode |
getPreviousTupleSinkNode()
Returns the previous node |
boolean |
isTupleMemoryEnabled()
|
void |
remove(RuleRemovalContext context,
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 |
setNextTupleSinkNode(TupleSinkNode next)
Sets the next node |
void |
setPreviousTupleSinkNode(TupleSinkNode previous)
Sets the previous node |
void |
setTupleMemoryEnabled(boolean tupleMemoryEnabled)
|
void |
updateSink(ObjectSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
Methods inherited from class org.drools.reteoo.ObjectSource |
---|
addObjectSink, getSinkPropagator, isInUse, removeObjectSink |
Methods inherited from class org.drools.common.BaseNode |
---|
getId, hashCode, 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 |
Field Detail |
---|
protected boolean tupleMemoryEnabled
Constructor Detail |
---|
public RightInputAdapterNode(int id, TupleSource source, BuildContext context)
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 java.lang.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
attach
in class BaseNode
public void attach(InternalWorkingMemory[] workingMemories)
attach
in class BaseNode
public void updateSink(ObjectSink sink, PropagationContext context, InternalWorkingMemory workingMemory)
updateSink
in class ObjectSource
public void remove(RuleRemovalContext context, BaseNode node, InternalWorkingMemory[] workingMemories)
BaseNode
ObjectSource
or TupleSource
remove
in class BaseNode
public boolean isTupleMemoryEnabled()
isTupleMemoryEnabled
in interface TupleSink
public void setTupleMemoryEnabled(boolean tupleMemoryEnabled)
setTupleMemoryEnabled
in interface TupleSink
public TupleSinkNode getNextTupleSinkNode()
getNextTupleSinkNode
in interface TupleSinkNode
public void setNextTupleSinkNode(TupleSinkNode next)
setNextTupleSinkNode
in interface TupleSinkNode
next
- The next TupleSinkNodepublic TupleSinkNode getPreviousTupleSinkNode()
getPreviousTupleSinkNode
in interface TupleSinkNode
public void setPreviousTupleSinkNode(TupleSinkNode previous)
setPreviousTupleSinkNode
in interface TupleSinkNode
previous
- The previous TupleSinkNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |