Drools :: Core 6.2.0.CR4

org.drools.core.rule
Class MultiAccumulate

java.lang.Object
  extended by org.drools.core.rule.ConditionalElement
      extended by org.drools.core.rule.Accumulate
          extended by org.drools.core.rule.MultiAccumulate
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, PatternSource, RuleConditionElement, RuleComponent

public class MultiAccumulate
extends Accumulate

See Also:
Serialized Form

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

MultiAccumulate

public MultiAccumulate()

MultiAccumulate

public MultiAccumulate(RuleConditionElement source,
                       Declaration[] requiredDeclarations,
                       Accumulator[] accumulators)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class Accumulate
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class Accumulate
Throws:
IOException

isMultiFunction

public boolean isMultiFunction()
Specified by:
isMultiFunction in class Accumulate

getAccumulators

public Accumulator[] getAccumulators()
Specified by:
getAccumulators in class Accumulate

createContext

public Serializable[] createContext()
Specified by:
createContext in class Accumulate

init

public void init(Object workingMemoryContext,
                 Object context,
                 Tuple leftTuple,
                 WorkingMemory workingMemory)
Description copied from class: Accumulate
Executes the initialization block of code

Specified by:
init in class Accumulate

accumulate

public void accumulate(Object workingMemoryContext,
                       Object context,
                       Tuple leftTuple,
                       InternalFactHandle handle,
                       WorkingMemory workingMemory)
Description copied from class: Accumulate
Executes the accumulate (action) code for the given fact handle

Specified by:
accumulate in class Accumulate

reverse

public void reverse(Object workingMemoryContext,
                    Object context,
                    Tuple leftTuple,
                    InternalFactHandle handle,
                    WorkingMemory workingMemory)
Description copied from class: Accumulate
Executes the reverse (action) code for the given fact handle

Specified by:
reverse in class Accumulate

supportsReverse

public boolean supportsReverse()
Description copied from class: Accumulate
Returns true if this accumulate supports reverse

Specified by:
supportsReverse in class Accumulate
Returns:

getResult

public Object[] getResult(Object workingMemoryContext,
                          Object context,
                          Tuple leftTuple,
                          WorkingMemory workingMemory)
Description copied from class: Accumulate
Gets the result of the accumulation

Specified by:
getResult in class Accumulate

clone

public MultiAccumulate clone()
Description copied from interface: RuleConditionElement
Returns a clone from itself

Specified by:
clone in interface RuleConditionElement
Specified by:
clone in class Accumulate
Returns:

createWorkingMemoryContext

public Object[] createWorkingMemoryContext()
Specified by:
createWorkingMemoryContext in class Accumulate

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Drools :: Core 6.2.0.CR4

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.