|
Drools :: Core 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.core.rule.ConditionalElement
org.drools.core.rule.Accumulate
org.drools.core.rule.MultiAccumulate
public class MultiAccumulate
| Nested Class Summary | |
|---|---|
class |
MultiAccumulate.Wirer
|
| Field Summary |
|---|
| Fields inherited from class org.drools.core.rule.Accumulate |
|---|
cloned, innerDeclarationCache, requiredDeclarations, source |
| Constructor Summary | |
|---|---|
MultiAccumulate()
|
|
MultiAccumulate(RuleConditionElement source,
Declaration[] requiredDeclarations,
Accumulator[] accumulators)
|
|
| Method Summary | |
|---|---|
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)
|
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)
|
| Methods inherited from class org.drools.core.rule.Accumulate |
|---|
getInnerDeclarationCache, getInnerDeclarations, getNestedElements, getOuterDeclarations, getSource, hasRequiredDeclarations, isPatternScopeDelimiter, registerClone, replaceDeclaration, resetInnerDeclarationCache, resolveDeclaration |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiAccumulate()
public MultiAccumulate(RuleConditionElement source,
Declaration[] requiredDeclarations,
Accumulator[] accumulators)
| Method Detail |
|---|
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AccumulateIOException
ClassNotFoundException
public 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 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 Accumulatepublic boolean supportsReverse()
Accumulate
supportsReverse in class Accumulate
public Object[] getResult(Object workingMemoryContext,
Object context,
Tuple leftTuple,
WorkingMemory workingMemory)
Accumulate
getResult in class Accumulatepublic MultiAccumulate clone()
RuleConditionElement
clone in interface RuleConditionElementclone in class Accumulatepublic Object[] createWorkingMemoryContext()
createWorkingMemoryContext in class Accumulatepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
Drools :: Core 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||