Interface BaseTuple


public interface BaseTuple
  • Method Details

    • get

      FactHandle get(Declaration declaration)
      Returns the FactHandle for the given Declaration, which in turn specifcy the Pattern that they depend on.
      Parameters:
      declaration - The Declaration which specifies the Pattern
      Returns:
      The FactHandle
    • get

      FactHandle get(int pattern)
      Returns the FactHandle for the given pattern index. If the pattern is empty It returns null.
      Parameters:
      pattern - The index of the pattern from which the FactHandleImpl is to be returned
      Returns:
      The FactHandle
    • getFactHandle

      FactHandle getFactHandle()
    • getObject

      Object getObject(int pattern)
    • getObject

      Object getObject(Declaration declaration)
    • size

      int size()
      Returns the size of this tuple in number of elements (patterns)
    • toObjects

      Object[] toObjects()
    • toObjects

      Object[] toObjects(boolean reverse)
    • toFactHandles

      FactHandle[] toFactHandles()
      Returns the fact handles in reverse order
    • getParent

      BaseTuple getParent()
    • getTuple

      BaseTuple getTuple(int index)
      Returns the tuple at the given index
      Parameters:
      index -
      Returns:
    • getIndex

      int getIndex()
    • getContextObject

      Object getContextObject()
    • skipEmptyHandles

      BaseTuple skipEmptyHandles()