Package org.drools.core.common
Interface NetworkNode
-
- All Superinterfaces:
Externalizable
,Serializable
- 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
,TraitProxyObjectTypeNode
,WindowNode
public interface NetworkNode extends Externalizable
Interface 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()
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)
-
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
-
-
-
-
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)
-
-