public class MultiAccumulate extends Accumulate
| Modifier and Type | Class and Description |
|---|---|
class |
MultiAccumulate.Wirer |
cloned, innerDeclarationCache, requiredDeclarations, source| Constructor and Description |
|---|
MultiAccumulate() |
MultiAccumulate(RuleConditionElement source,
Declaration[] requiredDeclarations,
Accumulator[] accumulators) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
WorkingMemory workingMemory)
Executes the accumulate (action) code for the given fact handle
|
MultiAccumulate |
clone()
Returns a clone from itself
|
Serializable[] |
createContext() |
Object[] |
createWorkingMemoryContext() |
boolean |
equals(Object obj) |
Accumulator[] |
getAccumulators() |
Object[] |
getResult(Object workingMemoryContext,
Object context,
Tuple leftTuple,
WorkingMemory workingMemory)
Gets the result of the accumulation
|
int |
hashCode() |
void |
init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
WorkingMemory workingMemory)
Executes the initialization block of code
|
boolean |
isMultiFunction() |
void |
readExternal(ObjectInput in) |
protected void |
replaceAccumulatorDeclaration(Declaration declaration,
Declaration resolved) |
void |
reverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
WorkingMemory workingMemory)
Executes the reverse (action) code for the given fact handle
|
boolean |
supportsReverse()
Returns true if this accumulate supports reverse
|
void |
writeExternal(ObjectOutput out) |
getInnerDeclarationCache, getInnerDeclarations, getNestedElements, getOuterDeclarations, getRequiredDeclarations, getSource, hasRequiredDeclarations, isPatternScopeDelimiter, registerClone, replaceDeclaration, requiresLeftActivation, resolveDeclarationpublic MultiAccumulate()
public MultiAccumulate(RuleConditionElement source, Declaration[] requiredDeclarations, Accumulator[] accumulators)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AccumulateIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AccumulateIOExceptionpublic boolean isMultiFunction()
isMultiFunction in class Accumulatepublic Accumulator[] getAccumulators()
getAccumulators in class Accumulatepublic Serializable[] createContext()
createContext in class Accumulatepublic void init(Object workingMemoryContext, Object context, Tuple leftTuple, WorkingMemory workingMemory)
Accumulateinit in class Accumulatepublic void accumulate(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, WorkingMemory workingMemory)
Accumulateaccumulate in class Accumulatepublic void reverse(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, WorkingMemory workingMemory)
Accumulatereverse in class Accumulatepublic boolean supportsReverse()
AccumulatesupportsReverse in class Accumulatepublic Object[] getResult(Object workingMemoryContext, Object context, Tuple leftTuple, WorkingMemory workingMemory)
AccumulategetResult in class Accumulateprotected void replaceAccumulatorDeclaration(Declaration declaration, Declaration resolved)
replaceAccumulatorDeclaration in class Accumulatepublic MultiAccumulate clone()
RuleConditionElementclone in interface RuleConditionElementclone in class Accumulatepublic Object[] createWorkingMemoryContext()
createWorkingMemoryContext in class AccumulateCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.