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