|
||||||||||
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.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 |
---|
hasMemory, id, sharedCount |
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)
|
Object |
createMemory(RuleBaseConfiguration config)
|
Rule |
getRule()
Retrieve the Action associated with this node. |
GroupElement |
getSubrule()
|
void |
remove(BaseNode node,
InternalWorkingMemory[] workingMemories)
Removes the node from teh network. |
void |
retractTuple(ReteTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
ruleAttached()
|
String |
toString()
|
void |
updateNewNode(InternalWorkingMemory workingMemory,
PropagationContext context)
|
Methods inherited from class org.drools.common.BaseNode |
---|
addShare, getId, getSharedCount, hashCode, hasMemory, isInUse, isShared, removeShare, setHasMemory |
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 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 void updateNewNode(InternalWorkingMemory workingMemory, PropagationContext context)
public Object createMemory(RuleBaseConfiguration config)
createMemory
in interface NodeMemory
public GroupElement getSubrule()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |