Package org.drools.core.common
Interface NetworkNode
-
- All Known Subinterfaces:
LeftTupleNode,LeftTupleSink,LeftTupleSinkNode,ObjectSink,ObjectSinkNode,PathEndNode,RightTupleSink,Sink,TerminalNode
- All Known Implementing Classes:
AbstractTerminalNode,AccumulateNode,AlphaNode,AlphaTerminalNode,AsyncReceiveNode,AsyncSendNode,BaseNode,BetaNode,ConditionalBranchNode,EntryPointNode,EvalConditionNode,ExistsNode,FromNode,JoinNode,LeftInputAdapterNode,LeftInputAdapterNode.RightTupleSinkAdapter,LeftTupleSource,NotNode,ObjectSource,ObjectTypeNode,QueryElementNode,QueryTerminalNode,ReactiveFromNode,Rete,ReteObjectTypeNode,RightInputAdapterNode,RuleTerminalNode,TimerNode,WindowNode
public interface NetworkNodeInterface used to expose generic information on Rete nodes outside of he package. It is used for exposing information events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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)
-
-
-
Method Detail
-
getId
int getId()
Returns the unique id that represents the node in the Rete network
-
getPartitionId
RuleBasePartitionId getPartitionId()
Returns the partition ID to which this node belongs to
-
getType
short getType()
-
getAssociationsSize
int getAssociationsSize()
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.
-
getAssociatedRuleSize
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.
-
getAssociationsSize
int getAssociationsSize(org.kie.api.definition.rule.Rule rule)
-
getAssociatedRules
org.kie.api.definition.rule.Rule[] getAssociatedRules()
-
isAssociatedWith
boolean isAssociatedWith(org.kie.api.definition.rule.Rule rule)
-
-