cz.cuni.amis.pogamut.base.communication.worldview.object
Interface IWorldObjectListener<OBJECT extends IWorldObject>

Package class diagram package IWorldObjectListener
All Superinterfaces:
EventListener, cz.cuni.amis.utils.listener.IListener<IWorldObjectEvent<OBJECT>>, IWorldEventListener<IWorldObjectEvent<OBJECT>>, IWorldObjectEventListener<OBJECT,IWorldObjectEvent<OBJECT>>
All Known Implementing Classes:
Vision

public interface IWorldObjectListener<OBJECT extends IWorldObject>
extends IWorldObjectEventListener<OBJECT,IWorldObjectEvent<OBJECT>>

Listens on object events.

Don't be afraid of class's parameters :-) ... it allows you to specify type of objects you want to listen to and type of events you want to accept.

If you want to listen to more then one type of events / objects then specify these parameters as common ancestor of events / objects you want to accept inside the listener's notify() method.

This approach allows you to work with specific types of object / events directly in the notify() method sparing you of casting these event to the correct class.

Author:
Jimmy

Nested Class Summary
 
Nested classes/interfaces inherited from interface cz.cuni.amis.utils.listener.IListener
cz.cuni.amis.utils.listener.IListener.Notifier<LISTENER extends cz.cuni.amis.utils.listener.IListener>
 
Method Summary
 
Methods inherited from interface cz.cuni.amis.utils.listener.IListener
notify
 



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