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 |
leftInput, sinkassociations, 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,
LeftTuple leftTuple,
Sink sink) |
LeftTuple |
createLeftTuple(InternalFactHandle factHandle,
Sink sink,
boolean leftTupleMemoryEnabled) |
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,
InternalWorkingMemory[] workingMemories)
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() |
protected boolean |
internalEquals(Object object) |
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, setPartitionIdWithSinks, setSourcePartitionId, setSourcePartitionIdaddAssociation, getAssociatedRules, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getMemoryId, getPartitionId, getSinks, hashCode, initMemoryId, isAssociatedWith, isStreamMode, remove, setId, setPartitionId, setPartitionsEnabled, setStreamMode, thisNodeEqualsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLeftInferredMask, getLeftInputOtnId, setLeftInputOtnId, setPartitionIdWithSinksgetLeftTupleSource, getPositionInPath, getSinkPropagatorgetAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWith, thisNodeEqualsgetMemoryIdprotected 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 ExternalizablereadExternal in class LeftTupleSourceIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class LeftTupleSourceIOExceptionpublic void attach(BuildContext context)
BaseNodeObjectSource or TupleSourcepublic void networkUpdated(UpdateContext updateContext)
BaseNodenetworkUpdated in class BaseNodepublic EvalCondition getCondition()
Test associated with this node.Test.public String toString()
protected boolean internalEquals(Object object)
internalEquals in class BaseNodepublic EvalConditionNode.EvalMemory createMemory(RuleBaseConfiguration config, InternalWorkingMemory wm)
createMemory in interface MemoryFactory<EvalConditionNode.EvalMemory>public LeftTuple createPeer(LeftTuple original)
createPeer in interface LeftTupleSinkcreatePeer in class LeftTupleSourcepublic boolean isLeftTupleMemoryEnabled()
isLeftTupleMemoryEnabled in interface LeftTupleSinkisLeftTupleMemoryEnabled in class LeftTupleSourcepublic void setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled)
setLeftTupleMemoryEnabled in interface LeftTupleSinkpublic LeftTupleSinkNode getNextLeftTupleSinkNode()
getNextLeftTupleSinkNode in interface LeftTupleSinkNodepublic void setNextLeftTupleSinkNode(LeftTupleSinkNode next)
setNextLeftTupleSinkNode in interface LeftTupleSinkNodenext - The next TupleSinkNodepublic LeftTupleSinkNode getPreviousLeftTupleSinkNode()
getPreviousLeftTupleSinkNode in interface LeftTupleSinkNodepublic void setPreviousLeftTupleSinkNode(LeftTupleSinkNode previous)
setPreviousLeftTupleSinkNode in interface LeftTupleSinkNodeprevious - The previous TupleSinkNodepublic short getType()
getType in interface NetworkNodegetType in class LeftTupleSourcepublic LeftTuple createLeftTuple(InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, Sink sink)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, Sink sink)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, Sink sink, boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSinkpublic ObjectTypeNode getObjectTypeNode()
getObjectTypeNode in class BaseNodeprotected boolean doRemove(RuleRemovalContext context, ReteooBuilder builder, InternalWorkingMemory[] workingMemories)
BaseNodeObjectSource or TupleSourcepublic void addAssociation(BuildContext context, org.kie.api.definition.rule.Rule rule)
addAssociation in class BaseNodepublic boolean removeAssociation(org.kie.api.definition.rule.Rule rule)
BaseNoderemoveAssociation in class BaseNodeCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.