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

All Superinterfaces:
java.util.EventListener, 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.


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