|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.common.BaseNode
org.drools.reteoo.LeftTupleSource
public abstract class LeftTupleSource
A source of ReteTuple s for a TupleSink.
Nodes that propagate Tuples extend this class.
LeftTupleSource,
LeftTuple,
Serialized Form| Field Summary | |
|---|---|
protected LeftTupleSinkPropagator |
sink
The destination for Tuples. |
| Fields inherited from class org.drools.common.BaseNode |
|---|
associations, id, partitionId, partitionsEnabled |
| Constructor Summary | |
|---|---|
|
LeftTupleSource()
|
protected |
LeftTupleSource(int id,
RuleBasePartitionId partitionId,
boolean partitionsEnabled)
Single parameter constructor that specifies the unique id of the node. |
| Method Summary | |
|---|---|
void |
addTupleSink(LeftTupleSink tupleSink)
|
protected void |
addTupleSink(LeftTupleSink tupleSink,
BuildContext context)
Adds the TupleSink so that it may receive
Tuples propagated from this TupleSource. |
protected LeftTupleSinkPropagator |
addTupleSink(LeftTupleSinkPropagator sinkPropagator,
LeftTupleSink tupleSink,
BuildContext context)
|
static void |
doModifyLeftTuple(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory,
LeftTupleSink sink,
int leftInputOtnId,
long leftInferredMask)
|
long |
getLeftDeclaredMask()
|
long |
getLeftInferredMask()
|
int |
getLeftInputOtnId()
|
long |
getLeftNegativeMask()
|
ObjectType |
getObjectType()
|
protected abstract ObjectTypeNode |
getObjectTypeNode()
|
LeftTupleSinkPropagator |
getSinkPropagator()
|
protected void |
initDeclaredMask(BuildContext context,
LeftTupleSource leftInput)
|
protected void |
initInferredMask(LeftTupleSource leftInput)
|
protected void |
initMasks(BuildContext context,
LeftTupleSource leftInput)
|
boolean |
isInUse()
Returns true in case the current node is in use (is referenced by any other node) |
void |
modifyLeftTuple(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
readExternal(ObjectInput in)
|
protected void |
removeTupleSink(LeftTupleSink tupleSink)
Removes the TupleSink |
protected void |
setLeftInferredMask(long leftInferredMask)
|
void |
setLeftInputOtnId(int leftInputOtnId)
|
protected void |
setLeftListenedProperties(List<String> leftListenedProperties)
|
protected LeftTupleSource |
unwrapLeftInput(LeftTupleSource leftInput)
|
abstract void |
updateSink(LeftTupleSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class org.drools.common.BaseNode |
|---|
addAssociation, attach, attach, doRemove, getAssociations, getId, getPartitionId, hashCode, networkUpdated, remove, removeAssociation, setPartitionId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected LeftTupleSinkPropagator sink
Tuples.
| Constructor Detail |
|---|
public LeftTupleSource()
protected LeftTupleSource(int id,
RuleBasePartitionId partitionId,
boolean partitionsEnabled)
id - | Method Detail |
|---|
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class BaseNodeIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class BaseNodeIOExceptionpublic void addTupleSink(LeftTupleSink tupleSink)
protected void addTupleSink(LeftTupleSink tupleSink,
BuildContext context)
TupleSink so that it may receive
Tuples propagated from this TupleSource.
tupleSink - The TupleSink to receive propagated
Tuples.
protected LeftTupleSinkPropagator addTupleSink(LeftTupleSinkPropagator sinkPropagator,
LeftTupleSink tupleSink,
BuildContext context)
protected void removeTupleSink(LeftTupleSink tupleSink)
TupleSink
tupleSink - The TupleSink to removepublic LeftTupleSinkPropagator getSinkPropagator()
public abstract void updateSink(LeftTupleSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
public boolean isInUse()
BaseNode
isInUse in class BaseNode
protected final void initMasks(BuildContext context,
LeftTupleSource leftInput)
protected void initDeclaredMask(BuildContext context,
LeftTupleSource leftInput)
protected void setLeftListenedProperties(List<String> leftListenedProperties)
protected void initInferredMask(LeftTupleSource leftInput)
protected LeftTupleSource unwrapLeftInput(LeftTupleSource leftInput)
public void modifyLeftTuple(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory)
public static void doModifyLeftTuple(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory,
LeftTupleSink sink,
int leftInputOtnId,
long leftInferredMask)
public long getLeftDeclaredMask()
public long getLeftInferredMask()
protected void setLeftInferredMask(long leftInferredMask)
public long getLeftNegativeMask()
public int getLeftInputOtnId()
public void setLeftInputOtnId(int leftInputOtnId)
protected abstract ObjectTypeNode getObjectTypeNode()
public ObjectType getObjectType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||