public abstract class AbstractTerminalNode extends BaseNode implements TerminalNode, PathEndNode, Externalizable
associations, id, partitionId, partitionsEnabled| Constructor and Description |
|---|
AbstractTerminalNode() |
AbstractTerminalNode(int id,
RuleBasePartitionId partitionId,
boolean partitionsEnabled,
LeftTupleSource source) |
| Modifier and Type | Method and Description |
|---|---|
PathMemory |
createMemory(RuleBaseConfiguration config,
InternalWorkingMemory wm) |
LeftTuple |
createPeer(LeftTuple original) |
protected boolean |
doRemove(RuleRemovalContext context,
ReteooBuilder builder,
InternalWorkingMemory[] workingMemories)
Removes the node from teh network.
|
BitMask |
getDeclaredMask() |
BitMask |
getInferredMask() |
BitMask |
getLeftInferredMask() |
LeftTupleSource |
getLeftTupleSource() |
BitMask |
getNegativeMask() |
LeftTupleNode[] |
getPathNodes() |
static LeftTupleNode[] |
getPathNodes(PathEndNode endNode) |
int |
getPositionInPath() |
abstract RuleImpl |
getRule() |
LeftTupleSinkPropagator |
getSinkPropagator() |
void |
initDeclaredMask(BuildContext context) |
void |
initInferredMask() |
static void |
initPathMemory(PathMemory pmem,
LeftTupleNode endNode,
LeftTupleSource startTupleSource,
InternalWorkingMemory wm,
org.kie.api.definition.rule.Rule removingRule)
Creates and return the node memory
|
boolean |
isInUse()
Returns true in case the current node is in use (is referenced by any other node)
|
boolean |
isLeftTupleMemoryEnabled() |
void |
modifyLeftTuple(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory) |
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 oportunity
for state update
|
void |
readExternal(ObjectInput in) |
void |
setDeclaredMask(BitMask mask) |
void |
setInferredMask(BitMask mask) |
void |
setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled) |
void |
setNegativeMask(BitMask mask) |
LeftTupleSource |
unwrapTupleSource() |
void |
writeExternal(ObjectOutput out) |
addAssociation, addAssociation, attach, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, hashCode, isAssociatedWith, isStreamMode, remove, removeAssociation, setId, setPartitionId, setStreamMode, toStringclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetAllDeclarations, getRequiredDeclarations, getSalienceDeclarations, getSubRule, getTimerDeclarations, isFireDirectgetNextLeftTupleSinkNode, getPreviousLeftTupleSinkNode, setNextLeftTupleSinkNode, setPreviousLeftTupleSinkNodeassertLeftTuple, createLeftTuple, createLeftTuple, createLeftTuple, createLeftTuple, createLeftTuple, getLeftInputOtnId, modifyLeftTuple, retractLeftTuple, setLeftInputOtnIdgetAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, getType, isAssociatedWithgetIdpublic AbstractTerminalNode()
public AbstractTerminalNode(int id,
RuleBasePartitionId partitionId,
boolean partitionsEnabled,
LeftTupleSource source)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class BaseNodeIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class BaseNodeIOExceptionpublic int getPositionInPath()
getPositionInPath in interface LeftTupleNodepublic void initDeclaredMask(BuildContext context)
public void initInferredMask()
initInferredMask in interface TerminalNodepublic LeftTupleSource unwrapTupleSource()
unwrapTupleSource in interface TerminalNodepublic void modifyLeftTuple(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
modifyLeftTuple in interface LeftTupleSinkpublic abstract RuleImpl getRule()
getRule in interface TerminalNodepublic PathMemory createMemory(RuleBaseConfiguration config, InternalWorkingMemory wm)
createMemory in interface MemoryFactory<PathMemory>public static void initPathMemory(PathMemory pmem, LeftTupleNode endNode, LeftTupleSource startTupleSource, InternalWorkingMemory wm, org.kie.api.definition.rule.Rule removingRule)
public LeftTuple createPeer(LeftTuple original)
createPeer in interface LeftTupleSinkprotected boolean doRemove(RuleRemovalContext context, ReteooBuilder builder, InternalWorkingMemory[] workingMemories)
BaseNodeObjectSource or TupleSourcepublic LeftTupleSource getLeftTupleSource()
getLeftTupleSource in interface LeftTupleNodegetLeftTupleSource in interface TerminalNodepublic BitMask getDeclaredMask()
getDeclaredMask in interface TerminalNodepublic BitMask getInferredMask()
getInferredMask in interface TerminalNodepublic BitMask getLeftInferredMask()
getLeftInferredMask in interface LeftTupleSinkpublic void setDeclaredMask(BitMask mask)
setDeclaredMask in interface TerminalNodepublic void setInferredMask(BitMask mask)
setInferredMask in interface TerminalNodepublic BitMask getNegativeMask()
getNegativeMask in interface TerminalNodepublic void setNegativeMask(BitMask mask)
setNegativeMask in interface TerminalNodepublic void networkUpdated(UpdateContext updateContext)
BaseNodenetworkUpdated in class BaseNodepublic boolean isInUse()
BaseNodepublic boolean isLeftTupleMemoryEnabled()
isLeftTupleMemoryEnabled in interface LeftTupleSinkpublic void setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled)
setLeftTupleMemoryEnabled in interface LeftTupleSinkpublic static LeftTupleNode[] getPathNodes(PathEndNode endNode)
public LeftTupleNode[] getPathNodes()
getPathNodes in interface PathEndNodepublic LeftTupleSinkPropagator getSinkPropagator()
getSinkPropagator in interface LeftTupleNodeCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.