Interface Accumulator

    • Method Detail

      • createWorkingMemoryContext

        Object createWorkingMemoryContext()
        Creates and return a context object for each working memory instance
        Returns:
      • createContext

        Object createContext()
        Creates the context object for an accumulator session. The context is passed as a parameter to every subsequent accumulator method call in the same session.
        Returns:
      • init

        Object init​(Object workingMemoryContext,
                    Object context,
                    Tuple leftTuple,
                    Declaration[] declarations,
                    WorkingMemory workingMemory)
        Executes the initialization block of code
        Parameters:
        leftTuple - tuple causing the rule fire
        declarations - previous declarations
        workingMemory -
        Throws:
        Exception
      • supportsReverse

        boolean supportsReverse()
        Returns true if this accumulator supports operation reversal
        Returns:
      • isCompiledInvoker

        static boolean isCompiledInvoker​(Accumulator accumulator)