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, resolveDeclaration
public 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 Externalizable
readExternal
in class Accumulate
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Accumulate
IOException
public boolean isMultiFunction()
isMultiFunction
in class Accumulate
public Accumulator[] getAccumulators()
getAccumulators
in class Accumulate
public Serializable createContext()
createContext
in class Accumulate
public void init(Object workingMemoryContext, Object context, Tuple leftTuple, WorkingMemory workingMemory)
Accumulate
init
in class Accumulate
public void accumulate(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, WorkingMemory workingMemory)
Accumulate
accumulate
in class Accumulate
public void reverse(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, WorkingMemory workingMemory)
Accumulate
reverse
in class Accumulate
public boolean supportsReverse()
Accumulate
supportsReverse
in class Accumulate
public Object getResult(Object workingMemoryContext, Object context, Tuple leftTuple, WorkingMemory workingMemory)
Accumulate
getResult
in class Accumulate
public SingleAccumulate clone()
RuleConditionElement
clone
in interface RuleConditionElement
clone
in class Accumulate
protected void replaceAccumulatorDeclaration(Declaration declaration, Declaration resolved)
replaceAccumulatorDeclaration
in class Accumulate
public Object createWorkingMemoryContext()
createWorkingMemoryContext
in class Accumulate
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.