|
Drools :: Core 6.2.0.CR4 | |||||||||
| 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.SingleAccumulate
public class SingleAccumulate
| Nested Class Summary | |
|---|---|
class |
SingleAccumulate.Wirer
|
| Field Summary |
|---|
| Fields inherited from class org.drools.core.rule.Accumulate |
|---|
cloned, innerDeclarationCache, requiredDeclarations, source |
| Constructor Summary | |
|---|---|
SingleAccumulate()
|
|
SingleAccumulate(RuleConditionElement source,
Declaration[] requiredDeclarations)
|
|
SingleAccumulate(RuleConditionElement source,
Declaration[] requiredDeclarations,
Accumulator accumulator)
|
|
| Method Summary | |
|---|---|
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)
|
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 SingleAccumulate()
public SingleAccumulate(RuleConditionElement source,
Declaration[] requiredDeclarations)
public SingleAccumulate(RuleConditionElement source,
Declaration[] requiredDeclarations,
Accumulator accumulator)
| 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 SingleAccumulate 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.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||