|
||||||||||
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.RuleTerminalNode
public final class RuleTerminalNode
Leaf Rete-OO node responsible for enacting Action
s on a
matched Rule
.
Rule
,
Serialized FormField Summary |
---|
Fields inherited from class org.drools.common.BaseNode |
---|
hasMemory, id, sharedCount |
Constructor Summary | |
---|---|
RuleTerminalNode(int id,
TupleSource source,
Rule rule,
GroupElement subrule)
Construct. |
Method Summary | |
---|---|
void |
assertTuple(ReteTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
Assert a new ReteTuple . |
void |
assertTuple(ReteTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
boolean fireActivationCreated)
Assert a new Tuple . |
void |
attach()
Attaches the node into the network. |
void |
attach(InternalWorkingMemory[] workingMemories)
|
Object |
createMemory(RuleBaseConfiguration config)
|
boolean |
equals(Object object)
|
TupleSinkNode |
getNextTupleSinkNode()
Returns the next node |
TupleSinkNode |
getPreviousTupleSinkNode()
Returns the previous node |
Rule |
getRule()
Retrieve the Action associated with this node. |
int |
hashCode()
The hashCode return is simply the unique id of the node. |
void |
remove(BaseNode node,
InternalWorkingMemory[] workingMemories)
Removes the node from teh network. |
void |
retractTuple(ReteTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
ruleAttached()
|
void |
setNextTupleSinkNode(TupleSinkNode next)
Sets the next node |
void |
setPreviousTupleSinkNode(TupleSinkNode previous)
Sets the previous node |
String |
toString()
|
Methods inherited from class org.drools.common.BaseNode |
---|
addShare, getId, getSharedCount, hasMemory, isInUse, isShared, removeShare, setHasMemory |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.drools.common.NodeMemory |
---|
getId |
Constructor Detail |
---|
public RuleTerminalNode(int id, TupleSource source, Rule rule, GroupElement subrule)
inputSource
- The parent tuple source.rule
- The rule.Method Detail |
---|
public Rule getRule()
Action
associated with this node.
Action
associated with this node.public void assertTuple(ReteTuple tuple, PropagationContext context, InternalWorkingMemory workingMemory)
TupleSink
ReteTuple
.
assertTuple
in interface TupleSink
tuple
- The ReteTuple
to propagate.context
- The PropagationContext
of the WorkingMemory actionworkingMemory
- the WorkingMemory
session.
public void assertTuple(ReteTuple tuple, PropagationContext context, InternalWorkingMemory workingMemory, boolean fireActivationCreated)
Tuple
.
tuple
- The Tuple
being asserted.workingMemory
- The working memory seesion.
AssertionException
- If an error occurs while asserting.public void retractTuple(ReteTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
retractTuple
in interface TupleSink
public String toString()
public void ruleAttached()
public void attach()
BaseNode
ObjectSource
or TupleSource
public void attach(InternalWorkingMemory[] workingMemories)
public void remove(BaseNode node, InternalWorkingMemory[] workingMemories)
BaseNode
ObjectSource
or TupleSource
public Object createMemory(RuleBaseConfiguration config)
createMemory
in interface NodeMemory
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 TupleSinkNodepublic int hashCode()
BaseNode
public boolean equals(Object object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |