|
|||||||||||
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.ExtractionNodeImpl
extraction node in the Rete-OO network.
ExtractionNode
Constructor Summary | |
ExtractionNodeImpl(TupleSourceImpl tupleSource,
Declaration targetDeclaration,
Extractor extractor)
Construct. |
Method Summary | |
void |
assertTuple(ReteTuple tuple,
WorkingMemory workingMemory)
Assert a new Tuple . |
Extractor |
getExtractor()
Retrieve the Extractor used to generate the
right-hand-side value for the extraction. |
Declaration |
getTargetDeclaration()
Retrieve the Declaration which is the target of
the extraction. |
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 ExtractionNodeImpl(TupleSourceImpl tupleSource, Declaration targetDeclaration, Extractor extractor)
tupleSource
- Parent tuple source.targetDeclaration
- Target of extraction.extractor
- The fact extractor to use.Method Detail |
public Declaration getTargetDeclaration()
Declaration
which is the target of
the extraction.
getTargetDeclaration
in interface ExtractionNode
Declaration
.Declaration
public Extractor getExtractor()
Extractor
used to generate the
right-hand-side value for the extraction.
getExtractor
in interface ExtractionNode
Extrator
.Extractor
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 |