public class SingleAccumulate extends Accumulate
| Modifier and Type | Class and Description |
|---|---|
class |
SingleAccumulate.Wirer |
cloned, innerDeclarationCache, requiredDeclarations, source| Constructor and Description |
|---|
SingleAccumulate() |
SingleAccumulate(RuleConditionElement source,
Declaration[] requiredDeclarations) |
SingleAccumulate(RuleConditionElement source,
Declaration[] requiredDeclarations,
Accumulator accumulator) |
| 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
|
SingleAccumulate |
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 SingleAccumulate()
public SingleAccumulate(RuleConditionElement source, Declaration[] requiredDeclarations)
public SingleAccumulate(RuleConditionElement source, Declaration[] requiredDeclarations, Accumulator accumulator)
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 Accumulatepublic SingleAccumulate clone()
RuleConditionElementclone in interface RuleConditionElementclone in class Accumulateprotected void replaceAccumulatorDeclaration(Declaration declaration, Declaration resolved)
replaceAccumulatorDeclaration in class Accumulatepublic Object createWorkingMemoryContext()
createWorkingMemoryContext in class AccumulateCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.