public class RightInputAdapterNode extends ObjectSource implements LeftTupleSinkNode, MemoryFactory<RightInputAdapterNode.RiaNodeMemory>
| Modifier and Type | Class and Description |
|---|---|
static class |
RightInputAdapterNode.RiaNodeMemory |
declaredMask, inferredMask, sink, sourceassociations, 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, getObjectTypeNode, getParentObjectSource, getSinkPropagator, initDeclaredMask, isInUse, removeObjectSink, resetInferredMask, updateMaskaddAssociation, attach, getAssociations, getId, getPartitionId, isStreamMode, remove, removeAssociation, setId, setPartitionId, setStreamModeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAssociations, getId, getPartitionIdgetIdpublic 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 LeftTupleSource getStartTupleSource()
public 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 NetworkNodegetType in interface LeftTupleSinkpublic int hashCode()
BaseNodepublic 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 LeftTupleSource getLeftTupleSource()
getLeftTupleSource in interface LeftTupleSinkpublic 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 modifyLeftTuple(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
modifyLeftTuple in interface LeftTupleSinkpublic void modifyLeftTuple(LeftTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
modifyLeftTuple 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 LeftTupleSinkCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.