|
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
public abstract class Accumulate
A class to represent the Accumulate CE
| Field Summary | |
|---|---|
protected List<Accumulate> |
cloned
|
protected Declaration[] |
innerDeclarationCache
|
protected Declaration[] |
requiredDeclarations
|
protected RuleConditionElement |
source
|
| Constructor Summary | |
|---|---|
Accumulate()
|
|
Accumulate(RuleConditionElement source,
Declaration[] requiredDeclarations)
|
|
| Method Summary | |
|---|---|
abstract void |
accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
WorkingMemory workingMemory)
Executes the accumulate (action) code for the given fact handle |
abstract Accumulate |
clone()
Returns a clone from itself |
abstract Object |
createContext()
|
abstract Object |
createWorkingMemoryContext()
|
abstract Accumulator[] |
getAccumulators()
|
protected Declaration[] |
getInnerDeclarationCache()
|
Map<String,Declaration> |
getInnerDeclarations()
Returns a Map of declarations that are visible inside this conditional element |
List<RuleConditionElement> |
getNestedElements()
Returs a list of RuleConditionElement's that are nested inside the current element |
Map<String,Declaration> |
getOuterDeclarations()
Returns a Map of declarations that are visible outside this conditional element. |
abstract Object |
getResult(Object workingMemoryContext,
Object context,
Tuple leftTuple,
WorkingMemory workingMemory)
Gets the result of the accumulation |
RuleConditionElement |
getSource()
|
boolean |
hasRequiredDeclarations()
|
abstract void |
init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
WorkingMemory workingMemory)
Executes the initialization block of code |
abstract boolean |
isMultiFunction()
|
boolean |
isPatternScopeDelimiter()
Returns true in case this RuleConditionElement delimits a pattern visibility scope. |
void |
readExternal(ObjectInput in)
|
protected void |
registerClone(Accumulate clone)
|
void |
replaceDeclaration(Declaration declaration,
Declaration resolved)
|
void |
resetInnerDeclarationCache()
|
Declaration |
resolveDeclaration(String identifier)
Resolves the given identifier in the current scope and returns the Declaration object for the declaration. |
abstract void |
reverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
WorkingMemory workingMemory)
Executes the reverse (action) code for the given fact handle |
abstract boolean |
supportsReverse()
Returns true if this accumulate supports reverse |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected RuleConditionElement source
protected Declaration[] requiredDeclarations
protected Declaration[] innerDeclarationCache
protected List<Accumulate> cloned
| Constructor Detail |
|---|
public Accumulate()
public Accumulate(RuleConditionElement source,
Declaration[] requiredDeclarations)
| Method Detail |
|---|
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOExceptionpublic abstract Accumulator[] getAccumulators()
public abstract Object createContext()
public abstract void init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
WorkingMemory workingMemory)
public abstract void accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
WorkingMemory workingMemory)
public abstract void reverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
WorkingMemory workingMemory)
public abstract Object getResult(Object workingMemoryContext,
Object context,
Tuple leftTuple,
WorkingMemory workingMemory)
public abstract boolean supportsReverse()
public abstract Accumulate clone()
RuleConditionElement
clone in interface RuleConditionElementclone in class ConditionalElementprotected void registerClone(Accumulate clone)
public RuleConditionElement getSource()
public Map<String,Declaration> getInnerDeclarations()
RuleConditionElement
getInnerDeclarations in interface RuleConditionElementpublic Map<String,Declaration> getOuterDeclarations()
RuleConditionElement
getOuterDeclarations in interface RuleConditionElementpublic Declaration resolveDeclaration(String identifier)
RuleConditionElement
resolveDeclaration in interface RuleConditionElementpublic abstract Object createWorkingMemoryContext()
public List<RuleConditionElement> getNestedElements()
RuleConditionElement
getNestedElements in interface RuleConditionElementpublic boolean isPatternScopeDelimiter()
RuleConditionElement
isPatternScopeDelimiter in interface RuleConditionElementpublic abstract boolean isMultiFunction()
public void replaceDeclaration(Declaration declaration,
Declaration resolved)
public void resetInnerDeclarationCache()
protected Declaration[] getInnerDeclarationCache()
public boolean hasRequiredDeclarations()
|
Drools :: Core 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||