| java.lang.Object org.drools.rule.ConditionalElement org.drools.rule.Accumulate
Method Summary | |
public void | accumulate(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, WorkingMemory workingMemory) | public Object | clone() | public Object | createContext() | public Object | createWorkingMemoryContext() | public Accumulator | getAccumulator() | public Map | getInnerDeclarations() | public Map | getOuterDeclarations() | public Object | getResult(Object workingMemoryContext, Object context, Tuple leftTuple, WorkingMemory workingMemory) | public Pattern | getSourcePattern() | public void | init(Object workingMemoryContext, Object context, Tuple leftTuple, WorkingMemory workingMemory) | public Declaration | resolveDeclaration(String identifier) | public void | reverse(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, WorkingMemory workingMemory) | public void | setAccumulator(Accumulator accumulator) | public boolean | supportsReverse() |
accumulate | public void accumulate(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, WorkingMemory workingMemory)(Code) | | Executes the accumulate (action) code for the given fact handle
Parameters: leftTuple - Parameters: handle - Parameters: declarations - Parameters: innerDeclarations - Parameters: workingMemory - throws: Exception - |
createWorkingMemoryContext | public Object createWorkingMemoryContext()(Code) | | |
getInnerDeclarations | public Map getInnerDeclarations()(Code) | | |
getOuterDeclarations | public Map getOuterDeclarations()(Code) | | |
getResult | public Object getResult(Object workingMemoryContext, Object context, Tuple leftTuple, WorkingMemory workingMemory)(Code) | | Gets the result of the accummulation
Parameters: leftTuple - Parameters: declarations - Parameters: workingMemory - throws: Exception - |
init | public void init(Object workingMemoryContext, Object context, Tuple leftTuple, WorkingMemory workingMemory)(Code) | | Executes the initialization block of code
Parameters: leftTuple - tuple causing the rule fire Parameters: declarations - previous declarations Parameters: workingMemory - throws: Exception - |
reverse | public void reverse(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, WorkingMemory workingMemory)(Code) | | Executes the reverse (action) code for the given fact handle
Parameters: leftTuple - Parameters: handle - Parameters: declarations - Parameters: innerDeclarations - Parameters: workingMemory - throws: Exception - |
supportsReverse | public boolean supportsReverse()(Code) | | Returns true if this accumulate supports reverse
|
|
|