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, memoryId, 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 |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssociation(BuildContext context,
org.kie.api.definition.rule.Rule rule) |
void |
attach(BuildContext context)
Attaches the node into the network.
|
BitMask |
calculateDeclaredMask(List<String> settableProperties) |
LeftTuple |
createLeftTuple(InternalFactHandle factHandle,
LeftTuple leftTuple,
Sink sink) |
LeftTuple |
createLeftTuple(InternalFactHandle factHandle,
Sink sink,
boolean leftTupleMemoryEnabled) |
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
LeftTuple currentLeftChild,
LeftTuple currentRightChild,
Sink sink,
boolean leftTupleMemoryEnabled) |
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
RightTuple rightTuple,
Sink sink) |
LeftTuple |
createLeftTuple(LeftTuple leftTuple,
Sink sink,
PropagationContext pctx,
boolean leftTupleMemoryEnabled) |
RightInputAdapterNode.RiaNodeMemory |
createMemory(RuleBaseConfiguration config,
InternalWorkingMemory wm)
Creates and return the node memory
|
SubnetworkTuple |
createPeer(LeftTuple original) |
protected boolean |
doRemove(RuleRemovalContext context,
ReteooBuilder builder,
InternalWorkingMemory[] workingMemories)
Removes the node from the network.
|
boolean |
equals(Object object) |
BitMask |
getLeftInferredMask() |
ObjectTypeNode.Id |
getLeftInputOtnId() |
LeftTupleSource |
getLeftTupleSource() |
LeftTupleSinkNode |
getNextLeftTupleSinkNode()
Returns the next node
|
PathEndNode[] |
getPathEndNodes() |
LeftTupleNode[] |
getPathNodes() |
int |
getPositionInPath() |
LeftTupleSinkNode |
getPreviousLeftTupleSinkNode()
Returns the previous node
|
LeftTupleSinkPropagator |
getSinkPropagator() |
LeftTupleSource |
getStartTupleSource() |
short |
getType() |
boolean |
hasPathNode(LeftTupleNode node) |
protected boolean |
internalEquals(Object object) |
boolean |
isLeftTupleMemoryEnabled() |
void |
networkUpdated(UpdateContext updateContext)
A method that is called for all nodes whose network below them
changed, after the change is complete, providing them with an opportunity
for state update
|
void |
readExternal(ObjectInput in) |
boolean |
removeAssociation(org.kie.api.definition.rule.Rule rule)
Removes the association to the given rule from the
associations map.
|
void |
setLeftInputOtnId(ObjectTypeNode.Id leftInputOtnId) |
void |
setLeftTupleMemoryEnabled(boolean tupleMemoryEnabled) |
void |
setNextLeftTupleSinkNode(LeftTupleSinkNode next)
Sets the next node
|
void |
setPathEndNodes(PathEndNode[] pathEndNodes) |
void |
setPreviousLeftTupleSinkNode(LeftTupleSinkNode previous)
Sets the previous node
|
void |
setTupleSource(LeftTupleSource tupleSource) |
String |
toString() |
void |
updateSink(ObjectSink sink,
PropagationContext context,
InternalWorkingMemory workingMemory) |
void |
writeExternal(ObjectOutput out) |
addObjectSink, getDeclaredMask, getKnowledgeBase, getObjectSinkPropagator, getObjectTypeNode, getParentObjectSource, initDeclaredMask, isInUse, removeObjectSink, resetInferredMask, setObjectSinkPropagator, setParentObjectSource, setPartitionId, setPartitionIdWithSinks, setSourcePartitionId, updateMaskaddAssociation, getAssociatedRules, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getMemoryId, getPartitionId, getSinks, hashCode, initMemoryId, isAssociatedWith, isStreamMode, remove, setId, setPartitionsEnabled, setStreamMode, thisNodeEqualsclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetPartitionIdWithSinksgetAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWith, thisNodeEqualsgetMemoryIdpublic 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 SubnetworkTuple createPeer(LeftTuple original)
createPeer in interface LeftTupleSinkpublic 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 void setTupleSource(LeftTupleSource tupleSource)
public 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 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–2017 JBoss by Red Hat. All rights reserved.