public class TraitObjectTypeNode extends ObjectTypeNode
ObjectTypeNode.ExpireJob, ObjectTypeNode.ExpireJobContext, ObjectTypeNode.ExpireJobContextTimerInputMarshaller, ObjectTypeNode.ExpireJobContextTimerOutputMarshaller, ObjectTypeNode.Id, ObjectTypeNode.ObjectTypeNodeMemory
compiledNetwork, DEFAULT_ID, dirty, idGenerator, job, objectType
declaredMask, inferredMask, sink, source
associations, id, partitionId, partitionsEnabled, streamMode
Constructor and Description |
---|
TraitObjectTypeNode(int id,
EntryPointNode source,
ObjectType objectType,
BuildContext context) |
Modifier and Type | Method and Description |
---|---|
void |
assertObject(InternalFactHandle factHandle,
PropagationContext context,
InternalWorkingMemory workingMemory)
Propagate the
FactHandleimpl through the Rete network. |
void |
modifyObject(InternalFactHandle factHandle,
ModifyPreviousTuples modifyPreviousTuples,
PropagationContext context,
InternalWorkingMemory workingMemory) |
boolean |
needsMaskUpdate() |
void |
readExternal(ObjectInput in) |
BitMask |
updateMask(BitMask mask) |
void |
writeExternal(ObjectOutput out) |
attach, byPassModifyToBetaNode, calculateDeclaredMask, createMemory, doRemove, doRetractObject, equals, getEntryPoint, getExpirationOffset, getObjectType, getOtnIdCounter, getType, hashCode, isAssignableFrom, isObjectMemoryEnabled, networkUpdated, nextOtnId, remove, resetIdGenerator, retractObject, setCompiledNetwork, setExpirationOffset, setObjectMemoryEnabled, toString, updateSink, updateTupleSinkId
addObjectSink, getDeclaredMask, getObjectTypeNode, getParentObjectSource, getSinkPropagator, initDeclaredMask, isInUse, removeObjectSink, resetInferredMask
addAssociation, attach, getAssociations, getId, getPartitionId, isStreamMode, registerUnlinkedPaths, removeAssociation, setId, setPartitionId
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAssociations, getId, getPartitionId
getId
public TraitObjectTypeNode(int id, EntryPointNode source, ObjectType objectType, BuildContext context)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class ObjectTypeNode
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class ObjectTypeNode
IOException
public void assertObject(InternalFactHandle factHandle, PropagationContext context, InternalWorkingMemory workingMemory)
ObjectTypeNode
FactHandleimpl
through the Rete
network. All
FactHandleImpl
should be remembered in the node memory, so that later runtime rule attachmnents
can have the matched facts propagated to them.assertObject
in interface ObjectSink
assertObject
in class ObjectTypeNode
factHandle
- The fact handle.context
- The propagation context.workingMemory
- The working memory session.public void modifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, InternalWorkingMemory workingMemory)
modifyObject
in interface ObjectSink
modifyObject
in class ObjectTypeNode
public boolean needsMaskUpdate()
public BitMask updateMask(BitMask mask)
updateMask
in class ObjectSource
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.