|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.reteoo.impl.TerminalNodeImpl
Leaf Rete-OO node responsible for enacting Action
s
on a matched Rule
.
Rule
,
Action
Constructor Summary | |
TerminalNodeImpl(TupleSource inputSource,
Rule rule,
int priority)
Construct. |
Method Summary | |
void |
assertTuple(ReteTuple tuple,
WorkingMemory workingMemory)
Assert a new Tuple . |
int |
getPriority()
Retrieve the priority |
Rule |
getRule()
Retrieve the Action associated with
this node. |
void |
modifyTuples(java.lang.Object trigger,
org.drools.reteoo.impl.TupleSet newTuples,
WorkingMemory workingMemory)
Modify tuples. |
void |
retractTuples(org.drools.reteoo.impl.TupleKey key,
WorkingMemory workingMemory)
Retract tuples. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TerminalNodeImpl(TupleSource inputSource, Rule rule, int priority)
inputSource
- The parent tuple source.rule
- The rule.priority
- The priority.Method Detail |
public int getPriority()
getPriority
in interface TerminalNode
public Rule getRule()
Action
associated with
this node.
getRule
in interface TerminalNode
Action
associated with
this node.public void assertTuple(ReteTuple tuple, WorkingMemory workingMemory) throws AssertionException
Tuple
.
assertTuple
in interface TupleSinkImpl
tuple
- The Tuple
being asserted.workingMemory
- The working memory seesion.
AssertionException
- If an error occurs while asserting.public void retractTuples(org.drools.reteoo.impl.TupleKey key, WorkingMemory workingMemory)
retractTuples
in interface TupleSinkImpl
key
- The tuple key.workingMemory
- The working memory seesion.public void modifyTuples(java.lang.Object trigger, org.drools.reteoo.impl.TupleSet newTuples, WorkingMemory workingMemory)
modifyTuples
in interface TupleSinkImpl
trigger
- The root fact object.newTuples
- Modification replacement tuples.workingMemory
- The working memory session.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |