public class RightInputAdapterNode extends ObjectSource implements LeftTupleSinkNode, PathEndNode, MemoryFactory<RightInputAdapterNode.RiaNodeMemory>
| Modifier and Type | Class and Description |
|---|---|
static class |
RightInputAdapterNode.RiaNodeMemory |
alphaNodeHashingThreshold, declaredMask, inferredMask, sink, sourceassociations, hashcode, id, partitionId, partitionsEnabled| Constructor and Description |
|---|
RightInputAdapterNode() |
RightInputAdapterNode(int id,
LeftTupleSource source,
LeftTupleSource startTupleSource,
BuildContext context)
Constructor specifying the unique id of the node in the Rete network, the position of the propagating
FactHandleImpl in
ReteTuple and the source that propagates the receive ReteTuple |
addObjectSink, getDeclaredMask, getKnowledgeBase, getObjectSinkPropagator, getObjectTypeNode, getParentObjectSource, initDeclaredMask, isInUse, removeObjectSink, resetInferredMask, setObjectSinkPropagator, setPartitionId, setPartitionIdWithSinks, setSourcePartitionId, updateMaskaddAssociation, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, hashCode, isAssociatedWith, isStreamMode, remove, setId, setStreamMode, thisNodeEqualsclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetPartitionIdWithSinksgetAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWith, thisNodeEqualsgetIdpublic RightInputAdapterNode()
public RightInputAdapterNode(int id,
LeftTupleSource source,
LeftTupleSource startTupleSource,
BuildContext context)
FactHandleImpl in
ReteTuple and the source that propagates the receive ReteTuples.id - Unique idsource - The TupleSource which propagates the received ReteTuplepublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class ObjectSourceIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class ObjectSourceIOExceptionpublic void setPathEndNodes(PathEndNode[] pathEndNodes)
setPathEndNodes in interface PathEndNodepublic PathEndNode[] getPathEndNodes()
getPathEndNodes in interface PathEndNodepublic LeftTupleSource getStartTupleSource()
public int getPositionInPath()
getPositionInPath in interface LeftTupleNodepublic RightInputAdapterNode.RiaNodeMemory createMemory(RuleBaseConfiguration config, InternalWorkingMemory wm)
createMemory in interface MemoryFactory<RightInputAdapterNode.RiaNodeMemory>public LeftTuple createPeer(LeftTuple original)
createPeer in interface LeftTupleSinkpublic InternalFactHandle createFactHandle(LeftTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
public void attach(BuildContext context)
BaseNodeObjectSource or TupleSourcepublic void networkUpdated(UpdateContext updateContext)
BaseNodenetworkUpdated in class ObjectSourceprotected boolean doRemove(RuleRemovalContext context, ReteooBuilder builder, InternalWorkingMemory[] workingMemories)
BaseNodeObjectSource or TupleSourcedoRemove in class ObjectSourcepublic boolean isLeftTupleMemoryEnabled()
isLeftTupleMemoryEnabled in interface LeftTupleSinkpublic 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 NetworkNodeprotected boolean internalEquals(Object object)
internalEquals in class BaseNodepublic 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 LeftTupleSource getLeftTupleSource()
getLeftTupleSource in interface LeftTupleNodepublic ObjectTypeNode.Id getLeftInputOtnId()
getLeftInputOtnId in interface LeftTupleSinkpublic void setLeftInputOtnId(ObjectTypeNode.Id leftInputOtnId)
setLeftInputOtnId in interface LeftTupleSinkpublic BitMask calculateDeclaredMask(List<String> settableProperties)
calculateDeclaredMask in class ObjectSourcepublic BitMask getLeftInferredMask()
getLeftInferredMask in interface LeftTupleSinkpublic void updateSink(ObjectSink sink, PropagationContext context, InternalWorkingMemory workingMemory)
updateSink in class ObjectSourcepublic 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 LeftTupleNode[] getPathNodes()
getPathNodes in interface PathEndNodepublic boolean hasPathNode(LeftTupleNode node)
hasPathNode in interface PathEndNodepublic LeftTupleSinkPropagator getSinkPropagator()
getSinkPropagator in interface LeftTupleNodepublic void addAssociation(BuildContext context, org.kie.api.definition.rule.Rule rule)
addAssociation in class BaseNodepublic boolean removeAssociation(org.kie.api.definition.rule.Rule rule)
BaseNoderemoveAssociation in class BaseNodeCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.