| org.drools.spi.Accumulator
All known Subclasses: org.drools.reteoo.MockAccumulator, org.drools.base.mvel.MVELAccumulator, org.drools.base.accumulators.MVELAccumulatorFunctionExecutor, org.drools.base.accumulators.JavaAccumulatorFunctionExecutor,
Accumulator | public interface Accumulator extends Invoker(Code) | | Accumulator
Created: 04/06/2006
author: Edson Tirelli version: $Id: Accumulator.java 13464 2007-07-13 22:15:50Z tirelli $ |
Method Summary | |
public void | accumulate(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, WorkingMemory workingMemory) | public Object | createContext() Creates the context object for an accumulator session. | public Object | createWorkingMemoryContext() | public Object | getResult(Object workingMemoryContext, Object context, Tuple leftTuple, Declaration[] declarations, WorkingMemory workingMemory) | public void | init(Object workingMemoryContext, Object context, Tuple leftTuple, Declaration[] declarations, WorkingMemory workingMemory) | public void | reverse(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, WorkingMemory workingMemory) | public boolean | supportsReverse() |
createContext | public Object createContext()(Code) | | 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.
|
createWorkingMemoryContext | public Object createWorkingMemoryContext()(Code) | | Creates and return a context object for each working memory instance
|
init | public void init(Object workingMemoryContext, Object context, Tuple leftTuple, Declaration[] declarations, WorkingMemory workingMemory) throws Exception(Code) | | Executes the initialization block of code
Parameters: leftTuple - tuple causing the rule fire Parameters: declarations - previous declarations Parameters: workingMemory - throws: Exception - |
supportsReverse | public boolean supportsReverse()(Code) | | Returns true if this accumulator supports operation reversal
|
|
|