|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.common.BaseNode org.drools.reteoo.TupleSource org.drools.reteoo.AccumulateNode
public class AccumulateNode
AccumulateNode A beta node capable of doing accumulate logic. Created: 04/06/2006
Field Summary | |
---|---|
protected BetaConstraints |
constraints
|
protected TupleSource |
leftInput
The left input TupleSource . |
protected ObjectSource |
rightInput
The right input TupleSource . |
Fields inherited from class org.drools.reteoo.TupleSource |
---|
sink |
Fields inherited from class org.drools.common.BaseNode |
---|
hasMemory, id, sharedCount |
Constructor Summary | |
---|---|
AccumulateNode(int id,
TupleSource leftInput,
ObjectSource rightInput,
AlphaNodeFieldConstraint[] resultConstraints,
BetaConstraints sourceBinder,
BetaConstraints resultBinder,
Accumulate accumulate)
|
Method Summary | |
---|---|
void |
assertObject(InternalFactHandle handle,
PropagationContext context,
InternalWorkingMemory workingMemory)
Assert a new FactHandleImpl . |
void |
assertTuple(ReteTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
Assert a new ReteTuple . |
void |
attach()
Attaches the node into the network. |
void |
attach(InternalWorkingMemory[] workingMemories)
|
Object |
createMemory(RuleBaseConfiguration config)
Creates a BetaMemory for the BetaNode's memory. |
void |
dumpMemory(InternalWorkingMemory workingMemory)
|
boolean |
equals(Object object)
|
BetaNodeFieldConstraint[] |
getConstraints()
|
ObjectSinkNode |
getNextObjectSinkNode()
Returns the next node |
TupleSinkNode |
getNextTupleSinkNode()
Returns the next node |
ObjectTypeNode |
getObjectTypeNode()
|
ObjectSinkNode |
getPreviousObjectSinkNode()
Returns the previous node |
TupleSinkNode |
getPreviousTupleSinkNode()
Returns the previous node |
List |
getRules()
|
int |
hashCode()
The hashCode return is simply the unique id of the node. |
void |
remove(BaseNode node,
InternalWorkingMemory[] workingMemories)
Removes the node from teh network. |
void |
retractObject(InternalFactHandle handle,
PropagationContext context,
InternalWorkingMemory workingMemory)
Retract an existing FactHandleImpl . |
void |
retractTuple(ReteTuple leftTuple,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
void |
setNextObjectSinkNode(ObjectSinkNode next)
Sets the next node |
void |
setNextTupleSinkNode(TupleSinkNode next)
Sets the next node |
void |
setPreviousObjectSinkNode(ObjectSinkNode previous)
Sets the previous node |
void |
setPreviousTupleSinkNode(TupleSinkNode previous)
Sets the previous node |
String |
toString()
|
void |
updateSink(TupleSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory)
|
Methods inherited from class org.drools.reteoo.TupleSource |
---|
addTupleSink, getSinkPropagator, removeTupleSink |
Methods inherited from class org.drools.common.BaseNode |
---|
addShare, getId, getSharedCount, hasMemory, isInUse, isShared, removeShare, setHasMemory |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.drools.common.NodeMemory |
---|
getId |
Field Detail |
---|
protected final TupleSource leftInput
TupleSource
.
protected final ObjectSource rightInput
TupleSource
.
protected final BetaConstraints constraints
Constructor Detail |
---|
public AccumulateNode(int id, TupleSource leftInput, ObjectSource rightInput, AlphaNodeFieldConstraint[] resultConstraints, BetaConstraints sourceBinder, BetaConstraints resultBinder, Accumulate accumulate)
Method Detail |
---|
public void assertTuple(ReteTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
TupleSink
ReteTuple
.
leftTuple
- The ReteTuple
to propagate.context
- The PropagationContext
of the WorkingMemory actionworkingMemory
- the WorkingMemory
session.
public void retractTuple(ReteTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
public void assertObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory)
ObjectSink
FactHandleImpl
.
handle
- The asserted FactHandle/code>.context
- The PropagationContext
of the WorkingMemory action.workingMemory
- the WorkingMemory
session.
public void retractObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory)
ObjectSink
FactHandleImpl
.
handle
- The FactHandle/code> to retract.context
- The PropagationContext
of the WorkingMemory action.workingMemory
- the WorkingMemory
session.
public void updateSink(TupleSink sink, PropagationContext context, InternalWorkingMemory workingMemory)
updateSink
in class TupleSource
public int hashCode()
BaseNode
public boolean equals(Object object)
public String toString()
public BetaNodeFieldConstraint[] getConstraints()
public void attach()
BaseNode
ObjectSource
or TupleSource
public List getRules()
public ObjectTypeNode getObjectTypeNode()
public void attach(InternalWorkingMemory[] workingMemories)
public void remove(BaseNode node, InternalWorkingMemory[] workingMemories)
BaseNode
ObjectSource
or TupleSource
public void dumpMemory(InternalWorkingMemory workingMemory)
public Object createMemory(RuleBaseConfiguration config)
createMemory
in interface NodeMemory
public TupleSinkNode getNextTupleSinkNode()
getNextTupleSinkNode
in interface TupleSinkNode
public void setNextTupleSinkNode(TupleSinkNode next)
setNextTupleSinkNode
in interface TupleSinkNode
next
- The next TupleSinkNodepublic TupleSinkNode getPreviousTupleSinkNode()
getPreviousTupleSinkNode
in interface TupleSinkNode
public void setPreviousTupleSinkNode(TupleSinkNode previous)
setPreviousTupleSinkNode
in interface TupleSinkNode
previous
- The previous TupleSinkNodepublic ObjectSinkNode getNextObjectSinkNode()
getNextObjectSinkNode
in interface ObjectSinkNode
public void setNextObjectSinkNode(ObjectSinkNode next)
setNextObjectSinkNode
in interface ObjectSinkNode
next
- The next ObjectSinkNodepublic ObjectSinkNode getPreviousObjectSinkNode()
getPreviousObjectSinkNode
in interface ObjectSinkNode
public void setPreviousObjectSinkNode(ObjectSinkNode previous)
setPreviousObjectSinkNode
in interface ObjectSinkNode
previous
- The previous ObjectSinkNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |