Package org.drools.core.reteoo
Class EvalConditionNode
java.lang.Object
org.drools.core.common.BaseNode
org.drools.core.reteoo.LeftTupleSource
org.drools.core.reteoo.EvalConditionNode
- All Implemented Interfaces:
Serializable,NetworkNode,MemoryFactory<EvalConditionNode.EvalMemory>,LeftTupleNode,LeftTupleSink,LeftTupleSinkNode,Sink
public class EvalConditionNode
extends LeftTupleSource
implements LeftTupleSinkNode, MemoryFactory<EvalConditionNode.EvalMemory>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsFields inherited from class org.drools.core.reteoo.LeftTupleSource
leftDeclaredMask, leftInferredMask, leftInput, leftNegativeMask, sinkFields inherited from class org.drools.core.common.BaseNode
associations, hashcode, id, memoryId, partitionId -
Constructor Summary
ConstructorsConstructorDescriptionEvalConditionNode(int id, LeftTupleSource tupleSource, EvalCondition eval, BuildContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAssociation(BuildContext context, Rule rule) createMemory(RuleBaseConfiguration config, ReteEvaluator reteEvaluator) voiddoAttach(BuildContext context) protected booleandoRemove(RuleRemovalContext context, ReteooBuilder builder) Removes the node from the network.booleanRetrieve theTestassociated with this node.Returns the next nodeReturns the previous nodeintgetType()protected voidinitInferredMask(LeftTupleSource leftInput) booleanvoidnetworkUpdated(UpdateContext updateContext) A method that is called for all nodes whose network below them changed, after the change is complete, providing them with an opportunity for state updatebooleanremoveAssociation(Rule rule, RuleRemovalContext context) Removes the association to the given rule from the associations map.voidSets the next nodevoidSets the previous nodetoString()Produce a debug string.Methods inherited from class org.drools.core.reteoo.LeftTupleSource
addTupleSink, addTupleSink, addTupleSink, getFirstLeftTupleSinkIgnoreRemoving, getLeftDeclaredMask, getLeftInferredMask, getLeftInputOtnId, getLeftInputPattern, getLeftNegativeMask, getLeftTupleSource, getObjectCount, getObjectType, getObjectTypeForPropertyReactivity, getPathIndex, getSinkPropagator, initDeclaredMask, initMasks, isInUse, removeTupleSink, setLeftInferredMask, setLeftInputOtnId, setLeftListenedProperties, setLeftTupleSource, setNodeConstraintsPropertyReactiveMask, setObjectCount, setPartitionIdWithSinks, setSourcePartitionId, setSourcePartitionIdMethods inherited from class org.drools.core.common.BaseNode
addAssociatedTerminal, addAssociation, attach, getAssociatedRules, getAssociatedTerminalsSize, getAssociationsSize, getId, getMemoryId, getPartitionId, getSinks, hasAssociatedTerminal, hashCode, initMemoryId, isAssociatedWith, isStreamMode, remove, removeAssociatedTerminal, setId, setPartitionId, setStreamModeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.drools.core.reteoo.LeftTupleNode
getLeftTupleSource, getObjectCount, getPathIndex, getSinkPropagator, setObjectCountMethods inherited from interface org.drools.core.reteoo.LeftTupleSink
getLeftInferredMask, getLeftInputOtnId, setLeftInputOtnId, setPartitionIdWithSinksMethods inherited from interface org.drools.core.common.MemoryFactory
getMemoryIdMethods inherited from interface org.drools.base.common.NetworkNode
addAssociatedTerminal, getAssociatedRules, getAssociatedTerminalsSize, getId, getPartitionId, getSinks, hasAssociatedTerminal, isAssociatedWith, isRightInputIsRiaNode, removeAssociatedTerminal
-
Field Details
-
condition
The semanticTest. -
tupleMemoryEnabled
protected boolean tupleMemoryEnabled
-
-
Constructor Details
-
EvalConditionNode
public EvalConditionNode() -
EvalConditionNode
public EvalConditionNode(int id, LeftTupleSource tupleSource, EvalCondition eval, BuildContext context)
-
-
Method Details
-
doAttach
-
networkUpdated
Description copied from class:BaseNodeA method that is called for all nodes whose network below them changed, after the change is complete, providing them with an opportunity for state update- Specified by:
networkUpdatedin classBaseNode
-
initInferredMask
- Overrides:
initInferredMaskin classLeftTupleSource
-
getCondition
Retrieve theTestassociated with this node.- Returns:
- The
Test.
-
toString
Produce a debug string. -
equals
-
createMemory
public EvalConditionNode.EvalMemory createMemory(RuleBaseConfiguration config, ReteEvaluator reteEvaluator) - Specified by:
createMemoryin interfaceMemoryFactory<EvalConditionNode.EvalMemory>
-
isLeftTupleMemoryEnabled
public boolean isLeftTupleMemoryEnabled()- Specified by:
isLeftTupleMemoryEnabledin interfaceLeftTupleSink- Specified by:
isLeftTupleMemoryEnabledin classLeftTupleSource
-
getNextLeftTupleSinkNode
Returns the next node- Specified by:
getNextLeftTupleSinkNodein interfaceLeftTupleSinkNode- Returns:
- The next TupleSinkNode
-
setNextLeftTupleSinkNode
Sets the next node- Specified by:
setNextLeftTupleSinkNodein interfaceLeftTupleSinkNode- Parameters:
next- The next TupleSinkNode
-
getPreviousLeftTupleSinkNode
Returns the previous node- Specified by:
getPreviousLeftTupleSinkNodein interfaceLeftTupleSinkNode- Returns:
- The previous TupleSinkNode
-
setPreviousLeftTupleSinkNode
Sets the previous node- Specified by:
setPreviousLeftTupleSinkNodein interfaceLeftTupleSinkNode- Parameters:
previous- The previous TupleSinkNode
-
getType
public int getType()- Specified by:
getTypein interfaceNetworkNode- Specified by:
getTypein classLeftTupleSource
-
getObjectTypeNode
- Specified by:
getObjectTypeNodein classBaseNode
-
doRemove
Description copied from class:BaseNodeRemoves the node from the network. Usually from the parentObjectSourceorTupleSource -
addAssociation
- Overrides:
addAssociationin classBaseNode
-
removeAssociation
Description copied from class:BaseNodeRemoves the association to the given rule from the associations map.- Overrides:
removeAssociationin classBaseNode
-