|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.reteoo.impl.TupleSourceImpl | +--org.drools.reteoo.impl.ConditionNodeImpl
Node which filters ReteTuple
s.
Using a semantic Condition
, this node
may allow or disallow Tuples
to proceed
further through the Rete-OO network.
ConditionNode
,
Condition
,
ReteTuple
Constructor Summary | |
ConditionNodeImpl(TupleSourceImpl tupleSource,
Condition condition)
Construct. |
Method Summary | |
void |
assertTuple(ReteTuple tuple,
WorkingMemory workingMemory)
Assert a new Tuple . |
Condition |
getCondition()
Retrieve the Condition associated
with this node. |
java.util.Set |
getTupleDeclarations()
Retrieve the Set of Declaration s
in the propagated Tuples . |
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. |
java.lang.String |
toString()
Produce a debug string. |
Methods inherited from class org.drools.reteoo.impl.TupleSourceImpl |
getTupleSink, propagateAssertTuple, propagateModifyTuples, propagateRetractTuples, setTupleSink |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.drools.reteoo.TupleSource |
getTupleSink |
Constructor Detail |
public ConditionNodeImpl(TupleSourceImpl tupleSource, Condition condition)
tupleSource
- The source of incoming Tuples
.condition
- The semantic Condition
.Method Detail |
public Condition getCondition()
Condition
associated
with this node.
getCondition
in interface ConditionNode
Condition
.public java.util.Set getTupleDeclarations()
Set
of Declaration
s
in the propagated Tuples
.
getTupleDeclarations
in interface TupleSource
Set
of Declarations
in progated Tuples
.Declaration
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) throws RetractionException
retractTuples
in interface TupleSinkImpl
key
- The tuple key.workingMemory
- The working memory seesion.
RetractionException
- If an error occurs while retracting.public void modifyTuples(java.lang.Object trigger, org.drools.reteoo.impl.TupleSet newTuples, WorkingMemory workingMemory) throws FactException
modifyTuples
in interface TupleSinkImpl
trigger
- The root fact object.newTuples
- Modification replacement tuples.workingMemory
- The working memory session.
FactException
- If an error occurs while modifying.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |