View Javadoc

1   /*
2    * @(#) EventInterface.java Dec 10, 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.io.Serializable;
10  
11  /***
12   * The EventInterface defines the interface for all events in the event project.
13   * <p>
14   * (c) copyright 2002-2005 <a href="http://www.simulation.tudelft.nl">Delft
15   * University of Technology </a>, the Netherlands.
16   * <p>
17   * See for project information <a
18   * href="http://www.simulation.tudelft.nl/dsol/event">www.simulation.tudelft.nl/event
19   * </a> <br>
20   * License of use: <a href="http://www.gnu.org/copyleft/lesser.html">Lesser
21   * General Public License (LGPL) </a>, no warranty
22   * 
23   * @author <a href="http://www.peter-jacobs.com">Peter Jacobs </a>
24   * @version $Revision: 1.5 $ $Date: 2005/07/04 12:23:01 $
25   * @since 1.5
26   */
27  
28  public interface EventInterface extends Serializable
29  {
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  }