|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.reteoo.ReteTuple
class ReteTuple
Base Rete-OO Tuple
implementation.
Tuple
Constructor Summary | |
---|---|
ReteTuple(ReteTuple left,
ReteTuple right)
|
|
ReteTuple(WorkingMemoryImpl workingMemory)
|
|
ReteTuple(WorkingMemoryImpl workingMemory,
Declaration declaration,
FactHandle handle)
|
Method Summary | |
---|---|
(package private) boolean |
dependsOn(FactHandle handle)
Determine if this tuple depends upon a specified object. |
Object |
get(Declaration declaration)
Retrieve the value bound to a particular Declaration . |
FactHandle |
getFactHandleForObject(Object object)
Retrieve the FactHandle for a given object. |
(package private) TupleKey |
getKey()
Retrieve the key for this tuple. |
long |
getLeastRecentFactTimeStamp()
|
long |
getMostRecentFactTimeStamp()
|
WorkingMemory |
getWorkingMemory()
Returns a reference to the WorkingMemory associated with
this object. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
ReteTuple(WorkingMemoryImpl workingMemory)
ReteTuple(ReteTuple left, ReteTuple right)
ReteTuple(WorkingMemoryImpl workingMemory, Declaration declaration, FactHandle handle)
Method Detail |
---|
public String toString()
toString
in class Object
TupleKey getKey()
boolean dependsOn(FactHandle handle)
handle
- The object handle to test.
true
if this tuple depends upon the specified
object, otherwise false
.public Object get(Declaration declaration)
Tuple
Declaration
.
get
in interface Tuple
declaration
- The Declaration
key.
Object
value.Tuple
public FactHandle getFactHandleForObject(Object object)
Tuple
FactHandle
for a given object.
Within a consequence of a rule, if the desire is to retract or modify a
root fact this method provides a way to retrieve the
FactHandle
. Facts that are not root fact objects
have no handle.
getFactHandleForObject
in interface Tuple
object
- The object.
null
if the supplied object is
not a root fact object.Tuple
public WorkingMemory getWorkingMemory()
Tuple
WorkingMemory
associated with
this object.
getWorkingMemory
in interface Tuple
public long getMostRecentFactTimeStamp()
getMostRecentFactTimeStamp
in interface Tuple
public long getLeastRecentFactTimeStamp()
getLeastRecentFactTimeStamp
in interface Tuple
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |