public abstract class AbstractTerminalNode extends BaseNode implements TerminalNode, MemoryFactory, Externalizable
associations, id, partitionId, partitionsEnabled, streamMode
Constructor and Description |
---|
AbstractTerminalNode() |
AbstractTerminalNode(int id,
RuleBasePartitionId partitionId,
boolean partitionsEnabled,
LeftTupleSource source) |
addAssociation, attach, attach, getAssociations, getId, getPartitionId, hashCode, isInUse, isStreamMode, networkUpdated, registerUnlinkedPaths, remove, removeAssociation, setId, setPartitionId, toString
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
getDeclarations, getSalienceDeclarations, getSubRule, getTimerDeclarations, isFireDirect
getNextLeftTupleSinkNode, getPreviousLeftTupleSinkNode, setNextLeftTupleSinkNode, setPreviousLeftTupleSinkNode
assertLeftTuple, createLeftTuple, createLeftTuple, createLeftTuple, createLeftTuple, createLeftTuple, getLeftInputOtnId, isLeftTupleMemoryEnabled, modifyLeftTuple, retractLeftTuple, setLeftInputOtnId, setLeftTupleMemoryEnabled
getAssociations, getId, getPartitionId
getId
public AbstractTerminalNode()
public AbstractTerminalNode(int id, RuleBasePartitionId partitionId, boolean partitionsEnabled, LeftTupleSource source)
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 void initDeclaredMask(BuildContext context)
public void initInferredMask()
initInferredMask
in interface TerminalNode
public LeftTupleSource unwrapTupleSource()
unwrapTupleSource
in interface TerminalNode
public void modifyLeftTuple(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
modifyLeftTuple
in interface LeftTupleSink
public abstract RuleImpl getRule()
getRule
in interface TerminalNode
public Memory createMemory(RuleBaseConfiguration config, InternalWorkingMemory wm)
createMemory
in interface MemoryFactory
public static void initPathMemory(PathMemory pmem, LeftTupleSource tupleSource, LeftTupleSource startTupleSource, InternalWorkingMemory wm, RuleImpl removingRule)
public LeftTuple createPeer(LeftTuple original)
createPeer
in interface LeftTupleSink
protected void doRemove(RuleRemovalContext context, ReteooBuilder builder, InternalWorkingMemory[] workingMemories)
BaseNode
ObjectSource
or TupleSource
public LeftTupleSource getLeftTupleSource()
getLeftTupleSource
in interface LeftTupleSink
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
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.