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 |
declaredMask, inferredMask, sink, sourceassociations, hashcode, id, 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, updateMaskaddAssociation, addAssociation, getAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, hashCode, isAssociatedWith, isStreamMode, remove, removeAssociation, setId, setPartitionId, setStreamMode, thisNodeEqualsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAssociatedRuleSize, getAssociationsSize, getAssociationsSize, getId, getPartitionId, isAssociatedWith, thisNodeEqualsprotected 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 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 void propagateModify(InternalFactHandle handle, PropagationContext pctx, ObjectTypeConf objectTypeConf, InternalWorkingMemory wm)
public void doDeleteObject(PropagationContext pctx, InternalWorkingMemory wm, LeftTuple leftTuple)
public void doRightDelete(PropagationContext pctx, InternalWorkingMemory wm, RightTuple rightTuple)
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 boolean removeObjectSink(ObjectSink objectSink)
ObjectSourceObjectSinkremoveObjectSink in class ObjectSourceobjectSink - The ObjectSink to removepublic void attach()
public void attach(BuildContext context)
BaseNodeObjectSource or TupleSourceprotected boolean doRemove(RuleRemovalContext context, ReteooBuilder builder, InternalWorkingMemory[] workingMemories)
BaseNodeObjectSource or TupleSourcedoRemove in class ObjectSourcepublic Map<ObjectType,ObjectTypeNode> getObjectTypeNodes()
protected boolean internalEquals(Object object)
internalEquals in class BaseNodepublic 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(List<String> settableProperties)
calculateDeclaredMask in class ObjectSourceCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.