org.drools.reteoo
Class CompositeLeftTupleSinkAdapter

java.lang.Object
  extended by org.drools.reteoo.AbstractLeftTupleSinkAdapter
      extended by org.drools.reteoo.CompositeLeftTupleSinkAdapter
All Implemented Interfaces:
Externalizable, Serializable, LeftTupleSinkPropagator
Direct Known Subclasses:
AsyncCompositeLeftTupleSinkAdapter

public class CompositeLeftTupleSinkAdapter
extends AbstractLeftTupleSinkAdapter

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.reteoo.AbstractLeftTupleSinkAdapter
partitionId
 
Constructor Summary
CompositeLeftTupleSinkAdapter()
           
CompositeLeftTupleSinkAdapter(RuleBasePartitionId partitionId)
           
 
Method Summary
 void addTupleSink(LeftTupleSink sink)
           
 void createAndPropagateAssertLeftTuple(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory, boolean leftTupleMemoryEnabled, LeftInputAdapterNode liaNode)
           
 void createChildLeftTuplesforQuery(LeftTuple leftTuple, RightTuple rightTuple, boolean leftTupleMemoryEnabled, boolean linkRightTuple)
           
 void doPropagateAssertLeftTuple(PropagationContext context, InternalWorkingMemory workingMemory, LeftTuple leftTuple, LeftTupleSink sink)
           
protected  void doPropagateAssertLeftTuple(PropagationContext context, InternalWorkingMemory workingMemory, LeftTupleSinkNode sink, LeftTuple leftTuple)
          This is a hook method that may be overriden by subclasses.
 void doPropagateModifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory, LeftTupleSink sink)
           
protected  void doPropagateRetractLeftTuple(PropagationContext context, InternalWorkingMemory workingMemory, LeftTuple leftTuple, LeftTupleSink sink)
          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)
           
 void removeTupleSink(LeftTupleSink sink)
           
 int size()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.reteoo.AbstractLeftTupleSinkAdapter
getPartitionId, setPartitionId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeLeftTupleSinkAdapter

public CompositeLeftTupleSinkAdapter()

CompositeLeftTupleSinkAdapter

public CompositeLeftTupleSinkAdapter(RuleBasePartitionId partitionId)
Method Detail

addTupleSink

public void addTupleSink(LeftTupleSink sink)

removeTupleSink

public void removeTupleSink(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)

createAndPropagateAssertLeftTuple

public void createAndPropagateAssertLeftTuple(InternalFactHandle factHandle,
                                              PropagationContext context,
                                              InternalWorkingMemory workingMemory,
                                              boolean leftTupleMemoryEnabled,
                                              LeftInputAdapterNode liaNode)

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)

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,
                                          LeftTupleSinkNode sink,
                                          LeftTuple leftTuple)
This is a hook method that may be overriden by subclasses. Please keep it protected.

Parameters:
context -
workingMemory -
sink -
leftTuple -

doPropagateRetractLeftTuple

protected void doPropagateRetractLeftTuple(PropagationContext context,
                                           InternalWorkingMemory workingMemory,
                                           LeftTuple leftTuple,
                                           LeftTupleSink sink)
This is a hook method that may be overriden by subclasses. Please keep it protected.

Parameters:
context -
workingMemory -
leftTuple -
sink -

doPropagateModifyObject

public void doPropagateModifyObject(InternalFactHandle factHandle,
                                    ModifyPreviousTuples modifyPreviousTuples,
                                    PropagationContext context,
                                    InternalWorkingMemory workingMemory,
                                    LeftTupleSink sink)

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.