cz.cuni.amis.pogamut.base.component.bus.event
Interface WaitForEvent.IEventFilter<T>

Type Parameters:
T -
All Known Implementing Classes:
EventFilter
Enclosing class:
WaitForEvent

public static interface WaitForEvent.IEventFilter<T>

Note that only events that implements IComponentEvent may be really substitued as T.


Method Summary
 boolean accept(T event)
          Whether the event may be accepted.
 java.lang.Class getComponentClass()
          If it does not return null - then only events that happened on this class of component may be accepted (this class or descendants).
 Token getComponentId()
          If it does not return null - then only events from the component of this id may be accepted.
 java.lang.Class<T> getEventClass()
          Must return class of the event that the object may accept.
 

Method Detail

getEventClass

java.lang.Class<T> getEventClass()
Must return class of the event that the object may accept.

Must not return null!

Returns:

getComponentClass

java.lang.Class getComponentClass()
If it does not return null - then only events that happened on this class of component may be accepted (this class or descendants).

Returns:

getComponentId

Token getComponentId()
If it does not return null - then only events from the component of this id may be accepted.

Returns:

accept

boolean accept(T event)
Whether the event may be accepted.

Parameters:
event -
Returns: