View Javadoc

1   /*
2    * @(#) EventInterface.java Dec 10, 2003
3    * 
4    * Copyright (c) 2003-2004 Delft University of Technology Jaffalaan 5, 2628 BX
5    * Delft, the Netherlands. All rights reserved.
6    * 
7    * This software is proprietary information of Delft University of Technology
8    * The code is published under the General Public License
9    */
10  package nl.tudelft.simulation.event;
11  
12  import java.io.Serializable;
13  
14  /***
15   * The EventInterface defines the interface for all events in the event project.
16   * <p>
17   * (c) copyright 2003 <a href="http://www.simulation.tudelft.nl">Delft
18   * University of Technology </a>, the Netherlands. <br>
19   * See for project information <a
20   * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
21   * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
22   * License (GPL) </a>, no warranty <br>
23   * 
24   * @author <a href="http://www.simulation.tudelft.nl/people/jacobs.html">Peter
25   *         Jacobs </a>
26   * @version 1.9 2004-03-18
27   * @since 1.0
28   */
29  public interface EventInterface extends Serializable
30  {
31  	/***
32  	 * returns the source of the event. The source is the sender of the event
33  	 * 
34  	 * @return the source of the event
35  	 */
36  	Object getSource();
37  
38  	/***
39  	 * returns the content of this event.
40  	 * 
41  	 * @return the content of this event
42  	 */
43  	Object getContent();
44  
45  	/***
46  	 * returns the type of the event.
47  	 * 
48  	 * @return the eventType of the event
49  	 */
50  	EventType getType();
51  }