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

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


org.drools.reteoo
Class TupleSource

java.lang.Object
  extended by org.drools.common.BaseNode
      extended by org.drools.reteoo.TupleSource
All Implemented Interfaces:
Serializable, NetworkNode
Direct Known Subclasses:
AccumulateNode, CollectNode, EvalConditionNode, ExistsNode, FromNode, JoinNode, LeftInputAdapterNode, NotNode

public abstract class TupleSource
extends BaseNode
implements Serializable

A source of ReteTuple s for a TupleSink.

Nodes that propagate Tuples extend this class.

Author:
Mark Proctor, Bob McWhirter
See Also:
TupleSource, ReteTuple, Serialized Form

Field Summary
protected  TupleSinkPropagator sink
          The destination for Tuples.
 
Fields inherited from class org.drools.common.BaseNode
hasMemory, id, sharedCount
 
Method Summary
protected  void addTupleSink(TupleSink tupleSink)
          Adds the TupleSink so that it may receive Tuples propagated from this TupleSource.
 TupleSinkPropagator getSinkPropagator()
           
protected  void removeTupleSink(TupleSink tupleSink)
          Removes the TupleSink
abstract  void updateSink(TupleSink 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 TupleSinkPropagator sink
The destination for Tuples.

Method Detail

addTupleSink

protected void addTupleSink(TupleSink tupleSink)
Adds the TupleSink so that it may receive Tuples propagated from this TupleSource.

Parameters:
tupleSink - The TupleSink to receive propagated Tuples.

removeTupleSink

protected void removeTupleSink(TupleSink tupleSink)
Removes the TupleSink

Parameters:
tupleSink - The TupleSink to remove

getSinkPropagator

public TupleSinkPropagator getSinkPropagator()

updateSink

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


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