|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.reteoo.TupleSource
org.drools.reteoo.ConditionNode
class ConditionNode
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 | |
---|---|
ConditionNode(Rule rule,
TupleSource tupleSource,
Condition condition)
Construct. |
Method Summary | |
---|---|
void |
assertTuple(ReteTuple tuple,
WorkingMemoryImpl workingMemory)
Assert a new Tuple . |
void |
attach()
Attaches this node into the network. |
boolean |
equals(Object object)
|
Condition |
getCondition()
Retrieve the Condition associated with this node. |
Set |
getTupleDeclarations()
Retrieve the Set of Declaration s in the
propagated Tuples . |
int |
hashCode()
|
void |
retractTuples(TupleKey key,
WorkingMemoryImpl workingMemory)
Retract tuples. |
String |
toString()
Produce a debug string. |
Methods inherited from class org.drools.reteoo.TupleSource |
---|
addTupleSink, getTupleSinks, propagateAssertTuple, propagateRetractTuples |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
ConditionNode(Rule rule, TupleSource tupleSource, Condition condition)
rule
- The ruletupleSource
- The source of incoming Tuples
.condition
- Method Detail |
---|
public void attach()
attach
in class TupleSource
public Condition getCondition()
Condition
associated with this node.
Condition
.public Set getTupleDeclarations()
Set
of Declaration
s in the
propagated Tuples
.
getTupleDeclarations
in class TupleSource
Set
of Declarations
in progated
Tuples
.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) throws RetractionException
retractTuples
in interface TupleSink
key
- The tuple key.workingMemory
- The working memory seesion.
RetractionException
- If an error occurs while retracting.public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |