edu.uci.isr.yancees.server.filter
Interface FilterManagerInterface

All Known Implementing Classes:
AbstractFilterManager

public interface FilterManagerInterface

Author:
rsilvafi To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Method Summary
 void addFilter(FilterInterface filter)
          Add a filter to the end of a list and register it under a name
 EventInterface filterEvent(EventInterface evt)
          Handles the event passing it through the chain of responsibility formed by the filters managed by this object.
 EventInterface[] filterEventList(EventInterface[] evt)
          Handles the event list passing them through the chain of responsibility formed by the filters managed by this object.
 FilterInterface getFilterAt(int i)
           
 FilterInterface getFilterByName(java.lang.String name)
           
 FilterInterface[] getFilters()
           
 void insertFilterAt(FilterInterface filter, int i)
          Insters a filter in the provided position in the filters stream
 void removeFilterAt(int i)
          Remove the element at provided position from filters streams
 

Method Detail

getFilterByName

public FilterInterface getFilterByName(java.lang.String name)
Parameters:
name - is the unique name of the filter
Returns:
the filter registered under the unique name

getFilters

public FilterInterface[] getFilters()
Returns:
the list of all the filters, in the order they are installed

addFilter

public void addFilter(FilterInterface filter)
Add a filter to the end of a list and register it under a name

Parameters:
filter - is the filter to be inserted after all current filters

getFilterAt

public FilterInterface getFilterAt(int i)
Parameters:
i - is the position of the filter to be returned
Returns:
the filter at the provided position

insertFilterAt

public void insertFilterAt(FilterInterface filter,
                           int i)
Insters a filter in the provided position in the filters stream

Parameters:
filter - is the filter to be inserted
i - is the position to insert the filter

removeFilterAt

public void removeFilterAt(int i)
Remove the element at provided position from filters streams

Parameters:
i - is the position of the filter to be removed

filterEvent

public EventInterface filterEvent(EventInterface evt)
Handles the event passing it through the chain of responsibility formed by the filters managed by this object.

Returns:
the event generated throught the filtering process

filterEventList

public EventInterface[] filterEventList(EventInterface[] evt)
Handles the event list passing them through the chain of responsibility formed by the filters managed by this object.

Returns:
the event generated throught the filtering process