public class EntryPointNode extends ObjectSource implements Externalizable, ObjectSink
ObjectTypeNode,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
protected Map<ObjectType,ObjectTypeNode> |
objectTypeNodes
The object type nodes under this node
|
protected ObjectTypeNode |
queryNode |
alphaNodeHashingThreshold, alphaNodeRangeIndexThreshold, declaredMask, inferredMask, sink, sourceassociations, hashcode, id, memoryId, partitionId, partitionsEnabled| Constructor and Description |
|---|
EntryPointNode() |
EntryPointNode(int id,
ObjectSource objectSource,
BuildContext context) |
EntryPointNode(int id,
RuleBasePartitionId partitionId,
boolean partitionsEnabled,
ObjectSource objectSource,
EntryPointId entryPoint) |
getDeclaredMask, getKnowledgeBase, getObjectSinkPropagator, getObjectTypeNode, getParentObjectSource, initDeclaredMask, isInUse, networkUpdated, resetInferredMask, setObjectSinkPropagator, setParentObjectSource, setPartitionId, setPartitionIdWithSinks, setSourcePartitionId, updateMaskaddAssociation, addAssociation, attach, getAssociatedRules, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getMemoryId, getPartitionId, getSinks, hashCode, initMemoryId, isAssociatedWith, isStreamMode, remove, removeAssociation, setId, setPartitionsEnabled, setStreamModeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWithprotected static final transient org.slf4j.Logger log
protected Map<ObjectType,ObjectTypeNode> objectTypeNodes
protected ObjectTypeNode queryNode
public EntryPointNode()
public EntryPointNode(int id,
ObjectSource objectSource,
BuildContext context)
public EntryPointNode(int id,
RuleBasePartitionId partitionId,
boolean partitionsEnabled,
ObjectSource objectSource,
EntryPointId entryPoint)
public ObjectTypeConfigurationRegistry getTypeConfReg()
public 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 EntryPointId getEntryPoint()
public void assertQuery(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory)
public void retractQuery(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory)
public void modifyQuery(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory)
public ObjectTypeNode getQueryNode()
public void assertActivation(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory)
public void retractActivation(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory)
public void modifyActivation(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory)
public void assertObject(InternalFactHandle handle, PropagationContext context, ObjectTypeConf objectTypeConf, InternalWorkingMemory workingMemory)
public void modifyObject(InternalFactHandle handle, PropagationContext pctx, ObjectTypeConf objectTypeConf, InternalWorkingMemory workingMemory)
public static void removeRightTuplesMatchingOTN(PropagationContext pctx, InternalWorkingMemory wm, ModifyPreviousTuples modifyPreviousTuples, ObjectTypeNode node, int partition)
public void modifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
modifyObject in interface ObjectSinkpublic void assertObject(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory)
ObjectTypdeNodes asserting the Fact. If the cache does not
exist it first iterates and builds the cache.assertObject in interface ObjectSinkfactHandle - The FactHandle of the fact to assertcontext - The PropagationContext of the WorkingMemory actionworkingMemory - The working memory session.public void retractObject(InternalFactHandle handle, PropagationContext context, ObjectTypeConf objectTypeConf, InternalWorkingMemory workingMemory)
RuleBase and the specified
WorkingMemory.handle - The handle of the fact to retract.workingMemory - The working memory session.public void propagateRetract(InternalFactHandle handle, PropagationContext context, ObjectTypeConf objectTypeConf, InternalWorkingMemory workingMemory)
public void addObjectSink(ObjectSink objectSink)
ObjectSink so that it may receive
Objects propagated from this ObjectSource.addObjectSink in class ObjectSourceobjectSink - The ObjectSink to receive propagated
Objects. Rete only accepts ObjectTypeNodes
as parameters to this method, though.public void removeObjectSink(ObjectSink objectSink)
ObjectSourceObjectSinkremoveObjectSink in class ObjectSourceobjectSink - The ObjectSink to removepublic void removeObjectType(ObjectType objectType)
public void attach()
public void doAttach(BuildContext context)
protected boolean doRemove(RuleRemovalContext context, ReteooBuilder builder)
BaseNodeObjectSource or TupleSourcedoRemove in class ObjectSourcepublic Map<ObjectType,ObjectTypeNode> getObjectTypeNodes()
public void updateSink(ObjectSink sink, PropagationContext context, InternalWorkingMemory workingMemory)
updateSink in class ObjectSourcepublic void byPassModifyToBetaNode(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
byPassModifyToBetaNode in interface ObjectSinkpublic BitMask calculateDeclaredMask(Class modifiedClass, List<String> settableProperties)
calculateDeclaredMask in class ObjectSourceCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.