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 void
assertObject(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory)
void
byPassModifyToBetaNode(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
org.kie.api.definition.rule.Rule[]
getAssociatedRules()
int
getAssociatedRuleSize()
Returns the number of rules that are associated with this node, regardless of how many times the node is associated with a single rule.int
getAssociationsSize()
Returns how many times this nodes has been associated.int
getAssociationsSize(org.kie.api.definition.rule.Rule rule)
int
getId()
Returns the unique id that represents the node in the Rete networkRuleBasePartitionId
getPartitionId()
Returns the partition ID to which this node belongs toshort
getType()
boolean
isAssociatedWith(org.kie.api.definition.rule.Rule rule)
void
modifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
void
readExternal(ObjectInput in)
void
writeExternal(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:
assertObject
in interfaceObjectSink
-
modifyObject
public void modifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
- Specified by:
modifyObject
in interfaceObjectSink
-
getId
public int getId()
Description copied from interface:NetworkNode
Returns the unique id that represents the node in the Rete network- Specified by:
getId
in interfaceNetworkNode
-
getPartitionId
public RuleBasePartitionId getPartitionId()
Description copied from interface:NetworkNode
Returns the partition ID to which this node belongs to- Specified by:
getPartitionId
in interfaceNetworkNode
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
byPassModifyToBetaNode
public void byPassModifyToBetaNode(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
- Specified by:
byPassModifyToBetaNode
in interfaceObjectSink
-
getType
public short getType()
- Specified by:
getType
in interfaceNetworkNode
-
getAssociationsSize
public int getAssociationsSize()
Description copied from interface:NetworkNode
Returns 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:
getAssociationsSize
in interfaceNetworkNode
-
getAssociatedRuleSize
public int getAssociatedRuleSize()
Description copied from interface:NetworkNode
Returns 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:
getAssociatedRuleSize
in interfaceNetworkNode
-
getAssociationsSize
public int getAssociationsSize(org.kie.api.definition.rule.Rule rule)
- Specified by:
getAssociationsSize
in interfaceNetworkNode
-
getAssociatedRules
public org.kie.api.definition.rule.Rule[] getAssociatedRules()
- Specified by:
getAssociatedRules
in interfaceNetworkNode
-
isAssociatedWith
public boolean isAssociatedWith(org.kie.api.definition.rule.Rule rule)
- Specified by:
isAssociatedWith
in interfaceNetworkNode
-
-