public class EvalConditionNode extends LeftTupleSource implements LeftTupleSinkNode, MemoryFactory<EvalConditionNode.EvalMemory>
Modifier and Type | Class and Description |
---|---|
static class |
EvalConditionNode.EvalMemory |
Modifier and Type | Field and Description |
---|---|
protected EvalCondition |
condition
The semantic
Test . |
protected boolean |
tupleMemoryEnabled |
leftDeclaredMask, leftInferredMask, leftInput, leftNegativeMask, sink
associations, hashcode, id, memoryId, partitionId, partitionsEnabled
Constructor and Description |
---|
EvalConditionNode() |
EvalConditionNode(int id,
LeftTupleSource tupleSource,
EvalCondition eval,
BuildContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addAssociation(BuildContext context,
org.kie.api.definition.rule.Rule rule) |
void |
attach(BuildContext context)
Attaches the node into the network.
|
LeftTuple |
createLeftTuple(InternalFactHandle factHandle,
boolean leftTupleMemoryEnabled) |
LeftTuple |
createLeftTuple(InternalFactHandle factHandle,
LeftTuple leftTuple,
Sink sink) |
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTuple currentLeftChild,
LeftTuple currentRightChild,
Sink sink,
boolean leftTupleMemoryEnabled) |
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
Sink sink) |
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
Sink sink,
PropagationContext pctx,
boolean leftTupleMemoryEnabled) |
EvalConditionNode.EvalMemory |
createMemory(RuleBaseConfiguration config,
InternalWorkingMemory wm) |
LeftTuple |
createPeer(LeftTuple original) |
protected boolean |
doRemove(RuleRemovalContext context,
ReteooBuilder builder)
Removes the node from the network.
|
boolean |
equals(Object object) |
EvalCondition |
getCondition()
Retrieve the
Test associated with this node. |
LeftTupleSinkNode |
getNextLeftTupleSinkNode()
Returns the next node
|
ObjectTypeNode |
getObjectTypeNode() |
LeftTupleSinkNode |
getPreviousLeftTupleSinkNode()
Returns the previous node
|
short |
getType() |
boolean |
isLeftTupleMemoryEnabled() |
void |
networkUpdated(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 update
|
void |
readExternal(ObjectInput in) |
boolean |
removeAssociation(org.kie.api.definition.rule.Rule rule)
Removes the association to the given rule from the
associations map.
|
void |
setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled) |
void |
setNextLeftTupleSinkNode(LeftTupleSinkNode next)
Sets the next node
|
void |
setPreviousLeftTupleSinkNode(LeftTupleSinkNode previous)
Sets the previous node
|
String |
toString()
Produce a debug string.
|
void |
writeExternal(ObjectOutput out) |
addTupleSink, addTupleSink, addTupleSink, getLeftDeclaredMask, getLeftInferredMask, getLeftInputOtnId, getLeftInputPattern, getLeftNegativeMask, getLeftTupleSource, getObjectType, getObjectTypeForPropertyReactivity, getPositionInPath, getSinkPropagator, initDeclaredMask, initInferredMask, initMasks, isInUse, removeTupleSink, setLeftInferredMask, setLeftInputOtnId, setLeftListenedProperties, setLeftTupleSource, setNodeConstraintsPropertyReactiveMask, setPartitionIdWithSinks, setSourcePartitionId, setSourcePartitionId
addAssociation, getAssociatedRules, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getMemoryId, getPartitionId, getSinks, hashCode, initMemoryId, isAssociatedWith, isStreamMode, remove, setId, setPartitionId, setPartitionsEnabled, setStreamMode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLeftInferredMask, getLeftInputOtnId, setLeftInputOtnId, setPartitionIdWithSinks
getLeftTupleSource, getPositionInPath, getSinkPropagator
getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWith
getMemoryId
protected EvalCondition condition
Test
.protected boolean tupleMemoryEnabled
public EvalConditionNode()
public EvalConditionNode(int id, LeftTupleSource tupleSource, EvalCondition eval, BuildContext context)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class LeftTupleSource
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class LeftTupleSource
IOException
public void attach(BuildContext context)
BaseNode
ObjectSource
or TupleSource
public void networkUpdated(UpdateContext updateContext)
BaseNode
networkUpdated
in class BaseNode
public EvalCondition getCondition()
Test
associated with this node.Test
.public String toString()
public EvalConditionNode.EvalMemory createMemory(RuleBaseConfiguration config, InternalWorkingMemory wm)
createMemory
in interface MemoryFactory<EvalConditionNode.EvalMemory>
public LeftTuple createPeer(LeftTuple original)
createPeer
in interface LeftTupleSink
createPeer
in class LeftTupleSource
public boolean isLeftTupleMemoryEnabled()
isLeftTupleMemoryEnabled
in interface LeftTupleSink
isLeftTupleMemoryEnabled
in class LeftTupleSource
public void setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled)
setLeftTupleMemoryEnabled
in interface LeftTupleSink
public LeftTupleSinkNode getNextLeftTupleSinkNode()
getNextLeftTupleSinkNode
in interface LeftTupleSinkNode
public void setNextLeftTupleSinkNode(LeftTupleSinkNode next)
setNextLeftTupleSinkNode
in interface LeftTupleSinkNode
next
- The next TupleSinkNodepublic LeftTupleSinkNode getPreviousLeftTupleSinkNode()
getPreviousLeftTupleSinkNode
in interface LeftTupleSinkNode
public void setPreviousLeftTupleSinkNode(LeftTupleSinkNode previous)
setPreviousLeftTupleSinkNode
in interface LeftTupleSinkNode
previous
- The previous TupleSinkNodepublic short getType()
getType
in interface NetworkNode
getType
in class LeftTupleSource
public LeftTuple createLeftTuple(InternalFactHandle factHandle, boolean leftTupleMemoryEnabled)
createLeftTuple
in interface LeftTupleSink
public LeftTuple createLeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, Sink sink)
createLeftTuple
in interface LeftTupleSink
public LeftTuple createLeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled)
createLeftTuple
in interface LeftTupleSink
public LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink)
createLeftTuple
in interface LeftTupleSink
public LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled)
createLeftTuple
in interface LeftTupleSink
public ObjectTypeNode getObjectTypeNode()
getObjectTypeNode
in class BaseNode
protected boolean doRemove(RuleRemovalContext context, ReteooBuilder builder)
BaseNode
ObjectSource
or TupleSource
public void addAssociation(BuildContext context, org.kie.api.definition.rule.Rule rule)
addAssociation
in class BaseNode
public boolean removeAssociation(org.kie.api.definition.rule.Rule rule)
BaseNode
removeAssociation
in class BaseNode
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.