站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

ObjectSource (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.reteoo
Class ObjectSource

java.lang.Object
  extended by org.drools.common.BaseNode
      extended by org.drools.reteoo.ObjectSource
All Implemented Interfaces:
Serializable, NetworkNode
Direct Known Subclasses:
AlphaNode, ObjectTypeNode, Rete, RightInputAdapterNode

public abstract class ObjectSource
extends BaseNode
implements Serializable

A source of FactHandles for an ObjectSink.

Nodes that propagate FactHandleImpl extend this class.

Author:
Mark Proctor, Bob McWhirter
See Also:
ObjectSource, DefaultFactHandle, Serialized Form

Field Summary
protected  ObjectSource objectSource
           
protected  ObjectSinkPropagator sink
          The destination for FactHandleImpl.
 
Fields inherited from class org.drools.common.BaseNode
hasMemory, id, sharedCount
 
Method Summary
protected  void addObjectSink(ObjectSink objectSink)
          Adds the ObjectSink so that it may receive FactHandleImpl propagated from this ObjectSource.
 ObjectSinkPropagator getSinkPropagator()
           
protected  void removeObjectSink(ObjectSink objectSink)
          Removes the ObjectSink
abstract  void updateSink(ObjectSink sink, PropagationContext context, InternalWorkingMemory workingMemory)
           
 
Methods inherited from class org.drools.common.BaseNode
addShare, attach, attach, getId, getSharedCount, hashCode, hasMemory, isInUse, isShared, remove, removeShare, setHasMemory, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

sink

protected ObjectSinkPropagator sink
The destination for FactHandleImpl.


objectSource

protected ObjectSource objectSource
Method Detail

addObjectSink

protected void addObjectSink(ObjectSink objectSink)
Adds the ObjectSink so that it may receive FactHandleImpl propagated from this ObjectSource.

Parameters:
objectSink - The ObjectSink to receive propagated FactHandleImpl.

removeObjectSink

protected void removeObjectSink(ObjectSink objectSink)
Removes the ObjectSink

Parameters:
objectSink - The ObjectSink to remove

updateSink

public abstract void updateSink(ObjectSink sink,
                                PropagationContext context,
                                InternalWorkingMemory workingMemory)

getSinkPropagator

public ObjectSinkPropagator getSinkPropagator()


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.