Package org.drools.core.reteoo
Class LeftInputAdapterNode.RightTupleSinkAdapter
- java.lang.Object
-
- org.drools.core.reteoo.LeftInputAdapterNode.RightTupleSinkAdapter
-
- All Implemented Interfaces:
Externalizable,Serializable,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- See Also:
- Serialized Form
-
-
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, InternalWorkingMemory workingMemory)voidbyPassModifyToBetaNode(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)org.kie.api.definition.rule.Rule[]getAssociatedRules()intgetAssociatedRuleSize()Returns the number of rules that are associated with this node, regardless of how many times the node is associated with a single rule.intgetAssociationsSize()Returns how many times this nodes has been associated.intgetAssociationsSize(org.kie.api.definition.rule.Rule rule)intgetId()Returns the unique id that represents the node in the Rete networkRuleBasePartitionIdgetPartitionId()Returns the partition ID to which this node belongs toshortgetType()booleanisAssociatedWith(org.kie.api.definition.rule.Rule rule)voidmodifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)voidreadExternal(ObjectInput in)voidwriteExternal(ObjectOutput out)
-
-
-
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, InternalWorkingMemory workingMemory)
- Specified by:
assertObjectin interfaceObjectSink
-
modifyObject
public void modifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
- 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
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
byPassModifyToBetaNode
public void byPassModifyToBetaNode(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
- Specified by:
byPassModifyToBetaNodein interfaceObjectSink
-
getType
public short getType()
- Specified by:
getTypein interfaceNetworkNode
-
getAssociationsSize
public int getAssociationsSize()
Description copied from interface:NetworkNodeReturns how many times this nodes has been associated. Note that due to subnetworks this node could be associated to the same rule multiple times.- Specified by:
getAssociationsSizein interfaceNetworkNode
-
getAssociatedRuleSize
public int getAssociatedRuleSize()
Description copied from interface:NetworkNodeReturns the number of rules that are associated with this node, regardless of how many times the node is associated with a single rule.- Specified by:
getAssociatedRuleSizein interfaceNetworkNode
-
getAssociationsSize
public int getAssociationsSize(org.kie.api.definition.rule.Rule rule)
- Specified by:
getAssociationsSizein 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
-
-