|
Drools :: Core 6.0.0.Beta5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.core.common.BaseNode
org.drools.core.reteoo.LeftTupleSource
org.drools.core.reteoo.QueryRiaFixerNode
public class QueryRiaFixerNode
Node which filters ReteTuples.
Using a semantic Test, this node may allow or disallow
Tuples to proceed further through the Rete-OO network.
QueryRiaFixerNode,
Eval,
LeftTuple,
Serialized Form| Field Summary | |
|---|---|
protected boolean |
tupleMemoryEnabled
|
| Fields inherited from class org.drools.core.reteoo.LeftTupleSource |
|---|
leftInput, sink |
| Fields inherited from class org.drools.core.common.BaseNode |
|---|
associations, id, partitionId, partitionsEnabled, streamMode |
| Constructor Summary | |
|---|---|
QueryRiaFixerNode()
|
|
QueryRiaFixerNode(int id,
LeftTupleSource tupleSource,
BuildContext context)
Construct. |
|
| Method Summary | |
|---|---|
void |
addTupleSink(LeftTupleSink tupleSink,
BuildContext context)
public LeftTupleSource getLeftTupleSource() { return leftInput; } public void setLeftTupleSource(LeftTupleSource leftInput) { this.leftInput = leftInput; } /** Adds the TupleSink so that it may receive
Tuples propagated from this TupleSource. |
void |
assertLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
Assert a new Tuple. |
void |
attach(BuildContext context)
Attaches the node into the network. |
LeftTuple |
createLeftTuple(InternalFactHandle factHandle,
LeftTuple leftTuple,
LeftTupleSink sink)
|
LeftTuple |
createLeftTuple(InternalFactHandle factHandle,
LeftTupleSink sink,
boolean leftTupleMemoryEnabled)
|
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
LeftTupleSink sink,
PropagationContext pctx,
boolean leftTupleMemoryEnabled)
|
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTuple currentLeftChild,
LeftTuple currentRightChild,
LeftTupleSink sink,
boolean leftTupleMemoryEnabled)
|
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTupleSink sink)
|
LeftTuple |
createPeer(LeftTuple original)
|
protected void |
doCollectAncestors(NodeSet nodeSet)
|
protected void |
doRemove(RuleRemovalContext context,
ReteooBuilder builder,
InternalWorkingMemory[] workingMemories)
Removes the node from teh network. |
boolean |
equals(Object object)
|
BetaNode |
getBetaNode()
|
LeftTupleSource |
getLeftTupleSource()
|
LeftTupleSinkNode |
getNextLeftTupleSinkNode()
Returns the next node |
protected ObjectTypeNode |
getObjectTypeNode()
|
LeftTupleSinkNode |
getPreviousLeftTupleSinkNode()
Returns the previous node |
short |
getType()
|
int |
hashCode()
The hashCode return is simply the unique id of the node. |
boolean |
isInUse()
Returns true in case the current node is in use (is referenced by any other node) |
boolean |
isLeftTupleMemoryEnabled()
|
void |
modifyLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
networkUpdated(UpdateContext updateContext)
A method that is called for all nodes whose network below them changed, after the change is complete, providing them with an oportunity for state update |
void |
readExternal(ObjectInput in)
|
protected void |
removeTupleSink(LeftTupleSink tupleSink)
Removes the TupleSink |
void |
retractLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled)
|
void |
setNextLeftTupleSinkNode(LeftTupleSinkNode next)
Sets the next node |
void |
setPreviousLeftTupleSinkNode(LeftTupleSinkNode previous)
Sets the previous node |
String |
toString()
Produce a debug string. |
void |
updateSink(LeftTupleSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class org.drools.core.reteoo.LeftTupleSource |
|---|
addTupleSink, addTupleSink, doModifyLeftTuple, getLeftDeclaredMask, getLeftInferredMask, getLeftInputOtnId, getLeftNegativeMask, getObjectType, getSinkPropagator, initDeclaredMask, initInferredMask, initMasks, isUnlinkingEnabled, modifyLeftTuple, setLeftInferredMask, setLeftInputOtnId, setLeftListenedProperties, setLeftTupleSource |
| Methods inherited from class org.drools.core.common.BaseNode |
|---|
addAssociation, attach, collectAncestors, getAssociations, getId, getPartitionId, isStreamMode, remove, removeAssociation, setId, setPartitionId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.drools.core.reteoo.LeftTupleSink |
|---|
getLeftInferredMask, getLeftInputOtnId, modifyLeftTuple, setLeftInputOtnId |
| Methods inherited from interface org.drools.core.common.NetworkNode |
|---|
getAssociations, getId, getPartitionId |
| Field Detail |
|---|
protected boolean tupleMemoryEnabled
| Constructor Detail |
|---|
public QueryRiaFixerNode()
public QueryRiaFixerNode(int id,
LeftTupleSource tupleSource,
BuildContext context)
rule - The ruletupleSource - The source of incoming Tuples.eval - | Method Detail |
|---|
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class LeftTupleSourceIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class LeftTupleSourceIOExceptionpublic BetaNode getBetaNode()
public void addTupleSink(LeftTupleSink tupleSink,
BuildContext context)
LeftTupleSourceTupleSink so that it may receive
Tuples propagated from this TupleSource.
addTupleSink in class LeftTupleSourcetupleSink - The TupleSink to receive propagated
Tuples.public void attach(BuildContext context)
BaseNodeObjectSource or TupleSource
attach in class BaseNodepublic void networkUpdated(UpdateContext updateContext)
BaseNode
networkUpdated in class BaseNode
public void assertLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
Tuple.
assertLeftTuple in interface LeftTupleSinkleftTuple - 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 retractLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
retractLeftTuple in interface LeftTupleSink
public void modifyLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
modifyLeftTuple in interface LeftTupleSinkpublic String toString()
toString in class BaseNodepublic int hashCode()
BaseNode
hashCode in class BaseNodepublic boolean equals(Object object)
equals in class Object
public void updateSink(LeftTupleSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
updateSink in class LeftTupleSource
protected void doRemove(RuleRemovalContext context,
ReteooBuilder builder,
InternalWorkingMemory[] workingMemories)
BaseNodeObjectSource or TupleSource
doRemove in class BaseNodeprotected void doCollectAncestors(NodeSet nodeSet)
doCollectAncestors in class BaseNodepublic boolean isLeftTupleMemoryEnabled()
isLeftTupleMemoryEnabled in interface LeftTupleSinkisLeftTupleMemoryEnabled in class LeftTupleSourcepublic void setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled)
setLeftTupleMemoryEnabled in interface LeftTupleSinkpublic LeftTupleSinkNode getNextLeftTupleSinkNode()
getNextLeftTupleSinkNode in interface LeftTupleSinkNodepublic void setNextLeftTupleSinkNode(LeftTupleSinkNode next)
setNextLeftTupleSinkNode in interface LeftTupleSinkNodenext - The next TupleSinkNodepublic LeftTupleSinkNode getPreviousLeftTupleSinkNode()
getPreviousLeftTupleSinkNode in interface LeftTupleSinkNodepublic void setPreviousLeftTupleSinkNode(LeftTupleSinkNode previous)
setPreviousLeftTupleSinkNode in interface LeftTupleSinkNodeprevious - The previous TupleSinkNodepublic short getType()
getType in interface NetworkNodegetType in interface LeftTupleSinkgetType in class LeftTupleSource
public LeftTuple createLeftTuple(InternalFactHandle factHandle,
LeftTupleSink sink,
boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSink
public LeftTuple createLeftTuple(InternalFactHandle factHandle,
LeftTuple leftTuple,
LeftTupleSink sink)
createLeftTuple in interface LeftTupleSink
public LeftTuple createLeftTuple(LeftTuple leftTuple,
LeftTupleSink sink,
PropagationContext pctx,
boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSink
public LeftTuple createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTupleSink sink)
createLeftTuple in interface LeftTupleSink
public LeftTuple createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTuple currentLeftChild,
LeftTuple currentRightChild,
LeftTupleSink sink,
boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSinkpublic boolean isInUse()
BaseNode
isInUse in class LeftTupleSourcepublic LeftTupleSource getLeftTupleSource()
getLeftTupleSource in interface LeftTupleSinkgetLeftTupleSource in class LeftTupleSourceprotected ObjectTypeNode getObjectTypeNode()
getObjectTypeNode in class LeftTupleSourcepublic LeftTuple createPeer(LeftTuple original)
createPeer in interface LeftTupleSinkcreatePeer in class LeftTupleSourceprotected void removeTupleSink(LeftTupleSink tupleSink)
LeftTupleSourceTupleSink
removeTupleSink in class LeftTupleSourcetupleSink - The TupleSink to remove
|
Drools :: Core 6.0.0.Beta5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||