|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.base.mvel.MVELAccumulator
public class MVELAccumulator
An MVEL accumulator implementation
| Constructor Summary | |
|---|---|
MVELAccumulator()
|
|
MVELAccumulator(MVELCompilationUnit initUnit,
MVELCompilationUnit actionUnit,
MVELCompilationUnit reverseUnit,
MVELCompilationUnit resultUnit)
|
|
| Method Summary | |
|---|---|
void |
accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory)
Executes the accumulate (action) code for the given fact handle |
void |
compile(MVELDialectRuntimeData runtimeData)
|
Serializable |
createContext()
Creates the context object for an accumulator session. |
Object |
createWorkingMemoryContext()
Creates and return a context object for each working memory instance |
Object |
getResult(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory)
Gets the result of the accummulation |
void |
init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory)
Executes the initialization block of code |
void |
readExternal(ObjectInput in)
|
void |
reverse(Object workingMemoryContext,
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 |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MVELAccumulator()
public MVELAccumulator(MVELCompilationUnit initUnit,
MVELCompilationUnit actionUnit,
MVELCompilationUnit reverseUnit,
MVELCompilationUnit resultUnit)
| Method Detail |
|---|
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void compile(MVELDialectRuntimeData runtimeData)
compile in interface MVELCompileablepublic Serializable createContext()
Accumulator
createContext in interface Accumulator
public void init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory)
throws Exception
Accumulator
init in interface AccumulatorleftTuple - tuple causing the rule firedeclarations - previous declarations
Exception
public void accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory)
throws Exception
Accumulator
accumulate in interface AccumulatorException
public void reverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory)
throws Exception
Accumulator
reverse in interface AccumulatorException
public Object getResult(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory)
throws Exception
Accumulator
getResult in interface AccumulatorExceptionpublic boolean supportsReverse()
Accumulator
supportsReverse in interface Accumulatorpublic Object createWorkingMemoryContext()
Accumulator
createWorkingMemoryContext in interface Accumulator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||