org.drools.reteoo
Class SingleLeftTupleSinkAdapter
java.lang.Object
org.drools.reteoo.AbstractLeftTupleSinkAdapter
org.drools.reteoo.SingleLeftTupleSinkAdapter
- All Implemented Interfaces:
- Externalizable, Serializable, LeftTupleSinkPropagator
- Direct Known Subclasses:
- AsyncSingleLeftTupleSinkAdapter
public class SingleLeftTupleSinkAdapter
- extends AbstractLeftTupleSinkAdapter
- See Also:
- Serialized Form
Method Summary |
void |
createAndPropagateAssertLeftTuple(InternalFactHandle factHandle,
PropagationContext context,
InternalWorkingMemory workingMemory,
boolean leftTupleMemoryEnabled,
LeftInputAdapterNode liaNode)
|
void |
createChildLeftTuplesforQuery(LeftTuple leftTuple,
RightTuple rightTuple,
boolean leftTupleMemoryEnabled,
boolean linkRightTuple)
|
protected void |
doPropagateAssertLeftTuple(PropagationContext context,
InternalWorkingMemory workingMemory,
LeftTuple newLeftTuple)
This is a hook method that may be overriden by subclasses. |
void |
doPropagateAssertLeftTuple(PropagationContext context,
InternalWorkingMemory workingMemory,
LeftTuple leftTuple,
LeftTupleSink sink)
|
protected void |
doPropagateModifyLeftTuple(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
protected void |
doPropagateRetractLeftTuple(PropagationContext context,
InternalWorkingMemory workingMemory,
LeftTuple child,
LeftTupleSink tupleSink)
This is a hook method that may be overriden by subclasses. |
BaseNode |
getMatchingNode(BaseNode candidate)
|
LeftTupleSink[] |
getSinks()
|
void |
modifyChildLeftTuplesforQuery(RightTuple rightTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
propagateAssertLeftTuple(LeftTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
boolean leftTupleMemoryEnabled)
|
void |
propagateAssertLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTuple currentLeftChild,
LeftTuple currentRightChild,
PropagationContext context,
InternalWorkingMemory workingMemory,
boolean leftTupleMemoryEnabled)
|
LeftTuple |
propagateModifyChildLeftTuple(LeftTuple childLeftTuple,
LeftTuple parentLeftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
boolean tupleMemoryEnabled)
|
void |
propagateModifyChildLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
boolean tupleMemoryEnabled)
|
LeftTuple |
propagateModifyChildLeftTuple(LeftTuple childLeftTuple,
RightTuple parentRightTuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
boolean tupleMemoryEnabled)
|
void |
propagateModifyObject(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
LeftTuple |
propagateRetractChildLeftTuple(LeftTuple childLeftTuple,
LeftTuple parentLeftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
LeftTuple |
propagateRetractChildLeftTuple(LeftTuple childLeftTuple,
RightTuple parentRightTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
propagateRetractLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
propagateRetractLeftTupleDestroyRightTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
propagateRetractRightTuple(RightTuple rightTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
readExternal(ObjectInput in)
|
int |
size()
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sink
protected LeftTupleSink sink
SingleLeftTupleSinkAdapter
public SingleLeftTupleSinkAdapter()
SingleLeftTupleSinkAdapter
public SingleLeftTupleSinkAdapter(RuleBasePartitionId partitionId,
LeftTupleSink sink)
createChildLeftTuplesforQuery
public void createChildLeftTuplesforQuery(LeftTuple leftTuple,
RightTuple rightTuple,
boolean leftTupleMemoryEnabled,
boolean linkRightTuple)
modifyChildLeftTuplesforQuery
public void modifyChildLeftTuplesforQuery(RightTuple rightTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
propagateAssertLeftTuple
public void propagateAssertLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTuple currentLeftChild,
LeftTuple currentRightChild,
PropagationContext context,
InternalWorkingMemory workingMemory,
boolean leftTupleMemoryEnabled)
propagateAssertLeftTuple
public void propagateAssertLeftTuple(LeftTuple tuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
boolean leftTupleMemoryEnabled)
propagateRetractLeftTuple
public void propagateRetractLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
propagateRetractLeftTupleDestroyRightTuple
public void propagateRetractLeftTupleDestroyRightTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
propagateRetractRightTuple
public void propagateRetractRightTuple(RightTuple rightTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
createAndPropagateAssertLeftTuple
public void createAndPropagateAssertLeftTuple(InternalFactHandle factHandle,
PropagationContext context,
InternalWorkingMemory workingMemory,
boolean leftTupleMemoryEnabled,
LeftInputAdapterNode liaNode)
getMatchingNode
public BaseNode getMatchingNode(BaseNode candidate)
getSinks
public LeftTupleSink[] getSinks()
size
public int size()
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Overrides:
readExternal
in class AbstractLeftTupleSinkAdapter
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Overrides:
writeExternal
in class AbstractLeftTupleSinkAdapter
- Throws:
IOException
doPropagateAssertLeftTuple
public void doPropagateAssertLeftTuple(PropagationContext context,
InternalWorkingMemory workingMemory,
LeftTuple leftTuple,
LeftTupleSink sink)
doPropagateAssertLeftTuple
protected void doPropagateAssertLeftTuple(PropagationContext context,
InternalWorkingMemory workingMemory,
LeftTuple newLeftTuple)
- This is a hook method that may be overriden by subclasses. Please keep it
package protected.
- Parameters:
context
- workingMemory
- newLeftTuple
-
doPropagateModifyLeftTuple
protected void doPropagateModifyLeftTuple(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory)
doPropagateRetractLeftTuple
protected void doPropagateRetractLeftTuple(PropagationContext context,
InternalWorkingMemory workingMemory,
LeftTuple child,
LeftTupleSink tupleSink)
- This is a hook method that may be overriden by subclasses. Please keep it
package protected.
- Parameters:
context
- workingMemory
- child
- tupleSink
-
propagateModifyObject
public void propagateModifyObject(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory)
propagateModifyChildLeftTuple
public LeftTuple propagateModifyChildLeftTuple(LeftTuple childLeftTuple,
RightTuple parentRightTuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
boolean tupleMemoryEnabled)
propagateModifyChildLeftTuple
public LeftTuple propagateModifyChildLeftTuple(LeftTuple childLeftTuple,
LeftTuple parentLeftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
boolean tupleMemoryEnabled)
propagateModifyChildLeftTuple
public void propagateModifyChildLeftTuple(LeftTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory,
boolean tupleMemoryEnabled)
propagateRetractChildLeftTuple
public LeftTuple propagateRetractChildLeftTuple(LeftTuple childLeftTuple,
RightTuple parentRightTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
propagateRetractChildLeftTuple
public LeftTuple propagateRetractChildLeftTuple(LeftTuple childLeftTuple,
LeftTuple parentLeftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.