public class QueryTerminalNode extends AbstractTerminalNode implements LeftTupleSinkNode
Action s on a
matched Rule.Rule,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected QueryImpl |
query
The rule to invoke upon match.
|
static short |
type |
associations, id, partitionId, partitionsEnabled| Constructor and Description |
|---|
QueryTerminalNode() |
QueryTerminalNode(int id,
LeftTupleSource source,
RuleImpl rule,
GroupElement subrule,
int subruleIndex,
BuildContext context)
Constructor
|
createMemory, doRemove, getDeclaredMask, getInferredMask, getLeftInferredMask, getLeftTupleSource, getNegativeMask, initDeclaredMask, initInferredMask, initPathMemory, modifyLeftTuple, setDeclaredMask, setInferredMask, setNegativeMask, unwrapTupleSourceaddAssociation, attach, getAssociations, getId, getPartitionId, hashCode, isStreamMode, remove, removeAssociation, setId, setPartitionId, setStreamModeclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetLeftInferredMask, getLeftTupleSource, modifyLeftTuplegetAssociations, getId, getPartitionIdgetIdpublic static final short type
protected QueryImpl query
public QueryTerminalNode()
public QueryTerminalNode(int id,
LeftTupleSource source,
RuleImpl rule,
GroupElement subrule,
int subruleIndex,
BuildContext context)
id - node IDsource - the tuple source for this noderule - the rule this node belongs tosubrule - the subrule this node belongs tocontext - the current build contextpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractTerminalNodeIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractTerminalNodeIOExceptionpublic QueryImpl getQuery()
public RuleImpl getRule()
getRule in interface TerminalNodegetRule in class AbstractTerminalNodepublic void networkUpdated(UpdateContext updateContext)
BaseNodenetworkUpdated in class BaseNodepublic boolean isInUse()
BaseNodepublic void updateNewNode(InternalWorkingMemory workingMemory, PropagationContext context)
public boolean isLeftTupleMemoryEnabled()
isLeftTupleMemoryEnabled in interface LeftTupleSinkpublic void setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled)
setLeftTupleMemoryEnabled in interface LeftTupleSinkpublic GroupElement getSubRule()
getSubRule in interface TerminalNodepublic boolean isFireDirect()
isFireDirect in interface TerminalNodepublic Declaration[] getDeclarations()
getDeclarations in interface TerminalNodepublic int getSubruleIndex()
public LeftTupleSinkNode getPreviousLeftTupleSinkNode()
getPreviousLeftTupleSinkNode in interface LeftTupleSinkNodepublic void setPreviousLeftTupleSinkNode(LeftTupleSinkNode previous)
setPreviousLeftTupleSinkNode in interface LeftTupleSinkNodeprevious - The previous TupleSinkNodepublic LeftTupleSinkNode getNextLeftTupleSinkNode()
getNextLeftTupleSinkNode in interface LeftTupleSinkNodepublic void setNextLeftTupleSinkNode(LeftTupleSinkNode next)
setNextLeftTupleSinkNode in interface LeftTupleSinkNodenext - The next TupleSinkNodepublic short getType()
getType in interface NetworkNodegetType in interface LeftTupleSinkpublic LeftTuple createLeftTuple(InternalFactHandle factHandle, LeftTupleSink sink, boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, LeftTupleSink sink)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(LeftTuple leftTuple, LeftTupleSink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTupleSink sink)
createLeftTuple in interface LeftTupleSinkpublic LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, LeftTupleSink sink, boolean leftTupleMemoryEnabled)
createLeftTuple in interface LeftTupleSinkpublic ObjectTypeNode.Id getLeftInputOtnId()
getLeftInputOtnId in interface LeftTupleSinkpublic void setLeftInputOtnId(ObjectTypeNode.Id leftInputOtnId)
setLeftInputOtnId in interface LeftTupleSinkpublic LeftTuple createPeer(LeftTuple original)
createPeer in interface LeftTupleSinkcreatePeer in class AbstractTerminalNodepublic Declaration[] getSalienceDeclarations()
getSalienceDeclarations in interface TerminalNodepublic Declaration[][] getTimerDeclarations()
getTimerDeclarations in interface TerminalNodepublic void assertLeftTuple(LeftTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
LeftTupleSinkReteTuple.assertLeftTuple in interface LeftTupleSinkleftTuple - The ReteTuple to propagate.context - The PropagationContext of the WorkingMemory actionworkingMemory - the WorkingMemory session.public void retractLeftTuple(LeftTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
retractLeftTuple in interface LeftTupleSinkpublic void modifyLeftTuple(LeftTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
modifyLeftTuple in interface LeftTupleSinkpublic void attach(BuildContext context)
BaseNodeObjectSource or TupleSourceCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.