org.drools.reteoo
Interface LeftTuple
- All Superinterfaces:
- Entry, Serializable, Tuple
- All Known Implementing Classes:
- LeftTupleImpl
public interface LeftTuple
- extends Entry, Tuple
reAdd
void reAdd()
reAddLeft
void reAddLeft()
reAddRight
void reAddRight()
unlinkFromLeftParent
void unlinkFromLeftParent()
unlinkFromRightParent
void unlinkFromRightParent()
getIndex
int getIndex()
getLeftTupleSink
LeftTupleSink getLeftTupleSink()
setLeftTupleSink
void setLeftTupleSink(LeftTupleSink sink)
getLeftParent
LeftTuple getLeftParent()
setLeftParent
void setLeftParent(LeftTuple leftParent)
getLeftParentPrevious
LeftTuple getLeftParentPrevious()
setLeftParentPrevious
void setLeftParentPrevious(LeftTuple leftParentLeft)
getLeftParentNext
LeftTuple getLeftParentNext()
setLeftParentNext
void setLeftParentNext(LeftTuple leftParentright)
getRightParent
RightTuple getRightParent()
setRightParent
void setRightParent(RightTuple rightParent)
getRightParentPrevious
LeftTuple getRightParentPrevious()
setRightParentPrevious
void setRightParentPrevious(LeftTuple rightParentLeft)
getRightParentNext
LeftTuple getRightParentNext()
setRightParentNext
void setRightParentNext(LeftTuple rightParentRight)
get
InternalFactHandle get(int index)
- Description copied from interface:
Tuple
- Returns the
FactHandle for the given pattern index. If the pattern is empty
It returns null.
- Specified by:
get in interface Tuple
- Parameters:
index - The index of the pattern from which the FactHandleImpl is to be returned
- Returns:
- The
FactHandle
getMemory
LeftTupleList getMemory()
setMemory
void setMemory(LeftTupleList memory)
getPrevious
Entry getPrevious()
setPrevious
void setPrevious(Entry previous)
setNext
void setNext(Entry next)
- Specified by:
setNext in interface Entry
getNext
Entry getNext()
- Specified by:
getNext in interface Entry
getLastHandle
InternalFactHandle getLastHandle()
get
InternalFactHandle get(Declaration declaration)
- Description copied from interface:
Tuple
- Returns the
FactHandle for the given Declaration, which in turn
specifcy the Pattern that they depend on.
- Specified by:
get in interface Tuple
- Parameters:
declaration - The Declaration which specifies the Pattern
- Returns:
- The
FactHandle
getFactHandles
InternalFactHandle[] getFactHandles()
- Returns the fact handles in reverse order
- Specified by:
getFactHandles in interface Tuple
toFactHandles
InternalFactHandle[] toFactHandles()
setBlocker
void setBlocker(RightTuple blocker)
getBlocker
RightTuple getBlocker()
getBlockedPrevious
LeftTuple getBlockedPrevious()
setBlockedPrevious
void setBlockedPrevious(LeftTuple blockerPrevious)
getBlockedNext
LeftTuple getBlockedNext()
setBlockedNext
void setBlockedNext(LeftTuple blockerNext)
getObject
Object getObject()
setObject
void setObject(Object object)
toString
String toString()
- Overrides:
toString in class Object
hashCode
int hashCode()
- Overrides:
hashCode in class Object
equals
boolean equals(LeftTuple other)
- We use this equals method to avoid the cast
- Parameters:
tuple -
- Returns:
equals
boolean equals(Object object)
- Overrides:
equals in class Object
size
int size()
- Description copied from interface:
Tuple
- Returns the size of this tuple in number of elements (patterns)
- Specified by:
size in interface Tuple
- Returns:
getSubTuple
LeftTuple getSubTuple(int elements)
- 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;
- 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;
toObjectArray
Object[] toObjectArray()
getParent
LeftTuple getParent()
toTupleTree
String toTupleTree(int indent)
increaseActivationCountForEvents
void increaseActivationCountForEvents()
decreaseActivationCountForEvents
void decreaseActivationCountForEvents()
getHandle
InternalFactHandle getHandle()
setHandle
void setHandle(InternalFactHandle handle)
getFirstChild
LeftTuple getFirstChild()
setFirstChild
void setFirstChild(LeftTuple firstChild)
getLastChild
LeftTuple getLastChild()
setLastChild
void setLastChild(LeftTuple lastChild)
getSink
LeftTupleSink getSink()
setSink
void setSink(LeftTupleSink sink)
setIndex
void setIndex(int index)
setParent
void setParent(LeftTuple parent)
Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.