Package org.drools.core.reteoo
Class BaseTuple
- java.lang.Object
-
- org.drools.core.reteoo.BaseTuple
-
- All Implemented Interfaces:
Serializable,Tuple,Entry<Tuple>
- Direct Known Subclasses:
BaseLeftTuple,RightTupleImpl
public abstract class BaseTuple extends Object implements Tuple
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected InternalFactHandlehandleprotected TuplehandleNextprotected TuplehandlePreviousprotected Sinksinkprotected TuplestagedNextprotected TuplestagedPrevious
-
Constructor Summary
Constructors Constructor Description BaseTuple()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidclearStaged()voiddecreaseActivationCountForEvents()InternalFactHandleget(Declaration declaration)Returns theFactHandlefor the givenDeclaration, which in turn specifcy thePatternthat they depend on.ObjectgetContextObject()InternalFactHandlegetFactHandle()TuplegetHandleNext()TuplegetHandlePrevious()TuplegetNext()ObjectgetObject(Declaration declaration)InternalFactHandlegetOriginalFactHandle()This method is used by the consequence invoker (generated via asm by the ConsequenceGenerator) to always pass to the consequence the original fact handle even in case when it has been cloned and linked by a WindowNodeTuplegetPrevious()PropagationContextgetPropagationContext()TuplegetRootTuple()shortgetStagedType()TuplegetTuple(int index)Returns the tuple at the given indexvoidincreaseActivationCountForEvents()booleanisExpired()voidsetContextObject(Object contextObject)voidsetExpired()voidsetFactHandle(InternalFactHandle handle)voidsetHandleNext(Tuple handleNext)voidsetHandlePrevious(Tuple handlePrevious)voidsetNext(Tuple next)voidsetPrevious(Tuple previous)voidsetPropagationContext(PropagationContext propagationContext)voidsetStagedNext(Tuple stageNext)voidsetStagedPrevious(Tuple stagedPrevious)voidsetStagedType(short stagedType)TupleskipEmptyHandles()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.core.spi.Tuple
findMostRecentPropagationContext, get, getFirstChild, getIndex, getInputOtnId, getLastChild, getMemory, getObject, getParent, getStagedNext, getStagedPrevious, getSubTuple, getTupleSink, getTupleSource, isDeleted, reAdd, setFirstChild, setLastChild, setMemory, size, toFactHandles, toObjects, toObjects, unlinkFromLeftParent, unlinkFromRightParent
-
-
-
-
Method Detail
-
getObject
public Object getObject(Declaration declaration)
-
getContextObject
public Object getContextObject()
- Specified by:
getContextObjectin interfaceTuple
-
setContextObject
public final void setContextObject(Object contextObject)
- Specified by:
setContextObjectin interfaceTuple
-
getStagedType
public short getStagedType()
- Specified by:
getStagedTypein interfaceTuple
-
setStagedType
public void setStagedType(short stagedType)
- Specified by:
setStagedTypein interfaceTuple
-
clearStaged
public void clearStaged()
- Specified by:
clearStagedin interfaceTuple
-
getFactHandle
public InternalFactHandle getFactHandle()
- Specified by:
getFactHandlein interfaceTuple
-
getOriginalFactHandle
public InternalFactHandle getOriginalFactHandle()
This method is used by the consequence invoker (generated via asm by the ConsequenceGenerator) to always pass to the consequence the original fact handle even in case when it has been cloned and linked by a WindowNode- Specified by:
getOriginalFactHandlein interfaceTuple
-
setFactHandle
public void setFactHandle(InternalFactHandle handle)
- Specified by:
setFactHandlein interfaceTuple
-
getPropagationContext
public PropagationContext getPropagationContext()
- Specified by:
getPropagationContextin interfaceTuple
-
setPropagationContext
public void setPropagationContext(PropagationContext propagationContext)
- Specified by:
setPropagationContextin interfaceTuple
-
setStagedNext
public void setStagedNext(Tuple stageNext)
- Specified by:
setStagedNextin interfaceTuple
-
setStagedPrevious
public void setStagedPrevious(Tuple stagedPrevious)
- Specified by:
setStagedPreviousin interfaceTuple
-
getPrevious
public Tuple getPrevious()
- Specified by:
getPreviousin interfaceTuple
-
setPrevious
public void setPrevious(Tuple previous)
- Specified by:
setPreviousin interfaceTuple
-
get
public InternalFactHandle get(Declaration declaration)
Description copied from interface:TupleReturns theFactHandlefor the givenDeclaration, which in turn specifcy thePatternthat they depend on.
-
increaseActivationCountForEvents
public void increaseActivationCountForEvents()
- Specified by:
increaseActivationCountForEventsin interfaceTuple
-
decreaseActivationCountForEvents
public void decreaseActivationCountForEvents()
- Specified by:
decreaseActivationCountForEventsin interfaceTuple
-
getTuple
public Tuple getTuple(int index)
Description copied from interface:TupleReturns the tuple at the given index
-
getRootTuple
public Tuple getRootTuple()
- Specified by:
getRootTuplein interfaceTuple
-
skipEmptyHandles
public Tuple skipEmptyHandles()
- Specified by:
skipEmptyHandlesin interfaceTuple
-
getHandlePrevious
public Tuple getHandlePrevious()
- Specified by:
getHandlePreviousin interfaceTuple
-
setHandlePrevious
public void setHandlePrevious(Tuple handlePrevious)
- Specified by:
setHandlePreviousin interfaceTuple
-
getHandleNext
public Tuple getHandleNext()
- Specified by:
getHandleNextin interfaceTuple
-
setHandleNext
public void setHandleNext(Tuple handleNext)
- Specified by:
setHandleNextin interfaceTuple
-
setExpired
public void setExpired()
-
-