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 InternalFactHandle
handle
protected Tuple
handleNext
protected Tuple
handlePrevious
protected Sink
sink
protected Tuple
stagedNext
protected Tuple
stagedPrevious
-
Constructor Summary
Constructors Constructor Description BaseTuple()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
clearStaged()
void
decreaseActivationCountForEvents()
InternalFactHandle
get(Declaration declaration)
Returns theFactHandle
for the givenDeclaration
, which in turn specifcy thePattern
that they depend on.Object
getContextObject()
InternalFactHandle
getFactHandle()
Tuple
getHandleNext()
Tuple
getHandlePrevious()
Tuple
getNext()
Object
getObject(Declaration declaration)
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 WindowNodeTuple
getPrevious()
PropagationContext
getPropagationContext()
Tuple
getRootTuple()
short
getStagedType()
Tuple
getTuple(int index)
Returns the tuple at the given indexvoid
increaseActivationCountForEvents()
boolean
isExpired()
void
setContextObject(Object contextObject)
void
setExpired()
void
setFactHandle(InternalFactHandle handle)
void
setHandleNext(Tuple handleNext)
void
setHandlePrevious(Tuple handlePrevious)
void
setNext(Tuple next)
void
setPrevious(Tuple previous)
void
setPropagationContext(PropagationContext propagationContext)
void
setStagedNext(Tuple stageNext)
void
setStagedPrevious(Tuple stagedPrevious)
void
setStagedType(short stagedType)
Tuple
skipEmptyHandles()
-
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:
getContextObject
in interfaceTuple
-
setContextObject
public final void setContextObject(Object contextObject)
- Specified by:
setContextObject
in interfaceTuple
-
getStagedType
public short getStagedType()
- Specified by:
getStagedType
in interfaceTuple
-
setStagedType
public void setStagedType(short stagedType)
- Specified by:
setStagedType
in interfaceTuple
-
clearStaged
public void clearStaged()
- Specified by:
clearStaged
in interfaceTuple
-
getFactHandle
public InternalFactHandle getFactHandle()
- Specified by:
getFactHandle
in 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:
getOriginalFactHandle
in interfaceTuple
-
setFactHandle
public void setFactHandle(InternalFactHandle handle)
- Specified by:
setFactHandle
in interfaceTuple
-
getPropagationContext
public PropagationContext getPropagationContext()
- Specified by:
getPropagationContext
in interfaceTuple
-
setPropagationContext
public void setPropagationContext(PropagationContext propagationContext)
- Specified by:
setPropagationContext
in interfaceTuple
-
setStagedNext
public void setStagedNext(Tuple stageNext)
- Specified by:
setStagedNext
in interfaceTuple
-
setStagedPrevious
public void setStagedPrevious(Tuple stagedPrevious)
- Specified by:
setStagedPrevious
in interfaceTuple
-
getPrevious
public Tuple getPrevious()
- Specified by:
getPrevious
in interfaceTuple
-
setPrevious
public void setPrevious(Tuple previous)
- Specified by:
setPrevious
in interfaceTuple
-
get
public InternalFactHandle get(Declaration declaration)
Description copied from interface:Tuple
Returns theFactHandle
for the givenDeclaration
, which in turn specifcy thePattern
that they depend on.
-
increaseActivationCountForEvents
public void increaseActivationCountForEvents()
- Specified by:
increaseActivationCountForEvents
in interfaceTuple
-
decreaseActivationCountForEvents
public void decreaseActivationCountForEvents()
- Specified by:
decreaseActivationCountForEvents
in interfaceTuple
-
getTuple
public Tuple getTuple(int index)
Description copied from interface:Tuple
Returns the tuple at the given index
-
getRootTuple
public Tuple getRootTuple()
- Specified by:
getRootTuple
in interfaceTuple
-
skipEmptyHandles
public Tuple skipEmptyHandles()
- Specified by:
skipEmptyHandles
in interfaceTuple
-
getHandlePrevious
public Tuple getHandlePrevious()
- Specified by:
getHandlePrevious
in interfaceTuple
-
setHandlePrevious
public void setHandlePrevious(Tuple handlePrevious)
- Specified by:
setHandlePrevious
in interfaceTuple
-
getHandleNext
public Tuple getHandleNext()
- Specified by:
getHandleNext
in interfaceTuple
-
setHandleNext
public void setHandleNext(Tuple handleNext)
- Specified by:
setHandleNext
in interfaceTuple
-
setExpired
public void setExpired()
-
-