1
2
3
4
5
6
7
8
9
10 package nl.tudelft.simulation.event;
11
12 import java.rmi.RemoteException;
13 import java.util.EventListener;
14
15 /***
16 * The EventListenerInterface creates a callback method for publishers to inform
17 * their clients.
18 * <p>
19 * (c) copyright 2003 <a href="http://www.simulation.tudelft.nl">Delft
20 * University of Technology </a>, the Netherlands. <br>
21 * See for project information <a
22 * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
23 * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
24 * License (GPL) </a>, no warranty <br>
25 *
26 * @author <a href="http://www.simulation.tudelft.nl/people/jacobs.html">Peter
27 * Jacobs </a>
28 * @version 1.9 2004-03-18
29 * @since 1.1
30 */
31 public interface EventListenerInterface extends EventListener
32 {
33 /***
34 * notifies the eventlistener of an event. This operation forms the callback
35 * method of the asynchronous communication prototcol expressed in the event
36 * package.
37 *
38 * @param event the event which is sent to the listener.
39 * @throws RemoteException If a network connection failure occurs.
40 */
41 void notify(EventInterface event) throws RemoteException;
42 }