public abstract class AbstractTerminalNode extends BaseNode implements TerminalNode, PathEndNode, Externalizable
PathEndNode.PathMemSpec
associations, hashcode, id, memoryId, partitionId, partitionsEnabled
Constructor and Description |
---|
AbstractTerminalNode() |
AbstractTerminalNode(int id,
RuleBasePartitionId partitionId,
boolean partitionsEnabled,
LeftTupleSource source,
BuildContext context) |
addAssociation, addAssociation, attach, getAssociatedRules, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getMemoryId, getPartitionId, getSinks, hashCode, initMemoryId, internalEquals, isAssociatedWith, isStreamMode, remove, removeAssociation, setId, setPartitionId, setPartitionsEnabled, setStreamMode, thisNodeEquals, toString
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
getAllDeclarations, getRequiredDeclarations, getSalienceDeclarations, getSubRule, getTimerDeclarations, isFireDirect
getNextLeftTupleSinkNode, getPreviousLeftTupleSinkNode, setNextLeftTupleSinkNode, setPreviousLeftTupleSinkNode
createLeftTuple, createLeftTuple, createLeftTuple, createLeftTuple, createLeftTuple, getLeftInputOtnId, setLeftInputOtnId
getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, getType, isAssociatedWith, thisNodeEquals
getMemoryId
calculatePathMemSpec, calculatePathMemSpec, hasConditionalBranchNode
public AbstractTerminalNode()
public AbstractTerminalNode(int id, RuleBasePartitionId partitionId, boolean partitionsEnabled, LeftTupleSource source, BuildContext context)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class BaseNode
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class BaseNode
IOException
public PathEndNode.PathMemSpec getPathMemSpec()
getPathMemSpec
in interface PathEndNode
public void resetPathMemSpec(TerminalNode removingTN)
resetPathMemSpec
in interface PathEndNode
public void setPathEndNodes(PathEndNode[] pathEndNodes)
setPathEndNodes
in interface PathEndNode
public PathEndNode[] getPathEndNodes()
getPathEndNodes
in interface PathEndNode
public int getPositionInPath()
getPositionInPath
in interface LeftTupleNode
public void initDeclaredMask(BuildContext context)
public void initInferredMask()
initInferredMask
in interface TerminalNode
public LeftTupleSource unwrapTupleSource()
unwrapTupleSource
in interface TerminalNode
public abstract RuleImpl getRule()
getRule
in interface TerminalNode
public PathMemory createMemory(RuleBaseConfiguration config, InternalWorkingMemory wm)
createMemory
in interface MemoryFactory<PathMemory>
public static PathMemory initPathMemory(PathEndNode pathEndNode, PathMemory pmem)
public LeftTuple createPeer(LeftTuple original)
createPeer
in interface LeftTupleSink
protected boolean doRemove(RuleRemovalContext context, ReteooBuilder builder, InternalWorkingMemory[] workingMemories)
BaseNode
ObjectSource
or TupleSource
public LeftTupleSource getLeftTupleSource()
getLeftTupleSource
in interface LeftTupleNode
getLeftTupleSource
in interface TerminalNode
public BitMask getDeclaredMask()
getDeclaredMask
in interface TerminalNode
public BitMask getInferredMask()
getInferredMask
in interface TerminalNode
public BitMask getLeftInferredMask()
getLeftInferredMask
in interface LeftTupleSink
public void setDeclaredMask(BitMask mask)
setDeclaredMask
in interface TerminalNode
public void setInferredMask(BitMask mask)
setInferredMask
in interface TerminalNode
public BitMask getNegativeMask()
getNegativeMask
in interface TerminalNode
public void setNegativeMask(BitMask mask)
setNegativeMask
in interface TerminalNode
public void networkUpdated(UpdateContext updateContext)
BaseNode
networkUpdated
in class BaseNode
public boolean isInUse()
BaseNode
public boolean isLeftTupleMemoryEnabled()
isLeftTupleMemoryEnabled
in interface LeftTupleSink
public void setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled)
setLeftTupleMemoryEnabled
in interface LeftTupleSink
public static LeftTupleNode[] getPathNodes(PathEndNode endNode)
public LeftTupleNode[] getPathNodes()
getPathNodes
in interface PathEndNode
public final boolean hasPathNode(LeftTupleNode node)
hasPathNode
in interface PathEndNode
public final boolean isTerminalNodeOf(LeftTupleNode node)
isTerminalNodeOf
in interface TerminalNode
public LeftTupleSinkPropagator getSinkPropagator()
getSinkPropagator
in interface LeftTupleNode
public final void setPartitionIdWithSinks(RuleBasePartitionId partitionId)
setPartitionIdWithSinks
in interface LeftTupleSink
public ObjectTypeNode getObjectTypeNode()
getObjectTypeNode
in class BaseNode
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.