|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.uci.isr.yancees.filter.AbstractFilterManager
This class manages the current instances of services, special plug-ins that can be shared by all other plugins.
| Nested Class Summary | |
class |
AbstractFilterManager.ResponseCollectorFilter
This "dummy" filter only collects the event posted to it by the chain of responsibilty of filters It is used to collect the resultant event generated by the multiple filtering performed in this class. |
| Constructor Summary | |
AbstractFilterManager()
Constructor |
|
| 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)
Passes the even throught the chain of responsibility and returnes the event which is produced by the last filter of the chain. |
EventInterface[] |
filterEventList(EventInterface[] evtList)
Filters a set of events |
FilterInterface |
getFilterAt(int i)
|
FilterInterface |
getFilterByName(java.lang.String name)
|
FilterInterface[] |
getFilters()
|
int |
getNumberOfFilters()
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractFilterManager()
| Method Detail |
public int getNumberOfFilters()
public FilterInterface getFilterByName(java.lang.String name)
getFilterByName in interface FilterManagerInterfacename - is the unique name of the filter
public FilterInterface[] getFilters()
getFilters in interface FilterManagerInterfacepublic void addFilter(FilterInterface filter)
addFilter in interface FilterManagerInterfacefilter - is the filter to be inserted after all current filterspublic FilterInterface getFilterAt(int i)
getFilterAt in interface FilterManagerInterfacei - is the position of the filter to be returned
public void insertFilterAt(FilterInterface filter,
int i)
insertFilterAt in interface FilterManagerInterfacefilter - is the filter to be insertedi - is the position to insert the filterpublic void removeFilterAt(int i)
removeFilterAt in interface FilterManagerInterfacei - is the position of the filter to be removedpublic EventInterface[] filterEvent(EventInterface evt)
filterEvent in interface FilterManagerInterfaceyancees.filter.FilterManagerInterface#filterEvent(yancees.core.EventInterface)public EventInterface[] filterEventList(EventInterface[] evtList)
filterEventList in interface FilterManagerInterfaceyancees.filter.FilterManagerInterface#filterEventList(yancees.core.EventInterface[])
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||