|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.base.accumulators.MVELAccumulatorFunctionExecutor
public class MVELAccumulatorFunctionExecutor
An MVEL accumulator function executor implementation
Constructor Summary | |
---|---|
MVELAccumulatorFunctionExecutor(DroolsMVELFactory factory,
java.io.Serializable expression,
AccumulateFunction function)
|
Method Summary | |
---|---|
void |
accumulate(java.lang.Object workingMemoryContext,
java.lang.Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory)
Executes the accumulate (action) code for the given fact handle |
java.lang.Object |
createContext()
Creates the context object for an accumulator session. |
java.lang.Object |
createWorkingMemoryContext()
Creates and return a context object for each working memory instance |
java.lang.Object |
getResult(java.lang.Object workingMemoryContext,
java.lang.Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory)
Gets the result of the accummulation |
void |
init(java.lang.Object workingMemoryContext,
java.lang.Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory)
Executes the initialization block of code |
void |
reverse(java.lang.Object workingMemoryContext,
java.lang.Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory)
Reverses the accumulate action for the given fact handle |
boolean |
supportsReverse()
Returns true if this accumulator supports operation reversal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MVELAccumulatorFunctionExecutor(DroolsMVELFactory factory, java.io.Serializable expression, AccumulateFunction function)
Method Detail |
---|
public java.lang.Object createContext()
Accumulator
createContext
in interface Accumulator
public void init(java.lang.Object workingMemoryContext, java.lang.Object context, Tuple leftTuple, Declaration[] declarations, WorkingMemory workingMemory) throws java.lang.Exception
Accumulator
init
in interface Accumulator
leftTuple
- tuple causing the rule firedeclarations
- previous declarations
java.lang.Exception
public void accumulate(java.lang.Object workingMemoryContext, java.lang.Object context, Tuple leftTuple, InternalFactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, WorkingMemory workingMemory) throws java.lang.Exception
Accumulator
accumulate
in interface Accumulator
java.lang.Exception
public void reverse(java.lang.Object workingMemoryContext, java.lang.Object context, Tuple leftTuple, InternalFactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, WorkingMemory workingMemory) throws java.lang.Exception
Accumulator
reverse
in interface Accumulator
java.lang.Exception
public java.lang.Object getResult(java.lang.Object workingMemoryContext, java.lang.Object context, Tuple leftTuple, Declaration[] declarations, WorkingMemory workingMemory) throws java.lang.Exception
Accumulator
getResult
in interface Accumulator
java.lang.Exception
public boolean supportsReverse()
Accumulator
supportsReverse
in interface Accumulator
public java.lang.Object createWorkingMemoryContext()
Accumulator
createWorkingMemoryContext
in interface Accumulator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |