|
||||||||||
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.QueryTerminalNode
public final class QueryTerminalNode
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 |
---|
id |
Constructor Summary | |
---|---|
QueryTerminalNode(int id,
TupleSource source,
Rule rule,
GroupElement subrule)
Construct. |
Method Summary | |
---|---|
void |
assertTuple(ReteTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
Assert a new Tuple . |
void |
attach()
Attaches the node into the network. |
void |
attach(InternalWorkingMemory[] workingMemories)
|
java.lang.Object |
createMemory(RuleBaseConfiguration config)
|
TupleSinkNode |
getNextTupleSinkNode()
Returns the next node |
TupleSinkNode |
getPreviousTupleSinkNode()
Returns the previous node |
Rule |
getRule()
Retrieve the Action associated with this node. |
GroupElement |
getSubrule()
|
boolean |
isInUse()
Returns true in case the current node is in use (is referenced by any other 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)
|
void |
ruleAttached()
|
void |
setNextTupleSinkNode(TupleSinkNode next)
Sets the next node |
void |
setPreviousTupleSinkNode(TupleSinkNode previous)
Sets the previous node |
void |
setTupleMemoryEnabled(boolean tupleMemoryEnabled)
|
java.lang.String |
toString()
|
void |
updateNewNode(InternalWorkingMemory workingMemory,
PropagationContext context)
|
Methods inherited from class org.drools.common.BaseNode |
---|
getId, hashCode |
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 QueryTerminalNode(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)
Tuple
.
assertTuple
in interface TupleSink
tuple
- The Tuple
being asserted.workingMemory
- The working memory seesion.context
- The PropagationContext
of the WorkingMemory action
- Throws:
AssertionException
- If an error occurs while asserting.
public void retractTuple(ReteTuple tuple, PropagationContext context, InternalWorkingMemory workingMemory)
retractTuple
in interface TupleSink
public java.lang.String toString()
toString
in class BaseNode
public void ruleAttached()
public void attach()
BaseNode
ObjectSource
or TupleSource
attach
in class BaseNode
public void attach(InternalWorkingMemory[] workingMemories)
attach
in class BaseNode
public void remove(RuleRemovalContext context, BaseNode node, InternalWorkingMemory[] workingMemories)
BaseNode
ObjectSource
or TupleSource
remove
in class BaseNode
public boolean isInUse()
BaseNode
isInUse
in class BaseNode
public void updateNewNode(InternalWorkingMemory workingMemory, PropagationContext context)
public java.lang.Object createMemory(RuleBaseConfiguration config)
createMemory
in interface NodeMemory
public boolean isTupleMemoryEnabled()
isTupleMemoryEnabled
in interface TupleSink
public void setTupleMemoryEnabled(boolean tupleMemoryEnabled)
setTupleMemoryEnabled
in interface TupleSink
public GroupElement getSubrule()
public TupleSinkNode getPreviousTupleSinkNode()
getPreviousTupleSinkNode
in interface TupleSinkNode
public void setPreviousTupleSinkNode(TupleSinkNode previous)
setPreviousTupleSinkNode
in interface TupleSinkNode
previous
- The previous TupleSinkNodepublic TupleSinkNode getNextTupleSinkNode()
getNextTupleSinkNode
in interface TupleSinkNode
public void setNextTupleSinkNode(TupleSinkNode next)
setNextTupleSinkNode
in interface TupleSinkNode
next
- The next TupleSinkNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |