|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.reteoo.ReteTuple
Constructor Summary | |
---|---|
ReteTuple(InternalFactHandle handle)
|
|
ReteTuple(ReteTuple tuple)
|
|
ReteTuple(ReteTuple parentTuple,
InternalFactHandle handle)
|
Method Summary | |
---|---|
boolean |
equals(Object object)
|
boolean |
equals(ReteTuple other)
We use this equals method to avoid the cast |
InternalFactHandle |
get(Declaration declaration)
Returns the FactHandle for the given Declaration , which in turn
specifcy the Pattern that they depend on. |
InternalFactHandle |
get(int index)
Returns the FactHandle for the given pattern index. |
Activation |
getActivation()
|
InternalFactHandle[] |
getFactHandles()
Returns the fact handles in reverse order |
InternalFactHandle |
getLastHandle()
|
int |
getMatches()
|
Entry |
getNext()
|
long |
getRecency()
Returns the tuple recency |
ReteTuple |
getSubTuple(int elements)
Returns the ReteTuple that contains the "elements" first elements in this tuple. |
int |
hashCode()
|
boolean |
isFieldIndexed()
|
void |
setActivation(Activation activation)
|
void |
setIsFieldIndexHashCode(boolean fieldIndexed)
|
void |
setMatches(int matches)
|
void |
setNext(Entry next)
|
int |
size()
Returns the size of this tuple in number of elements (patterns) |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReteTuple(InternalFactHandle handle)
public ReteTuple(ReteTuple tuple)
public ReteTuple(ReteTuple parentTuple, InternalFactHandle handle)
Method Detail |
---|
public InternalFactHandle get(int index)
Tuple
FactHandle
for the given pattern index. If the pattern is empty
It returns null.
index
- The index of the pattern from which the FactHandleImpl
is to be returned
FactHandle
public void setNext(Entry next)
public Entry getNext()
public boolean isFieldIndexed()
public void setIsFieldIndexHashCode(boolean fieldIndexed)
public int getMatches()
public void setMatches(int matches)
public InternalFactHandle getLastHandle()
public InternalFactHandle get(Declaration declaration)
Tuple
FactHandle
for the given Declaration
, which in turn
specifcy the Pattern
that they depend on.
declaration
- The Declaration
which specifies the Pattern
FactHandle
public Activation getActivation()
public InternalFactHandle[] getFactHandles()
getFactHandles
in interface Tuple
public long getRecency()
Tuple
getRecency
in interface Tuple
public void setActivation(Activation activation)
public int hashCode()
public String toString()
public boolean equals(ReteTuple other)
tuple
-
public boolean equals(Object object)
public int size()
Tuple
public ReteTuple getSubTuple(int elements)
elements
- the number of elements to return, starting from
the begining of the tuple
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |