Package org.drools.core.reteoo
Class RuleTerminalNode
- java.lang.Object
-
- org.drools.core.common.BaseNode
-
- org.drools.core.reteoo.AbstractTerminalNode
-
- org.drools.core.reteoo.RuleTerminalNode
-
- All Implemented Interfaces:
MemoryFactory<PathMemory>,NetworkNode,LeftTupleNode,LeftTupleSink,LeftTupleSinkNode,PathEndNode,Sink,TerminalNode
public class RuleTerminalNode extends AbstractTerminalNode
Leaf Rete-OO node responsible for enactingActions on a matchedRule.- See Also:
Rule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRuleTerminalNode.SortDeclarations-
Nested classes/interfaces inherited from interface org.drools.core.reteoo.PathEndNode
PathEndNode.PathMemSpec
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringconsequenceNameprotected Declaration[]enabledDeclarationsprotected booleanfireDirectprotected ObjectTypeNode.IdleftInputOtnIdprotected Declaration[]salienceDeclarations-
Fields inherited from class org.drools.core.reteoo.AbstractTerminalNode
pathMemSpec, requiredDeclarations
-
Fields inherited from class org.drools.core.common.BaseNode
associations, hashcode, id, memoryId, partitionId, partitionsEnabled
-
-
Constructor Summary
Constructors Constructor Description RuleTerminalNode()RuleTerminalNode(int id, LeftTupleSource source, RuleImpl rule, GroupElement subrule, int subruleIndex, BuildContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcalculateHashCode()voidcancelMatch(AgendaItem match, ReteEvaluator reteEvaluator)LeftTuplecreateLeftTuple(InternalFactHandle factHandle, boolean leftTupleMemoryEnabled)LeftTuplecreateLeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, Sink sink)LeftTuplecreateLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled)LeftTuplecreateLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink)LeftTuplecreateLeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled)voiddoAttach(BuildContext context)booleanequals(java.lang.Object object)java.lang.StringgetConsequenceName()Declaration[]getEnabledDeclarations()ObjectTypeNode.IdgetLeftInputOtnId()Declaration[]getSalienceDeclarations()shortgetType()booleanisFireDirect()voidsetDeclarations(java.util.Map<java.lang.String,Declaration> decls)voidsetEnabledDeclarations(Declaration[] enabledDeclarations)voidsetFireDirect(boolean fireDirect)voidsetLeftInputOtnId(ObjectTypeNode.Id leftInputOtnId)voidsetSalienceDeclarations(Declaration[] salienceDeclarations)java.lang.StringtoString()-
Methods inherited from class org.drools.core.reteoo.AbstractTerminalNode
createMemory, createPeer, doRemove, getAllDeclarations, getDeclaredMask, getEagerSegmentPrototypes, getInferredMask, getLeftInferredMask, getLeftTupleSource, getNegativeMask, getNextLeftTupleSinkNode, getObjectCount, getObjectTypeNode, getPathEndNodes, getPathIndex, getPathMemSpec, getPathMemSpec, getPathNodes, getPathNodes, getPreviousLeftTupleSinkNode, getRequiredDeclarations, getRule, getSegmentPrototypes, getSinkPropagator, getSubRule, getSubruleIndex, hasPathNode, initDeclaredMask, initInferredMask, initPathMemory, isInUse, isLeftTupleMemoryEnabled, isTerminalNodeOf, networkUpdated, nullPathMemSpec, resetPathMemSpec, setDeclaredMask, setEagerSegmentPrototypes, setInferredMask, setNegativeMask, setNextLeftTupleSinkNode, setObjectCount, setPartitionIdWithSinks, setPathEndNodes, setPreviousLeftTupleSinkNode, setSegmentPrototypes, unwrapTupleSource, visitLeftTupleNodes
-
Methods inherited from class org.drools.core.common.BaseNode
addAssociatedTerminal, addAssociation, addAssociation, attach, getAssociatedRules, getAssociatedTerminalsSize, getAssociationsSize, getId, getMemoryId, getPartitionId, getSinks, hasAssociatedTerminal, hashCode, initMemoryId, isAssociatedWith, isStreamMode, remove, removeAssociatedTerminal, removeAssociation, setId, setPartitionId, setPartitionsEnabled, setStreamMode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.drools.core.common.MemoryFactory
getMemoryId
-
Methods inherited from interface org.drools.core.common.NetworkNode
addAssociatedTerminal, getAssociatedRules, getAssociatedTerminalsSize, getId, getPartitionId, getSinks, hasAssociatedTerminal, isAssociatedWith, removeAssociatedTerminal
-
Methods inherited from interface org.drools.core.reteoo.PathEndNode
calculatePathMemSpec
-
-
-
-
Field Detail
-
salienceDeclarations
protected Declaration[] salienceDeclarations
-
enabledDeclarations
protected Declaration[] enabledDeclarations
-
fireDirect
protected boolean fireDirect
-
leftInputOtnId
protected transient ObjectTypeNode.Id leftInputOtnId
-
consequenceName
protected java.lang.String consequenceName
-
-
Constructor Detail
-
RuleTerminalNode
public RuleTerminalNode()
-
RuleTerminalNode
public RuleTerminalNode(int id, LeftTupleSource source, RuleImpl rule, GroupElement subrule, int subruleIndex, BuildContext context)
-
-
Method Detail
-
setDeclarations
public void setDeclarations(java.util.Map<java.lang.String,Declaration> decls)
-
doAttach
public void doAttach(BuildContext context)
-
getSalienceDeclarations
public Declaration[] getSalienceDeclarations()
-
setSalienceDeclarations
public void setSalienceDeclarations(Declaration[] salienceDeclarations)
-
getEnabledDeclarations
public Declaration[] getEnabledDeclarations()
-
setEnabledDeclarations
public void setEnabledDeclarations(Declaration[] enabledDeclarations)
-
getConsequenceName
public java.lang.String getConsequenceName()
-
cancelMatch
public void cancelMatch(AgendaItem match, ReteEvaluator reteEvaluator)
-
calculateHashCode
protected int calculateHashCode()
- Overrides:
calculateHashCodein classAbstractTerminalNode
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classAbstractTerminalNode
-
getType
public short getType()
-
createLeftTuple
public LeftTuple createLeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, Sink sink)
-
createLeftTuple
public LeftTuple createLeftTuple(InternalFactHandle factHandle, boolean leftTupleMemoryEnabled)
-
createLeftTuple
public LeftTuple createLeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled)
-
createLeftTuple
public LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink)
-
createLeftTuple
public LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled)
-
getLeftInputOtnId
public ObjectTypeNode.Id getLeftInputOtnId()
-
setLeftInputOtnId
public void setLeftInputOtnId(ObjectTypeNode.Id leftInputOtnId)
-
isFireDirect
public boolean isFireDirect()
-
setFireDirect
public void setFireDirect(boolean fireDirect)
-
-