org.drools.reteoo
Class TraitObjectTypeNode

java.lang.Object
  extended by org.drools.common.BaseNode
      extended by org.drools.reteoo.ObjectSource
          extended by org.drools.reteoo.ObjectTypeNode
              extended by org.drools.reteoo.TraitObjectTypeNode
All Implemented Interfaces:
Externalizable, Serializable, NetworkNode, NodeMemory, ObjectSink, Sink

public class TraitObjectTypeNode
extends ObjectTypeNode

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.drools.reteoo.ObjectTypeNode
ObjectTypeNode.ExpireJob, ObjectTypeNode.ExpireJobContext, ObjectTypeNode.ExpireJobContextTimerInputMarshaller, ObjectTypeNode.ExpireJobContextTimerOutputMarshaller, ObjectTypeNode.Id, ObjectTypeNode.ObjectTypeNodeMemory
 
Field Summary
 
Fields inherited from class org.drools.reteoo.ObjectTypeNode
compiledNetwork, DEFAULT_ID, dirty, idGenerator, job, objectType
 
Fields inherited from class org.drools.reteoo.ObjectSource
declaredMask, inferredMask, sink, source
 
Fields inherited from class org.drools.common.BaseNode
associations, id, partitionId, partitionsEnabled
 
Constructor Summary
TraitObjectTypeNode(int id, EntryPointNode source, ObjectType objectType, BuildContext context)
           
 
Method Summary
 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)
           
 long updateMask(long mask)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.reteoo.ObjectTypeNode
attach, byPassModifyToBetaNode, calculateDeclaredMask, createMemory, doCollectAncestors, doRemove, equals, getEntryPoint, getExpirationOffset, getObjectType, getOtnIdCounter, getType, hashCode, isAssignableFrom, isObjectMemoryEnabled, networkUpdated, nextOtnId, remove, resetIdGenerator, retractObject, setCompiledNetwork, setExpirationOffset, setObjectMemoryEnabled, toString, updateSink, updateSinkOnAttach, updateTupleSinkId
 
Methods inherited from class org.drools.reteoo.ObjectSource
addObjectSink, getDeclaredMask, getObjectTypeNode, getParentObjectSource, getSinkPropagator, initDeclaredMask, isInUse, removeObjectSink, resetInferredMask
 
Methods inherited from class org.drools.common.BaseNode
addAssociation, attach, collectAncestors, getAssociations, getId, getPartitionId, removeAssociation, setPartitionId, updateSinkOnAttach
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.drools.common.NetworkNode
getId, getPartitionId
 
Methods inherited from interface org.drools.common.NodeMemory
getId
 

Constructor Detail

TraitObjectTypeNode

public TraitObjectTypeNode(int id,
                           EntryPointNode source,
                           ObjectType objectType,
                           BuildContext context)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class ObjectTypeNode
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class ObjectTypeNode
Throws:
IOException

assertObject

public void assertObject(InternalFactHandle factHandle,
                         PropagationContext context,
                         InternalWorkingMemory workingMemory)
Description copied from class: ObjectTypeNode
Propagate the 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.

Specified by:
assertObject in interface ObjectSink
Overrides:
assertObject in class ObjectTypeNode
Parameters:
factHandle - The fact handle.
context - The propagation context.
workingMemory - The working memory session.

modifyObject

public void modifyObject(InternalFactHandle factHandle,
                         ModifyPreviousTuples modifyPreviousTuples,
                         PropagationContext context,
                         InternalWorkingMemory workingMemory)
Specified by:
modifyObject in interface ObjectSink
Overrides:
modifyObject in class ObjectTypeNode

needsMaskUpdate

public boolean needsMaskUpdate()
Overrides:
needsMaskUpdate in class ObjectTypeNode

updateMask

public long updateMask(long mask)
Overrides:
updateMask in class ObjectSource


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.