public class PropagationQueuingNode extends ObjectSource implements ObjectSinkNode, MemoryFactory<PropagationQueuingNode.PropagationQueueingNodeMemory>
| Modifier and Type | Class and Description |
|---|---|
static class |
PropagationQueuingNode.PropagateAction
This is the action that is added to the working memory actions queue, so that
this node propagation can be triggered at a safe point
|
static class |
PropagationQueuingNode.PropagationQueueingNodeMemory
Memory implementation for the node
|
alphaNodeHashingThreshold, declaredMask, inferredMask, sink, sourceassociations, hashcode, id, partitionId, partitionsEnabled| Constructor and Description |
|---|
PropagationQueuingNode() |
PropagationQueuingNode(int id,
ObjectSource objectSource,
BuildContext context)
Construct a
PropagationQueuingNode that will queue up
propagations until it the engine reaches a safe propagation point,
when all the queued facts are propagated. |
addObjectSink, doRemove, getDeclaredMask, getKnowledgeBase, getObjectSinkPropagator, getObjectTypeNode, getParentObjectSource, initDeclaredMask, isInUse, networkUpdated, removeObjectSink, resetInferredMask, setObjectSinkPropagator, setPartitionId, setPartitionIdWithSinks, setSourcePartitionId, updateMaskaddAssociation, addAssociation, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, hashCode, isAssociatedWith, isStreamMode, remove, removeAssociation, setId, setStreamMode, thisNodeEquals, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetPartitionIdWithSinksgetAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWith, thisNodeEqualsgetIdpublic PropagationQueuingNode()
public PropagationQueuingNode(int id,
ObjectSource objectSource,
BuildContext context)
PropagationQueuingNode that will queue up
propagations until it the engine reaches a safe propagation point,
when all the queued facts are propagated.public BitMask calculateDeclaredMask(List<String> settableProperties)
calculateDeclaredMask in class ObjectSourcepublic 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 short getType()
getType in interface NetworkNodepublic void updateSink(ObjectSink sink, PropagationContext context, InternalWorkingMemory workingMemory)
updateSink in class ObjectSourcepublic void attach(BuildContext context)
BaseNodeObjectSource or TupleSourcepublic ObjectSinkNode getNextObjectSinkNode()
ObjectSinkNodegetNextObjectSinkNode in interface ObjectSinkNodepublic ObjectSinkNode getPreviousObjectSinkNode()
ObjectSinkNodegetPreviousObjectSinkNode in interface ObjectSinkNodepublic void setNextObjectSinkNode(ObjectSinkNode next)
ObjectSinkNodesetNextObjectSinkNode in interface ObjectSinkNodenext - The next LinkedListNodepublic void setPreviousObjectSinkNode(ObjectSinkNode previous)
ObjectSinkNodesetPreviousObjectSinkNode in interface ObjectSinkNodeprevious - The previous LinkedListNodepublic boolean isObjectMemoryEnabled()
public void assertObject(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory)
assertObject in interface ObjectSinkpublic void retractObject(InternalFactHandle handle, PropagationContext context, InternalWorkingMemory workingMemory)
public void modifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
modifyObject in interface ObjectSinkpublic void byPassModifyToBetaNode(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
byPassModifyToBetaNode in interface ObjectSinkpublic void propagateActions(InternalWorkingMemory workingMemory)
public void setObjectMemoryEnabled(boolean objectMemoryOn)
public PropagationQueuingNode.PropagationQueueingNodeMemory createMemory(RuleBaseConfiguration config, InternalWorkingMemory wm)
createMemory in interface MemoryFactory<PropagationQueuingNode.PropagationQueueingNodeMemory>public int calculateHashCode()
protected boolean internalEquals(Object object)
internalEquals in class BaseNodeCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.