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 java.lang.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 voidaddAssociatedTerminal(TerminalNode terminalNode)voidassertObject(InternalFactHandle factHandle, PropagationContext context, ReteEvaluator reteEvaluator)voidbyPassModifyToBetaNode(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, ReteEvaluator reteEvaluator)org.kie.api.definition.rule.Rule[]getAssociatedRules()intgetAssociatedTerminalsSize()intgetId()Returns the unique id that represents the node in the Rete networkRuleBasePartitionIdgetPartitionId()Returns the partition ID to which this node belongs toNetworkNode[]getSinks()shortgetType()booleanhasAssociatedTerminal(NetworkNode terminalNode)booleanisAssociatedWith(org.kie.api.definition.rule.Rule rule)voidmodifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, ReteEvaluator reteEvaluator)voidremoveAssociatedTerminal(TerminalNode terminalNode)
-
-
-
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
-
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
-
addAssociatedTerminal
public void addAssociatedTerminal(TerminalNode terminalNode)
- Specified by:
addAssociatedTerminalin interfaceNetworkNode
-
removeAssociatedTerminal
public void removeAssociatedTerminal(TerminalNode terminalNode)
- Specified by:
removeAssociatedTerminalin interfaceNetworkNode
-
getAssociatedTerminalsSize
public int getAssociatedTerminalsSize()
- Specified by:
getAssociatedTerminalsSizein interfaceNetworkNode
-
hasAssociatedTerminal
public boolean hasAssociatedTerminal(NetworkNode terminalNode)
- Specified by:
hasAssociatedTerminalin interfaceNetworkNode
-
-