Package org.drools.core.reteoo
Class RightTupleImpl
- java.lang.Object
-
- org.drools.core.reteoo.AbstractTuple
-
- org.drools.core.reteoo.RightTupleImpl
-
- All Implemented Interfaces:
java.io.Serializable
,org.drools.base.reteoo.BaseTuple
,RightTuple
,Tuple
,Entry<Tuple>
- Direct Known Subclasses:
WindowTuple
public class RightTupleImpl extends AbstractTuple implements RightTuple
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.drools.core.reteoo.AbstractTuple
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.AbstractTuple
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.base.reteoo.BaseTuple
get, getFactHandle, getObject, getTuple
-
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
-
-
-
-
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:
getTupleSink
in interfaceTuple
-
unlinkFromRightParent
public void unlinkFromRightParent()
- Specified by:
unlinkFromRightParent
in interfaceTuple
-
unlinkFromLeftParent
public void unlinkFromLeftParent()
- Specified by:
unlinkFromLeftParent
in interfaceTuple
-
getBlocked
public LeftTuple getBlocked()
- Specified by:
getBlocked
in interfaceRightTuple
-
setBlocked
public void setBlocked(LeftTuple leftTuple)
- Specified by:
setBlocked
in interfaceRightTuple
-
addBlocked
public void addBlocked(LeftTuple leftTuple)
- Specified by:
addBlocked
in interfaceRightTuple
-
removeBlocked
public void removeBlocked(LeftTuple leftTuple)
- Specified by:
removeBlocked
in interfaceRightTuple
-
getHandlePrevious
public RightTuple getHandlePrevious()
- Specified by:
getHandlePrevious
in interfaceTuple
- Overrides:
getHandlePrevious
in classAbstractTuple
-
getHandleNext
public RightTuple getHandleNext()
- Specified by:
getHandleNext
in interfaceTuple
- Overrides:
getHandleNext
in classAbstractTuple
-
getFirstChild
public LeftTuple getFirstChild()
- Specified by:
getFirstChild
in interfaceTuple
-
setFirstChild
public void setFirstChild(LeftTuple firstChild)
- Specified by:
setFirstChild
in interfaceTuple
-
getLastChild
public LeftTuple getLastChild()
- Specified by:
getLastChild
in interfaceTuple
-
setLastChild
public void setLastChild(LeftTuple lastChild)
- Specified by:
setLastChild
in interfaceTuple
-
getStagedNext
public RightTuple getStagedNext()
- Specified by:
getStagedNext
in interfaceTuple
-
getStagedPrevious
public RightTuple getStagedPrevious()
- Specified by:
getStagedPrevious
in interfaceTuple
-
getTempBlocked
public LeftTuple getTempBlocked()
- Specified by:
getTempBlocked
in interfaceRightTuple
-
setTempBlocked
public void setTempBlocked(LeftTuple tempBlocked)
- Specified by:
setTempBlocked
in interfaceRightTuple
-
getTempNextRightTuple
public RightTuple getTempNextRightTuple()
- Specified by:
getTempNextRightTuple
in interfaceRightTuple
-
setTempNextRightTuple
public void setTempNextRightTuple(RightTuple tempNextRightTuple)
- Specified by:
setTempNextRightTuple
in interfaceRightTuple
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
clear
public void clear()
- Specified by:
clear
in interfaceTuple
- Overrides:
clear
in classAbstractTuple
-
clearStaged
public void clearStaged()
- Specified by:
clearStaged
in interfaceTuple
- Overrides:
clearStaged
in classAbstractTuple
-
getObject
public java.lang.Object getObject(int pattern)
- Specified by:
getObject
in interfaceorg.drools.base.reteoo.BaseTuple
-
size
public int size()
- Specified by:
size
in interfaceorg.drools.base.reteoo.BaseTuple
-
getIndex
public int getIndex()
- Specified by:
getIndex
in interfaceorg.drools.base.reteoo.BaseTuple
-
toObjects
public java.lang.Object[] toObjects(boolean reverse)
- Specified by:
toObjects
in interfaceorg.drools.base.reteoo.BaseTuple
-
get
public InternalFactHandle get(int pattern)
- Specified by:
get
in interfaceorg.drools.base.reteoo.BaseTuple
-
toFactHandles
public InternalFactHandle[] toFactHandles()
- Specified by:
toFactHandles
in interfaceorg.drools.base.reteoo.BaseTuple
-
getParent
public Tuple getParent()
-
getSubTuple
public Tuple getSubTuple(int elements)
Description copied from interface:Tuple
Returns 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:
getSubTuple
in 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:
getInputOtnId
in interfaceTuple
-
getTupleSource
public LeftTupleSource getTupleSource()
- Specified by:
getTupleSource
in interfaceTuple
-
retractTuple
public void retractTuple(PropagationContext context, ReteEvaluator reteEvaluator)
- Specified by:
retractTuple
in interfaceRightTuple
-
setExpired
public void setExpired(ReteEvaluator reteEvaluator, PropagationContext pctx)
- Specified by:
setExpired
in interfaceRightTuple
-
getFactHandleForEvaluation
public InternalFactHandle getFactHandleForEvaluation()
- Specified by:
getFactHandleForEvaluation
in interfaceRightTuple
-
-