Package org.drools.core.reteoo
Class AbstractLeftTuple
- java.lang.Object
-
- org.drools.core.reteoo.AbstractTuple
-
- org.drools.core.reteoo.AbstractLeftTuple
-
- All Implemented Interfaces:
java.io.Serializable,org.drools.base.reteoo.BaseTuple,LeftTuple,Tuple,Entry<Tuple>
- Direct Known Subclasses:
EvalNodeLeftTuple,JoinNodeLeftTuple,NotNodeLeftTuple,RuleTerminalNodeLeftTuple,SubnetworkTuple
public class AbstractLeftTuple extends AbstractTuple implements LeftTuple
A parent class for all specific LeftTuple specializations- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected TupleListmemory-
Fields inherited from class org.drools.core.reteoo.AbstractTuple
handle, handleNext, handlePrevious, sink, stagedNext, stagedPrevious
-
-
Constructor Summary
Constructors Constructor Description AbstractLeftTuple()AbstractLeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, Sink sink)AbstractLeftTuple(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled)AbstractLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled)AbstractLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink)AbstractLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink, boolean leftTupleMemoryEnabled)AbstractLeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled)
-
Method Summary
-
Methods inherited from class org.drools.core.reteoo.AbstractTuple
decreaseActivationCountForEvents, get, getContextObject, getNext, getObject, getOriginalFactHandle, getPrevious, getPropagationContext, getRootTuple, getStagedType, getTuple, increaseActivationCountForEvents, isExpired, setContextObject, setExpired, setFactHandle, setHandleNext, setHandlePrevious, setNext, setPrevious, setPropagationContext, setStagedNext, setStagedPrevious, setStagedType, skipEmptyHandles
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.drools.core.reteoo.LeftTuple
setExpired
-
Methods inherited from interface org.drools.core.reteoo.Tuple
decreaseActivationCountForEvents, findMostRecentPropagationContext, getContextObject, getOriginalFactHandle, getPrevious, getPropagationContext, getRootTuple, getStagedType, increaseActivationCountForEvents, isDeleted, isExpired, setContextObject, setFactHandle, setHandleNext, setHandlePrevious, setPrevious, setPropagationContext, setStagedNext, setStagedPrevious, setStagedType, skipEmptyHandles, toObjects
-
-
-
-
Field Detail
-
memory
protected TupleList memory
-
-
Constructor Detail
-
AbstractLeftTuple
public AbstractLeftTuple()
-
AbstractLeftTuple
public AbstractLeftTuple(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled)
-
AbstractLeftTuple
public AbstractLeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, Sink sink)
-
AbstractLeftTuple
public AbstractLeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled)
-
AbstractLeftTuple
public AbstractLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink)
-
AbstractLeftTuple
public AbstractLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink, boolean leftTupleMemoryEnabled)
-
AbstractLeftTuple
public AbstractLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled)
-
-
Method Detail
-
getNextParentWithHandle
public LeftTuple getNextParentWithHandle()
- Specified by:
getNextParentWithHandlein interfaceLeftTuple
-
reAddRight
public void reAddRight()
- Specified by:
reAddRightin interfaceLeftTuple
-
unlinkFromLeftParent
public void unlinkFromLeftParent()
- Specified by:
unlinkFromLeftParentin interfaceTuple
-
unlinkFromRightParent
public void unlinkFromRightParent()
- Specified by:
unlinkFromRightParentin interfaceTuple
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceorg.drools.base.reteoo.BaseTuple
-
getTupleSink
public LeftTupleSink getTupleSink()
- Specified by:
getTupleSinkin interfaceTuple
-
setLeftTupleSink
public void setLeftTupleSink(LeftTupleSink sink)
- Specified by:
setLeftTupleSinkin interfaceLeftTuple
-
getLeftParent
public LeftTuple getLeftParent()
- Specified by:
getLeftParentin interfaceLeftTuple
-
setLeftParent
public void setLeftParent(LeftTuple leftParent)
- Specified by:
setLeftParentin interfaceLeftTuple
-
getHandlePrevious
public LeftTuple getHandlePrevious()
- Specified by:
getHandlePreviousin interfaceTuple- Overrides:
getHandlePreviousin classAbstractTuple
-
getHandleNext
public LeftTuple getHandleNext()
- Specified by:
getHandleNextin interfaceTuple- Overrides:
getHandleNextin classAbstractTuple
-
getRightParent
public RightTuple getRightParent()
- Specified by:
getRightParentin interfaceLeftTuple
-
setRightParent
public void setRightParent(RightTuple rightParent)
- Specified by:
setRightParentin interfaceLeftTuple
-
getRightParentPrevious
public LeftTuple getRightParentPrevious()
- Specified by:
getRightParentPreviousin interfaceLeftTuple
-
setRightParentPrevious
public void setRightParentPrevious(LeftTuple rightParentLeft)
- Specified by:
setRightParentPreviousin interfaceLeftTuple
-
getRightParentNext
public LeftTuple getRightParentNext()
- Specified by:
getRightParentNextin interfaceLeftTuple
-
setRightParentNext
public void setRightParentNext(LeftTuple rightParentRight)
- Specified by:
setRightParentNextin interfaceLeftTuple
-
get
public org.kie.api.runtime.rule.FactHandle get(int index)
- Specified by:
getin interfaceorg.drools.base.reteoo.BaseTuple
-
toFactHandles
public org.kie.api.runtime.rule.FactHandle[] toFactHandles()
- Specified by:
toFactHandlesin interfaceorg.drools.base.reteoo.BaseTuple
-
toObjects
public java.lang.Object[] toObjects(boolean reverse)
- Specified by:
toObjectsin interfaceorg.drools.base.reteoo.BaseTuple
-
clearBlocker
public void clearBlocker()
- Specified by:
clearBlockerin interfaceLeftTuple
-
setBlocker
public void setBlocker(RightTuple blocker)
- Specified by:
setBlockerin interfaceLeftTuple
-
getBlocker
public RightTuple getBlocker()
- Specified by:
getBlockerin interfaceLeftTuple
-
getBlockedPrevious
public LeftTuple getBlockedPrevious()
- Specified by:
getBlockedPreviousin interfaceLeftTuple
-
setBlockedPrevious
public void setBlockedPrevious(LeftTuple blockerPrevious)
- Specified by:
setBlockedPreviousin interfaceLeftTuple
-
getBlockedNext
public LeftTuple getBlockedNext()
- Specified by:
getBlockedNextin interfaceLeftTuple
-
setBlockedNext
public void setBlockedNext(LeftTuple blockerNext)
- Specified by:
setBlockedNextin interfaceLeftTuple
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
size
public int size()
- Specified by:
sizein interfaceorg.drools.base.reteoo.BaseTuple
-
getFirstChild
public LeftTuple getFirstChild()
- Specified by:
getFirstChildin interfaceTuple
-
setFirstChild
public void setFirstChild(LeftTuple firstChild)
- Specified by:
setFirstChildin interfaceTuple
-
getLastChild
public LeftTuple getLastChild()
- Specified by:
getLastChildin interfaceTuple
-
setLastChild
public void setLastChild(LeftTuple lastChild)
- Specified by:
setLastChildin interfaceTuple
-
getStagedNext
public LeftTuple getStagedNext()
- Specified by:
getStagedNextin interfaceTuple
-
getStagedPrevious
public LeftTuple getStagedPrevious()
- Specified by:
getStagedPreviousin interfaceTuple
-
clearStaged
public void clearStaged()
- Specified by:
clearStagedin interfaceTuple- Overrides:
clearStagedin classAbstractTuple
-
getSubTuple
public LeftTuple getSubTuple(int elements)
Description copied from interface:TupleReturns the ReteTuple that contains the "elements" first elements in this tuple. Use carefully as no cloning is made during this process. This method is used by TupleStartEqualsConstraint when joining a subnetwork tuple into the main network tuple;- Specified by:
getSubTuplein interfaceTuple- Parameters:
elements- the number of elements to return, starting from the begining of the tuple- Returns:
- a ReteTuple containing the "elements" first elements of this tuple or null if "elements" is greater than size;
-
getParent
public LeftTuple getParent()
-
toExternalString
protected java.lang.String toExternalString()
-
clear
public void clear()
- Specified by:
clearin interfaceTuple- Overrides:
clearin classAbstractTuple
-
initPeer
public void initPeer(AbstractLeftTuple original, LeftTupleSink sink)
-
getObject
public java.lang.Object getObject(int index)
- Specified by:
getObjectin interfaceorg.drools.base.reteoo.BaseTuple
-
getInputOtnId
public ObjectTypeNode.Id getInputOtnId()
- Specified by:
getInputOtnIdin interfaceTuple
-
getTupleSource
public LeftTupleSource getTupleSource()
- Specified by:
getTupleSourcein interfaceTuple
-
getStagedTypeForQueries
public short getStagedTypeForQueries()
- Specified by:
getStagedTypeForQueriesin interfaceLeftTuple
-
setStagedTypeForQueries
public void setStagedTypeForQueries(short stagedTypeForQueries)
- Specified by:
setStagedTypeForQueriesin interfaceLeftTuple
-
isStagedOnRight
public boolean isStagedOnRight()
- Specified by:
isStagedOnRightin interfaceLeftTuple
-
getAccumulatedObjects
public java.util.Collection<java.lang.Object> getAccumulatedObjects()
- Specified by:
getAccumulatedObjectsin interfaceLeftTuple
-
getFactHandle
public InternalFactHandle getFactHandle()
- Specified by:
getFactHandlein interfaceorg.drools.base.reteoo.BaseTuple- Overrides:
getFactHandlein classAbstractTuple
-
-