org.drools.spi
Interface Tuple


public interface Tuple

A mapping of Declaration s to current fact values.

See Also:
Declaration

Method Summary
 java.lang.Object get(Declaration declaration)
          Retrieve the value bound to a particular Declaration.
 FactHandle getFactHandleForObject(java.lang.Object object)
          Retrieve the FactHandle for a given object.
 long getLeastRecentFactTimeStamp()
           
 long getMostRecentFactTimeStamp()
           
 WorkingMemory getWorkingMemory()
          Returns a reference to the WorkingMemory associated with this object.
 

Method Detail

get

java.lang.Object get(Declaration declaration)
Retrieve the value bound to a particular Declaration.

Parameters:
declaration - The Declaration key.
Returns:
The currently bound Object value.

getFactHandleForObject

FactHandle getFactHandleForObject(java.lang.Object object)
Retrieve the 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.

Parameters:
object - The object.
Returns:
The fact-handle or null if the supplied object is not a root fact object.

getWorkingMemory

WorkingMemory getWorkingMemory()
Returns a reference to the WorkingMemory associated with this object.

Returns:
WorkingMemory

getMostRecentFactTimeStamp

long getMostRecentFactTimeStamp()

getLeastRecentFactTimeStamp

long getLeastRecentFactTimeStamp()