Interface Tuple

    • Method Detail

      • getObject

        java.lang.Object getObject​(int pattern)
      • getObject

        java.lang.Object getObject​(Declaration declaration)
      • toObjects

        default java.lang.Object[] toObjects()
      • toObjects

        java.lang.Object[] toObjects​(boolean reverse)
      • get

        InternalFactHandle 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
      • getTuple

        Tuple getTuple​(int index)
        Returns the tuple at the given index
        Parameters:
        index -
        Returns:
      • get

        InternalFactHandle 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
      • toFactHandles

        InternalFactHandle[] toFactHandles()
        Returns the fact handles in reverse order
      • size

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

        int getIndex()
      • getParent

        Tuple getParent()
      • getSubTuple

        Tuple getSubTuple​(int elements)
        Returns the ReteTuple that contains the "elements" first elements in this tuple.

        Use carefully as no cloning is made during this process.

        This method is used by TupleStartEqualsConstraint when joining a subnetwork tuple into the main network tuple;

        Parameters:
        elements - the number of elements to return, starting from the begining of the tuple
        Returns:
        a ReteTuple containing the "elements" first elements of this tuple or null if "elements" is greater than size;
      • getContextObject

        java.lang.Object getContextObject()
      • setContextObject

        void setContextObject​(java.lang.Object object)
      • getStagedType

        short getStagedType()
      • setStagedType

        void setStagedType​(short stagedType)
      • isDeleted

        default boolean isDeleted()
      • getStagedPrevious

        Tuple getStagedPrevious()
      • setStagedPrevious

        void setStagedPrevious​(Tuple stagePrevious)
      • getStagedNext

        <T extends Tuple> T getStagedNext()
      • setStagedNext

        void setStagedNext​(Tuple stageNext)
      • clear

        void clear()
      • clearStaged

        void clearStaged()
      • reAdd

        void reAdd()
      • unlinkFromRightParent

        void unlinkFromRightParent()
      • unlinkFromLeftParent

        void unlinkFromLeftParent()
      • setPropagationContext

        void setPropagationContext​(PropagationContext propagationContext)
      • getPrevious

        Tuple getPrevious()
      • setPrevious

        void setPrevious​(Tuple previous)
      • getTupleSink

        <S extends Sink> S getTupleSink()
      • setMemory

        void setMemory​(TupleList memory)
      • increaseActivationCountForEvents

        void increaseActivationCountForEvents()
      • decreaseActivationCountForEvents

        void decreaseActivationCountForEvents()
      • getRootTuple

        Tuple getRootTuple()
      • skipEmptyHandles

        Tuple skipEmptyHandles()
      • setFirstChild

        void setFirstChild​(LeftTuple firstChild)
      • setLastChild

        void setLastChild​(LeftTuple firstChild)
      • getHandlePrevious

        <T extends Tuple> T getHandlePrevious()
      • setHandlePrevious

        void setHandlePrevious​(Tuple leftParentLeft)
      • getHandleNext

        <T extends Tuple> T getHandleNext()
      • setHandleNext

        void setHandleNext​(Tuple leftParentright)
      • getTupleSource

        <N extends NetworkNode> N getTupleSource()
      • isExpired

        boolean isExpired()
      • findMostRecentPropagationContext

        default PropagationContext findMostRecentPropagationContext()