public class RightInputAdapterNode extends ObjectSource implements LeftTupleSinkNode, MemoryFactory<RightInputAdapterNode.RiaNodeMemory>
Modifier and Type | Class and Description |
---|---|
static class |
RightInputAdapterNode.RiaNodeMemory |
declaredMask, inferredMask, sink, source
associations, 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, updateMask
addAssociation, addAssociation, getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWith, isStreamMode, remove, removeAssociation, setId, setPartitionId, setStreamMode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWith
getId
public 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 ReteTuple
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class ObjectSource
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class ObjectSource
IOException
public LeftTupleSource getStartTupleSource()
public RightInputAdapterNode.RiaNodeMemory createMemory(RuleBaseConfiguration config, InternalWorkingMemory wm)
createMemory
in interface MemoryFactory<RightInputAdapterNode.RiaNodeMemory>
public LeftTuple createPeer(LeftTuple original)
createPeer
in interface LeftTupleSink
public InternalFactHandle createFactHandle(LeftTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
public void attach(BuildContext context)
BaseNode
ObjectSource
or TupleSource
public void networkUpdated(UpdateContext updateContext)
BaseNode
networkUpdated
in class ObjectSource
protected boolean doRemove(RuleRemovalContext context, ReteooBuilder builder, InternalWorkingMemory[] workingMemories)
BaseNode
ObjectSource
or TupleSource
doRemove
in class ObjectSource
public boolean isLeftTupleMemoryEnabled()
isLeftTupleMemoryEnabled
in interface LeftTupleSink
public void setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled)
setLeftTupleMemoryEnabled
in interface LeftTupleSink
public LeftTupleSinkNode getNextLeftTupleSinkNode()
getNextLeftTupleSinkNode
in interface LeftTupleSinkNode
public void setNextLeftTupleSinkNode(LeftTupleSinkNode next)
setNextLeftTupleSinkNode
in interface LeftTupleSinkNode
next
- The next TupleSinkNodepublic LeftTupleSinkNode getPreviousLeftTupleSinkNode()
getPreviousLeftTupleSinkNode
in interface LeftTupleSinkNode
public void setPreviousLeftTupleSinkNode(LeftTupleSinkNode previous)
setPreviousLeftTupleSinkNode
in interface LeftTupleSinkNode
previous
- The previous TupleSinkNodepublic short getType()
getType
in interface NetworkNode
getType
in interface LeftTupleSink
public int hashCode()
BaseNode
public LeftTuple createLeftTuple(InternalFactHandle factHandle, LeftTupleSink sink, boolean leftTupleMemoryEnabled)
createLeftTuple
in interface LeftTupleSink
public LeftTuple createLeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, LeftTupleSink sink)
createLeftTuple
in interface LeftTupleSink
public LeftTuple createLeftTuple(LeftTuple leftTuple, LeftTupleSink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled)
createLeftTuple
in interface LeftTupleSink
public LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTupleSink sink)
createLeftTuple
in interface LeftTupleSink
public LeftTuple createLeftTuple(LeftTuple leftTuple, RightTuple rightTuple, LeftTuple currentLeftChild, LeftTuple currentRightChild, LeftTupleSink sink, boolean leftTupleMemoryEnabled)
createLeftTuple
in interface LeftTupleSink
public LeftTupleSource getLeftTupleSource()
getLeftTupleSource
in interface LeftTupleSink
public ObjectTypeNode.Id getLeftInputOtnId()
getLeftInputOtnId
in interface LeftTupleSink
public void setLeftInputOtnId(ObjectTypeNode.Id leftInputOtnId)
setLeftInputOtnId
in interface LeftTupleSink
public BitMask calculateDeclaredMask(List<String> settableProperties)
calculateDeclaredMask
in class ObjectSource
public BitMask getLeftInferredMask()
getLeftInferredMask
in interface LeftTupleSink
public void modifyLeftTuple(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
modifyLeftTuple
in interface LeftTupleSink
public void modifyLeftTuple(LeftTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
modifyLeftTuple
in interface LeftTupleSink
public void updateSink(ObjectSink sink, PropagationContext context, InternalWorkingMemory workingMemory)
updateSink
in class ObjectSource
public void assertLeftTuple(LeftTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
LeftTupleSink
ReteTuple
.assertLeftTuple
in interface LeftTupleSink
leftTuple
- The ReteTuple
to propagate.context
- The PropagationContext
of the WorkingMemory action
workingMemory
- the WorkingMemory
session.public void retractLeftTuple(LeftTuple leftTuple, PropagationContext context, InternalWorkingMemory workingMemory)
retractLeftTuple
in interface LeftTupleSink
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.