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 |
leftInput, sinkassociations, 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,
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) |
ConditionalBranchNode.ConditionalBranchMemory |
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) |
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) |
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) |
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, setPartitionIdWithSinks, setSourcePartitionId, setSourcePartitionIdaddAssociation, addAssociation, getAssociatedRules, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getMemoryId, getPartitionId, getSinks, hashCode, initMemoryId, isAssociatedWith, isStreamMode, remove, removeAssociation, setId, setPartitionId, setPartitionsEnabled, setStreamMode, thisNodeEqualsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLeftInferredMask, getLeftInputOtnId, setLeftInputOtnId, setPartitionIdWithSinksgetLeftTupleSource, getPositionInPath, getSinkPropagatorgetAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWith, thisNodeEqualsgetMemoryIdprotected 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 ExternalizablereadExternal in class LeftTupleSourceIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class LeftTupleSourceIOExceptionpublic ConditionalBranchEvaluator getBranchEvaluator()
public void attach(BuildContext context)
BaseNodeObjectSource or TupleSourcepublic void networkUpdated(UpdateContext updateContext)
BaseNodenetworkUpdated in class BaseNodepublic String toString()
protected boolean internalEquals(Object object)
internalEquals in class BaseNodepublic ConditionalBranchNode.ConditionalBranchMemory createMemory(RuleBaseConfiguration config, InternalWorkingMemory wm)
createMemory in interface MemoryFactory<ConditionalBranchNode.ConditionalBranchMemory>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 TupleSourceprotected void initDeclaredMask(BuildContext context, LeftTupleSource leftInput)
initDeclaredMask in class LeftTupleSourceCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.