net.sourceforge.mflow.api.base
Class AbstractMsgSource

java.lang.Object
  extended bynet.sourceforge.mflow.api.base.AbstractMsgFlowComponent
      extended bynet.sourceforge.mflow.api.base.AbstractMsgSource
All Implemented Interfaces:
Configurable, Iconable, MsgFlowComponent, MsgSource
Direct Known Subclasses:
AbstractMsgFilter

public abstract class AbstractMsgSource
extends AbstractMsgFlowComponent
implements MsgSource

Abstract implementation of MsgSource

Version:
$Revision: 1.3 $
Author:
David Carr

Constructor Summary
AbstractMsgSource()
           
 
Method Summary
 void addReceiver(MsgReceiver receiver)
          Adds a MsgReceiver
protected  java.util.List getQueuedMessages()
           
 MsgReceiver[] getReceivers()
          Accessor for all MsgReceivers associated with this MsgSource
protected abstract  void queueMessages()
          Called prior to sending messages
 void removeReceiver(MsgReceiver receiver)
          Removes a MsgReceiver
 void send()
          Sends all queued Msgs
 void setReceivers(MsgReceiver[] aReceivers)
          Mutator for all MsgReceivers associated with this MsgSource
 
Methods inherited from class net.sourceforge.mflow.api.base.AbstractMsgFlowComponent
configure, getIcon, getName, setIcon, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.mflow.api.MsgFlowComponent
getName, setName
 
Methods inherited from interface net.sourceforge.mflow.api.Configurable
configure
 
Methods inherited from interface net.sourceforge.mflow.api.Iconable
getIcon
 

Constructor Detail

AbstractMsgSource

public AbstractMsgSource()
Method Detail

getQueuedMessages

protected final java.util.List getQueuedMessages()
Returns:
the queued messages

addReceiver

public final void addReceiver(MsgReceiver receiver)
Adds a MsgReceiver

Specified by:
addReceiver in interface MsgSource
Parameters:
receiver - the new receiver

removeReceiver

public final void removeReceiver(MsgReceiver receiver)
Removes a MsgReceiver

Specified by:
removeReceiver in interface MsgSource
Parameters:
receiver - the receiver to remove

getReceivers

public final MsgReceiver[] getReceivers()
Accessor for all MsgReceivers associated with this MsgSource

Specified by:
getReceivers in interface MsgSource
Returns:
an array of MsgReceivers

setReceivers

public final void setReceivers(MsgReceiver[] aReceivers)
Mutator for all MsgReceivers associated with this MsgSource

Specified by:
setReceivers in interface MsgSource
Parameters:
aReceivers - the new array of MsgReceivers to use

queueMessages

protected abstract void queueMessages()
Called prior to sending messages


send

public final void send()
Sends all queued Msgs

Specified by:
send in interface MsgSource


Copyright © 2002-2004 MFlow Group. All Rights Reserved.