org.drools.spi
Interface Tuple

All Known Implementing Classes:
ReteTuple, Token

public interface Tuple

Partial matches are propagated through the Rete network as Tuples. Each Tuple Is able to return the FactHandleImpl members of the partial match for the requested column. The column refers to the index position of the FactHandleImpl in the underlying implementation.

See Also:
FactHandle;
 

Method Summary
 boolean dependsOn(FactHandle handle)
           
 InternalFactHandle get(Declaration declaration)
          Returns the FactHandle for the given Declaration, which in turn specifcy the Column that they depend on.
 InternalFactHandle get(int column)
          Returns the FactHandle for the given column index.
 InternalFactHandle[] getFactHandles()
           
 long getRecency()
           
 void setActivation(Activation activation)
           
 

Method Detail

get

public InternalFactHandle get(int column)
Returns the FactHandle for the given column index. If the column is empty It returns null.

Parameters:
column - The index of the column from which the FactHandleImpl is to be returned
Returns:
The FactHandle

get

public InternalFactHandle get(Declaration declaration)
Returns the FactHandle for the given Declaration, which in turn specifcy the Column that they depend on.

Parameters:
declaration - The Declaration which specifies the Column
Returns:
The FactHandle

getFactHandles

public InternalFactHandle[] getFactHandles()

getRecency

public long getRecency()

dependsOn

public boolean dependsOn(FactHandle handle)

setActivation

public void setActivation(Activation activation)