org.drools.reteoo.impl
Class TerminalNodeImpl
java.lang.Object
|
+--org.drools.reteoo.impl.TerminalNodeImpl
- All Implemented Interfaces:
- TerminalNode, TupleSink, TupleSinkImpl
- public class TerminalNodeImpl
- extends java.lang.Object
- implements TerminalNode, TupleSinkImpl
Leaf Rete-OO node responsible for enacting Action
s
on a matched Rule
.
- Author:
- bob mcwhirter
- See Also:
Rule
,
Action
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TerminalNodeImpl
public TerminalNodeImpl(TupleSource inputSource,
Rule rule,
int priority)
- Construct.
- Parameters:
inputSource
- The parent tuple source.rule
- The rule.priority
- The priority.
getPriority
public int getPriority()
- Retrieve the priority
- Specified by:
getPriority
in interface TerminalNode
- Returns:
- The priority.
getRule
public Rule getRule()
- Retrieve the
Action
associated with
this node.
- Specified by:
getRule
in interface TerminalNode
- Returns:
- The
Action
associated with
this node.
assertTuple
public void assertTuple(ReteTuple tuple,
WorkingMemory workingMemory)
throws AssertionException
- Assert a new
Tuple
.
- Specified by:
assertTuple
in interface TupleSinkImpl
- Parameters:
tuple
- The Tuple
being asserted.workingMemory
- The working memory seesion.- Throws:
AssertionException
- If an error occurs while asserting.
retractTuples
public void retractTuples(org.drools.reteoo.impl.TupleKey key,
WorkingMemory workingMemory)
- Retract tuples.
- Specified by:
retractTuples
in interface TupleSinkImpl
- Parameters:
key
- The tuple key.workingMemory
- The working memory seesion.
modifyTuples
public void modifyTuples(java.lang.Object trigger,
org.drools.reteoo.impl.TupleSet newTuples,
WorkingMemory workingMemory)
- Modify tuples.
- Specified by:
modifyTuples
in interface TupleSinkImpl
- Parameters:
trigger
- The root fact object.newTuples
- Modification replacement tuples.workingMemory
- The working memory session.
Copyright © 2001-2003 The Werken Company. All Rights Reserved.