|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.common.BaseNode org.drools.reteoo.TupleSource org.drools.reteoo.EvalConditionNode
public class EvalConditionNode
Node which filters ReteTuple
s.
Using a semantic Test
, this node may allow or disallow
Tuples
to proceed further through the Rete-OO network.
EvalConditionNode
,
Eval
,
ReteTuple
,
Serialized FormField Summary |
---|
Fields inherited from class org.drools.reteoo.TupleSource |
---|
sink |
Fields inherited from class org.drools.common.BaseNode |
---|
hasMemory, id, sharedCount |
Constructor Summary | |
---|---|
EvalConditionNode(int id,
TupleSource tupleSource,
EvalCondition eval)
Construct. |
Method Summary | |
---|---|
void |
assertTuple(ReteTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
Assert a new Tuple . |
void |
attach()
Attaches this node into the network. |
void |
attach(InternalWorkingMemory[] workingMemories)
|
Object |
createMemory(RuleBaseConfiguration config)
|
boolean |
equals(Object object)
|
EvalCondition |
getCondition()
Retrieve the Test associated with this node. |
TupleSinkNode |
getNextTupleSinkNode()
Returns the next node |
TupleSinkNode |
getPreviousTupleSinkNode()
Returns the previous node |
int |
hashCode()
The hashCode return is simply the unique id of the node. |
void |
remove(BaseNode node,
InternalWorkingMemory[] workingMemories)
Removes the node from teh network. |
void |
retractTuple(ReteTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
setNextTupleSinkNode(TupleSinkNode next)
Sets the next node |
void |
setPreviousTupleSinkNode(TupleSinkNode previous)
Sets the previous node |
String |
toString()
Produce a debug string. |
void |
updateSink(TupleSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
Methods inherited from class org.drools.reteoo.TupleSource |
---|
addTupleSink, getSinkPropagator, removeTupleSink |
Methods inherited from class org.drools.common.BaseNode |
---|
addShare, getId, getSharedCount, hasMemory, isInUse, isShared, removeShare, setHasMemory |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.drools.common.NodeMemory |
---|
getId |
Constructor Detail |
---|
public EvalConditionNode(int id, TupleSource tupleSource, EvalCondition eval)
rule
- The ruletupleSource
- The source of incoming Tuples
.eval
- Method Detail |
---|
public void attach()
public void attach(InternalWorkingMemory[] workingMemories)
public EvalCondition getCondition()
Test
associated with this node.
Test
.public void assertTuple(ReteTuple tuple, PropagationContext context, InternalWorkingMemory workingMemory)
Tuple
.
assertTuple
in interface TupleSink
tuple
- The Tuple
being asserted.workingMemory
- The working memory seesion.context
- The PropagationContext
of the WorkingMemory action
- Throws:
AssertionException
- If an error occurs while asserting.
public void retractTuple(ReteTuple tuple, PropagationContext context, InternalWorkingMemory workingMemory)
retractTuple
in interface TupleSink
public String toString()
public int hashCode()
BaseNode
public boolean equals(Object object)
public Object createMemory(RuleBaseConfiguration config)
createMemory
in interface NodeMemory
public void updateSink(TupleSink sink, PropagationContext context, InternalWorkingMemory workingMemory)
updateSink
in class TupleSource
public void remove(BaseNode node, InternalWorkingMemory[] workingMemories)
BaseNode
ObjectSource
or TupleSource
public TupleSinkNode getNextTupleSinkNode()
getNextTupleSinkNode
in interface TupleSinkNode
public void setNextTupleSinkNode(TupleSinkNode next)
setNextTupleSinkNode
in interface TupleSinkNode
next
- The next TupleSinkNodepublic TupleSinkNode getPreviousTupleSinkNode()
getPreviousTupleSinkNode
in interface TupleSinkNode
public void setPreviousTupleSinkNode(TupleSinkNode previous)
setPreviousTupleSinkNode
in interface TupleSinkNode
previous
- The previous TupleSinkNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |