View Javadoc

1   /*
2    * @(#)EventListenerInterface April 4, 2003 Copyright (c) 2002-2005 Delft
3    * University of Technology Jaffalaan 5, 2628 BX Delft, the Netherlands. All
4    * rights reserved. This software is proprietary information of Delft University
5    * of Technology The code is published under the Lesser General Public License
6    */
7   package nl.tudelft.simulation.event;
8   
9   import java.rmi.RemoteException;
10  import java.util.EventListener;
11  
12  /***
13   * The EventListenerInterface creates a callback method for publishers to inform
14   * their clients.
15   * <p>
16   * (c) copyright 2002-2005 <a href="http://www.simulation.tudelft.nl">Delft
17   * University of Technology </a>, the Netherlands.
18   * <p>
19   * See for project information <a
20   * href="http://www.simulation.tudelft.nl/dsol/event">www.simulation.tudelft.nl/event
21   * </a> <br>
22   * License of use: <a href="http://www.gnu.org/copyleft/lesser.html">Lesser
23   * General Public License (LGPL) </a>, no warranty
24   * 
25   * @author <a href="http://www.peter-jacobs.com">Peter Jacobs </a>
26   * @version $Revision: 1.5 $ $Date: 2005/07/04 12:23:01 $
27   * @since 1.1
28   */
29  public interface EventListenerInterface extends EventListener
30  {
31      /***
32       * notifies the eventlistener of an event. This operation forms the callback
33       * method of the asynchronous communication prototcol expressed in the event
34       * package.
35       * 
36       * @param event the event which is sent to the listener.
37       * @throws RemoteException If a network connection failure occurs.
38       */
39      void notify(EventInterface event) throws RemoteException;
40  }