Package org.drools.core.reteoo
Class LeftInputAdapterNode.RightTupleSinkAdapter
- java.lang.Object
-
- org.drools.core.reteoo.LeftInputAdapterNode.RightTupleSinkAdapter
-
- All Implemented Interfaces:
NetworkNode,ObjectSink,Sink
- Enclosing class:
- LeftInputAdapterNode
public static class LeftInputAdapterNode.RightTupleSinkAdapter extends Object implements ObjectSink
Used with the updateSink method, so that the parent ObjectSource can update the TupleSink
-
-
Constructor Summary
Constructors Constructor Description RightTupleSinkAdapter()Do not use this constructor.RightTupleSinkAdapter(LeftInputAdapterNode liaNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertObject(InternalFactHandle factHandle, PropagationContext context, ReteEvaluator reteEvaluator)voidbyPassModifyToBetaNode(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, ReteEvaluator reteEvaluator)org.kie.api.definition.rule.Rule[]getAssociatedRules()Map<Integer,TerminalNode>getAssociatedTerminals()intgetId()Returns the unique id that represents the node in the Rete networkRuleBasePartitionIdgetPartitionId()Returns the partition ID to which this node belongs tointgetPosInSegment()NetworkNode[]getSinks()shortgetType()booleanisAssociatedWith(org.kie.api.definition.rule.Rule rule)voidmodifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, ReteEvaluator reteEvaluator)
-
-
-
Constructor Detail
-
RightTupleSinkAdapter
public RightTupleSinkAdapter(LeftInputAdapterNode liaNode)
-
RightTupleSinkAdapter
public RightTupleSinkAdapter()
Do not use this constructor. It should be used just by deserialization.
-
-
Method Detail
-
assertObject
public void assertObject(InternalFactHandle factHandle, PropagationContext context, ReteEvaluator reteEvaluator)
- Specified by:
assertObjectin interfaceObjectSink
-
modifyObject
public void modifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, ReteEvaluator reteEvaluator)
- Specified by:
modifyObjectin interfaceObjectSink
-
getId
public int getId()
Description copied from interface:NetworkNodeReturns the unique id that represents the node in the Rete network- Specified by:
getIdin interfaceNetworkNode
-
getPartitionId
public RuleBasePartitionId getPartitionId()
Description copied from interface:NetworkNodeReturns the partition ID to which this node belongs to- Specified by:
getPartitionIdin interfaceNetworkNode
-
byPassModifyToBetaNode
public void byPassModifyToBetaNode(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, ReteEvaluator reteEvaluator)
- Specified by:
byPassModifyToBetaNodein interfaceObjectSink
-
getPosInSegment
public int getPosInSegment()
- Specified by:
getPosInSegmentin interfaceNetworkNode
-
getType
public short getType()
- Specified by:
getTypein interfaceNetworkNode
-
getAssociatedRules
public org.kie.api.definition.rule.Rule[] getAssociatedRules()
- Specified by:
getAssociatedRulesin interfaceNetworkNode
-
isAssociatedWith
public boolean isAssociatedWith(org.kie.api.definition.rule.Rule rule)
- Specified by:
isAssociatedWithin interfaceNetworkNode
-
getSinks
public NetworkNode[] getSinks()
- Specified by:
getSinksin interfaceNetworkNode
-
getAssociatedTerminals
public Map<Integer,TerminalNode> getAssociatedTerminals()
- Specified by:
getAssociatedTerminalsin interfaceNetworkNode
-
-