public class ConditionalBranchNode extends LeftTupleSource implements LeftTupleSinkNode, MemoryFactory<ConditionalBranchNode.ConditionalBranchMemory>
Test
.Modifier and Type | Class and Description |
---|---|
static class |
ConditionalBranchNode.ConditionalBranchMemory |
Modifier and Type | Field and Description |
---|---|
protected ConditionalBranchEvaluator |
branchEvaluator |
protected boolean |
tupleMemoryEnabled |
leftDeclaredMask, leftInferredMask, leftInput, leftNegativeMask, sink
associations, hashcode, id, memoryId, partitionId, partitionsEnabled
Constructor and Description |
---|
ConditionalBranchNode() |
ConditionalBranchNode(int id,
LeftTupleSource tupleSource,
ConditionalBranchEvaluator branchEvaluator,
BuildContext context) |
Modifier and Type | Method and Description |
---|---|
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) |
ConditionalBranchNode.ConditionalBranchMemory |
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) |
ConditionalBranchEvaluator |
getBranchEvaluator() |
LeftTupleSinkNode |
getNextLeftTupleSinkNode()
Returns the next node
|
ObjectTypeNode |
getObjectTypeNode() |
LeftTupleSinkNode |
getPreviousLeftTupleSinkNode()
Returns the previous node
|
short |
getType() |
protected void |
initDeclaredMask(BuildContext context,
LeftTupleSource leftInput) |
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) |
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, initInferredMask, initMasks, isInUse, removeTupleSink, setLeftInferredMask, setLeftInputOtnId, setLeftListenedProperties, setLeftTupleSource, setNodeConstraintsPropertyReactiveMask, setPartitionIdWithSinks, setSourcePartitionId, setSourcePartitionId
addAssociation, addAssociation, getAssociatedRules, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getMemoryId, getPartitionId, getSinks, hashCode, initMemoryId, isAssociatedWith, isStreamMode, remove, removeAssociation, 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 ConditionalBranchEvaluator branchEvaluator
protected boolean tupleMemoryEnabled
public ConditionalBranchNode()
public ConditionalBranchNode(int id, LeftTupleSource tupleSource, ConditionalBranchEvaluator branchEvaluator, 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 ConditionalBranchEvaluator getBranchEvaluator()
public void attach(BuildContext context)
BaseNode
ObjectSource
or TupleSource
public void networkUpdated(UpdateContext updateContext)
BaseNode
networkUpdated
in class BaseNode
public String toString()
public ConditionalBranchNode.ConditionalBranchMemory createMemory(RuleBaseConfiguration config, InternalWorkingMemory wm)
createMemory
in interface MemoryFactory<ConditionalBranchNode.ConditionalBranchMemory>
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
protected void initDeclaredMask(BuildContext context, LeftTupleSource leftInput)
initDeclaredMask
in class LeftTupleSource
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.