|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.filter.AbstractFilter
public abstract class AbstractFilter
Implements an abstract filter with the basic functionality to the methods of the FilterInterface
Constructor Summary | |
---|---|
AbstractFilter()
constructor |
Method Summary | |
---|---|
void |
addSuccessor(FilterInterface filter)
Adds a successor to the list of filters of this filter |
protected abstract EventInterface[] |
doFilterEvent(EventInterface evt)
This method should be implemented by the subclasses of the AbstractFilter in order to process the messages being passed through this filter. |
protected abstract EventInterface[] |
doFilterEventList(EventInterface[] evtList)
This method should be implemented by the subclasses of the AbstractFilter in order to process the messages being passed through this filter. |
java.lang.String |
getName()
|
FilterInterface |
getSuccessor()
list all the successors of this filters if any |
void |
handleMessage(EventInterface evt)
Handles the incomming message and passes it forward to all the successors of this filter |
void |
handleMessage(EventInterface[] evtList)
Handles the incomming message and passes it forward to all the successors of this filter |
void |
removeSuccessor()
Remove a filter from the list of successors from this filter |
void |
setName(java.lang.String name)
sets the name of this filter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractFilter()
Method Detail |
---|
public void handleMessage(EventInterface evt)
handleMessage
in interface FilterInterface
evt
- is the event to processyancees.filter.FilterInterface#handleMessage(yancees.core.MessageInterface)
public void handleMessage(EventInterface[] evtList)
handleMessage
in interface FilterInterface
evtList
- is the list of events to processyancees.filter.FilterInterface#handleMessage(yancees.core.MessageInterface)
protected abstract EventInterface[] doFilterEvent(EventInterface evt)
evt
- is the event to be filtered
protected abstract EventInterface[] doFilterEventList(EventInterface[] evtList)
evtList
- is a list of events to be filtered as a "burst"
public void addSuccessor(FilterInterface filter)
addSuccessor
in interface FilterInterface
filter
- is the next filter to receive the messageyancees.filter.FilterInterface#addSucessor(yancees.filter.FilterInterface)
public void removeSuccessor()
removeSuccessor
in interface FilterInterface
yancees.filter.FilterInterface#removeSucessor(yancees.filter.FilterInterface)
public FilterInterface getSuccessor()
getSuccessor
in interface FilterInterface
yancees.filter.FilterInterface#getSucessorsList()
public java.lang.String getName()
getName
in interface FilterInterface
yancees.filter.FilterInterface#getName()
public void setName(java.lang.String name)
FilterInterface
setName
in interface FilterInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |