| java.lang.Object org.drools.common.BaseNode org.drools.reteoo.TupleSource org.drools.reteoo.LeftInputAdapterNode
LeftInputAdapterNode | public class LeftInputAdapterNode extends TupleSource implements ObjectSinkNode,NodeMemory(Code) | | All asserting Facts must propagated into the right ObjectSink side of a BetaNode, if this is the first Pattern
then there are no BetaNodes to propagate to. LeftInputAdapter is used to adapt an ObjectSink propagation into a
TupleSource which propagates a ReteTuple suitable fot the right ReteTuple side
of a BetaNode .
author: Mark Proctor author: Bob McWhirter |
Constructor Summary | |
public | LeftInputAdapterNode(int id, ObjectSource source) Constructus a LeftInputAdapterNode with a unique id that receives FactHandle from a
parent ObjectSource and adds it to a given pattern in the resulting Tuples.
Parameters: id - The unique id of this node in the current Rete network Parameters: source - The parent node, where Facts are propagated from Parameters: binder - An optional binder to filter out propagations. |
LeftInputAdapterNode | public LeftInputAdapterNode(int id, ObjectSource source)(Code) | | Constructus a LeftInputAdapterNode with a unique id that receives FactHandle from a
parent ObjectSource and adds it to a given pattern in the resulting Tuples.
Parameters: id - The unique id of this node in the current Rete network Parameters: source - The parent node, where Facts are propagated from Parameters: binder - An optional binder to filter out propagations. This binder will exist whena predicate is used in the first pattern, for instance |
assertObject | public void assertObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory)(Code) | | Takes the asserted FactHandleImpl received from the ObjectSource and puts it
in a new ReteTuple before propagating to the TupleSinks
Parameters: handle - The asserted FactHandle/code>. Parameters: context - The PropagationContext of the WorkingMemory action. Parameters: workingMemory - the WorkingMemory session. |
attach | public void attach()(Code) | | |
getNextObjectSinkNode | public ObjectSinkNode getNextObjectSinkNode()(Code) | | Returns the next node
The next ObjectSinkNode |
getPreviousObjectSinkNode | public ObjectSinkNode getPreviousObjectSinkNode()(Code) | | Returns the previous node
The previous ObjectSinkNode |
hashCode | public int hashCode()(Code) | | |
retractObject | public void retractObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory)(Code) | | Retract an existing FactHandleImpl by placing it in a new ReteTuple before
proagating to the TupleSinks
Parameters: handle - The FactHandle/code> to retract. Parameters: context - The PropagationContext of the WorkingMemory action. Parameters: workingMemory - the WorkingMemory session. |
setNextObjectSinkNode | public void setNextObjectSinkNode(ObjectSinkNode next)(Code) | | Sets the next node
Parameters: next - The next ObjectSinkNode |
setPreviousObjectSinkNode | public void setPreviousObjectSinkNode(ObjectSinkNode previous)(Code) | | Sets the previous node
Parameters: previous - The previous ObjectSinkNode |
|
|