|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.rule.ConditionalElement org.drools.rule.Accumulate
public class Accumulate
A class to represent a Accumulate CE
Constructor Summary | |
---|---|
Accumulate(Pattern sourcePattern,
Pattern resultPattern)
|
|
Accumulate(Pattern sourcePattern,
Pattern resultPattern,
Declaration[] requiredDeclarations,
Declaration[] innerDeclarations)
|
|
Accumulate(Pattern sourcePattern,
Pattern resultPattern,
Declaration[] requiredDeclarations,
Declaration[] innerDeclarations,
Accumulator accumulator)
|
Method Summary | |
---|---|
Object |
accumulate(Tuple leftTuple,
List matchingObjects,
WorkingMemory workingMemory)
|
Object |
clone()
Returns a clone from itself |
Accumulator |
getAccumulator()
|
Map |
getInnerDeclarations()
Returns a Map of declarations that are visible inside this conditional element |
Map |
getOuterDeclarations()
Returns a Map of declarations that are visible outside this conditional element. |
Pattern |
getResultPattern()
|
Pattern |
getSourcePattern()
|
Declaration |
resolveDeclaration(String identifier)
Resolves the given identifier in the current scope and returns the Declaration object for the declaration. |
void |
setAccumulator(Accumulator accumulator)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Accumulate(Pattern sourcePattern, Pattern resultPattern)
public Accumulate(Pattern sourcePattern, Pattern resultPattern, Declaration[] requiredDeclarations, Declaration[] innerDeclarations)
public Accumulate(Pattern sourcePattern, Pattern resultPattern, Declaration[] requiredDeclarations, Declaration[] innerDeclarations, Accumulator accumulator)
Method Detail |
---|
public Accumulator getAccumulator()
public void setAccumulator(Accumulator accumulator)
public Object accumulate(Tuple leftTuple, List matchingObjects, WorkingMemory workingMemory)
public Object clone()
RuleConditionElement
clone
in interface RuleConditionElement
clone
in class ConditionalElement
public Pattern getResultPattern()
public Pattern getSourcePattern()
public Map getInnerDeclarations()
RuleConditionElement
public Map getOuterDeclarations()
RuleConditionElement
public Declaration resolveDeclaration(String identifier)
RuleConditionElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |