net.jetrix.filter
Class AmplifierFilter

java.lang.Object
  extended by net.jetrix.filter.MessageFilter
      extended by net.jetrix.filter.AmplifierFilter

public class AmplifierFilter
extends MessageFilter

Amplifies specials sent. One line sent will turn into two lines, a tetris into eight, etc... The multiplicating factor is set to 2 by default but can be changed by adding a factor parameter to the FilterConfig.

Version:
$Revision: 497 $, $Date: 2004-12-14 03:12:55 +0100 (mar., 14 déc. 2004) $
Author:
Emmanuel Bourg

Field Summary
 
Fields inherited from class net.jetrix.filter.MessageFilter
config
 
Constructor Summary
AmplifierFilter()
           
 
Method Summary
 String getAuthor()
          Returns the author of this filter.
 String getDescription()
          Returns a short description of this filter.
 String getName()
          Returns the name of this filter.
 String getVersion()
          Returns the version of this filter
 void init()
          Called by the channel to indicate to a filter that the filter is being placed into service.
 void process(Message m, List<Message> out)
          Process a message and outputs messages to the specified List.
 
Methods inherited from class net.jetrix.filter.MessageFilter
destroy, getChannel, getConfig, getProperty, isShared, setChannel, setConfig, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmplifierFilter

public AmplifierFilter()
Method Detail

init

public void init()
Description copied from class: MessageFilter
Called by the channel to indicate to a filter that the filter is being placed into service.

Overrides:
init in class MessageFilter

process

public void process(Message m,
                    List<Message> out)
Description copied from class: MessageFilter
Process a message and outputs messages to the specified List.

Specified by:
process in class MessageFilter

getName

public String getName()
Description copied from class: MessageFilter
Returns the name of this filter.

Overrides:
getName in class MessageFilter

getDescription

public String getDescription()
Description copied from class: MessageFilter
Returns a short description of this filter.

Overrides:
getDescription in class MessageFilter

getVersion

public String getVersion()
Description copied from class: MessageFilter
Returns the version of this filter

Overrides:
getVersion in class MessageFilter

getAuthor

public String getAuthor()
Description copied from class: MessageFilter
Returns the author of this filter.

Overrides:
getAuthor in class MessageFilter


Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.