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

Package class diagram package WaitForEvent.IEventFilter
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.

Author:
Jimmy

Method Summary
 boolean accept(T event)
          Whether the event may be accepted.
 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).
 cz.cuni.amis.utils.token.Token getComponentId()
          If it does not return null - then only events from the component of this id may be accepted.
 Class<T> getEventClass()
          Must return class of the event that the object may accept.
 

Method Detail

getEventClass

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

Must not return null!

Returns:

getComponentClass

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

cz.cuni.amis.utils.token.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:


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.