|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.drools.leaps.Token
public class Token
this object wears multiple hats - Tuple and being main element that wraps fact handle on main leaps stack
| Constructor Summary | |
|---|---|
Token(org.drools.leaps.LeapsWorkingMemory workingMemory,
InternalFactHandle factHandle,
PropagationContext propagationContext)
|
|
| Method Summary | |
|---|---|
boolean |
dependsOn(FactHandle handle)
Determine if this tuple depends upon a specified object. |
boolean |
equals(java.lang.Object that)
We always have only one Tuple per fact handle hence match on handle id |
InternalFactHandle |
get(Declaration declaration)
Returns the FactHandle for the given Declaration, which in turn
specifcy the Column that they depend on. |
InternalFactHandle |
get(int idx)
Retrieve the value at position |
LeapsRuleHandle |
getCurrentRuleHandle()
|
InternalFactHandle |
getDominantFactHandle()
|
InternalFactHandle[] |
getFactHandles()
|
PropagationContext |
getPropagationContext()
|
long |
getRecency()
|
WorkingMemory |
getWorkingMemory()
Returns a reference to the WorkingMemory associated with
this object. |
int |
hashCode()
|
boolean |
hasNextRuleHandle()
|
boolean |
isResume()
|
LeapsRuleHandle |
nextRuleHandle()
|
void |
set(int idx,
LeapsFactHandle factHandle)
|
void |
setActivation(Activation activation)
Do nothing because this tuple never gets to agendaItem stage. |
void |
setResume(boolean resume)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Token(org.drools.leaps.LeapsWorkingMemory workingMemory,
InternalFactHandle factHandle,
PropagationContext propagationContext)
| Method Detail |
|---|
public LeapsRuleHandle nextRuleHandle()
public boolean hasNextRuleHandle()
memory -
public int hashCode()
hashCode in class java.lang.Object
public void set(int idx,
LeapsFactHandle factHandle)
public InternalFactHandle getDominantFactHandle()
public LeapsRuleHandle getCurrentRuleHandle()
public boolean isResume()
public void setResume(boolean resume)
public boolean equals(java.lang.Object that)
equals in class java.lang.ObjectObjectpublic InternalFactHandle get(int idx)
position -
Object value.Tuplepublic InternalFactHandle get(Declaration declaration)
TupleFactHandle for the given Declaration, which in turn
specifcy the Column that they depend on.
declaration - The Declaration which specifies the Column
FactHandleTuplepublic InternalFactHandle[] getFactHandles()
getFactHandles in interface TupleTuplepublic long getRecency()
getRecency in interface Tuplepublic WorkingMemory getWorkingMemory()
WorkingMemory associated with
this object.
public java.lang.String toString()
toString in class java.lang.ObjectObjectpublic boolean dependsOn(FactHandle handle)
handle - The object handle to test.
true if this tuple depends upon the specified
object, otherwise false.public void setActivation(Activation activation)
setActivation in interface TuplegetTuple(),
Tuplepublic PropagationContext getPropagationContext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||