Package org.drools.core.reteoo
Class RightTupleImpl
- java.lang.Object
-
- org.drools.core.reteoo.BaseTuple
-
- org.drools.core.reteoo.RightTupleImpl
-
- All Implemented Interfaces:
Serializable,RightTuple,Tuple,Entry<Tuple>
- Direct Known Subclasses:
WindowTuple
public class RightTupleImpl extends BaseTuple implements RightTuple
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.drools.core.reteoo.BaseTuple
handle, handleNext, handlePrevious, sink, stagedNext, stagedPrevious
-
-
Constructor Summary
Constructors Constructor Description RightTupleImpl()RightTupleImpl(InternalFactHandle handle)RightTupleImpl(InternalFactHandle handle, RightTupleSink sink)
-
Method Summary
-
Methods inherited from class org.drools.core.reteoo.BaseTuple
decreaseActivationCountForEvents, get, getContextObject, getFactHandle, 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.spi.Tuple
decreaseActivationCountForEvents, findMostRecentPropagationContext, get, getContextObject, getFactHandle, getObject, getOriginalFactHandle, getPrevious, getPropagationContext, getRootTuple, getStagedType, getTuple, increaseActivationCountForEvents, isDeleted, isExpired, setContextObject, setFactHandle, setHandleNext, setHandlePrevious, setPrevious, setPropagationContext, setStagedNext, setStagedPrevious, setStagedType, skipEmptyHandles, toObjects
-
-
-
-
Constructor Detail
-
RightTupleImpl
public RightTupleImpl()
-
RightTupleImpl
public RightTupleImpl(InternalFactHandle handle)
-
RightTupleImpl
public RightTupleImpl(InternalFactHandle handle, RightTupleSink sink)
-
-
Method Detail
-
getTupleSink
public RightTupleSink getTupleSink()
- Specified by:
getTupleSinkin interfaceTuple
-
unlinkFromRightParent
public void unlinkFromRightParent()
- Specified by:
unlinkFromRightParentin interfaceTuple
-
unlinkFromLeftParent
public void unlinkFromLeftParent()
- Specified by:
unlinkFromLeftParentin interfaceTuple
-
getBlocked
public LeftTuple getBlocked()
- Specified by:
getBlockedin interfaceRightTuple
-
setBlocked
public void setBlocked(LeftTuple leftTuple)
- Specified by:
setBlockedin interfaceRightTuple
-
addBlocked
public void addBlocked(LeftTuple leftTuple)
- Specified by:
addBlockedin interfaceRightTuple
-
removeBlocked
public void removeBlocked(LeftTuple leftTuple)
- Specified by:
removeBlockedin interfaceRightTuple
-
getHandlePrevious
public RightTuple getHandlePrevious()
- Specified by:
getHandlePreviousin interfaceTuple- Overrides:
getHandlePreviousin classBaseTuple
-
getHandleNext
public RightTuple getHandleNext()
- Specified by:
getHandleNextin interfaceTuple- Overrides:
getHandleNextin classBaseTuple
-
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 RightTuple getStagedNext()
- Specified by:
getStagedNextin interfaceTuple
-
getStagedPrevious
public RightTuple getStagedPrevious()
- Specified by:
getStagedPreviousin interfaceTuple
-
getTempBlocked
public LeftTuple getTempBlocked()
- Specified by:
getTempBlockedin interfaceRightTuple
-
setTempBlocked
public void setTempBlocked(LeftTuple tempBlocked)
- Specified by:
setTempBlockedin interfaceRightTuple
-
getTempNextRightTuple
public RightTuple getTempNextRightTuple()
- Specified by:
getTempNextRightTuplein interfaceRightTuple
-
setTempNextRightTuple
public void setTempNextRightTuple(RightTuple tempNextRightTuple)
- Specified by:
setTempNextRightTuplein interfaceRightTuple
-
clear
public void clear()
-
clearStaged
public void clearStaged()
- Specified by:
clearStagedin interfaceTuple- Overrides:
clearStagedin classBaseTuple
-
size
public int size()
Description copied from interface:TupleReturns the size of this tuple in number of elements (patterns)
-
get
public InternalFactHandle get(int pattern)
Description copied from interface:TupleReturns theFactHandlefor the given pattern index. If the pattern is empty It returns null.
-
toFactHandles
public InternalFactHandle[] toFactHandles()
Description copied from interface:TupleReturns the fact handles in reverse order- Specified by:
toFactHandlesin interfaceTuple
-
getSubTuple
public Tuple 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;
-
getInputOtnId
public ObjectTypeNode.Id getInputOtnId()
- Specified by:
getInputOtnIdin interfaceTuple
-
getTupleSource
public LeftTupleSource getTupleSource()
- Specified by:
getTupleSourcein interfaceTuple
-
retractTuple
public void retractTuple(PropagationContext context, InternalWorkingMemory workingMemory)
- Specified by:
retractTuplein interfaceRightTuple
-
setExpired
public void setExpired(InternalWorkingMemory workingMemory, PropagationContext pctx)
- Specified by:
setExpiredin interfaceRightTuple
-
getFactHandleForEvaluation
public InternalFactHandle getFactHandleForEvaluation()
- Specified by:
getFactHandleForEvaluationin interfaceRightTuple
-
-