View Javadoc
1   package org.djutils.event;
2   
3   import java.io.Serializable;
4   
5   /**
6    * The TimedEventInterface defines the getTimeStamp method on top of the methods that a regular event has to implement. <br>
7    * <br>
8    * Copyright (c) 2020-2022 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See
9    * for project information <a href="https://djutils.org" target="_blank"> https://djutils.org</a>. The DJUTILS project is
10   * distributed under a three-clause BSD-style license, which can be found at
11   * <a href="https://djutils.org/docs/license.html" target="_blank"> https://djutils.org/docs/license.html</a>. <br>
12   * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a>
13   * @author <a href="https://www.tudelft.nl/pknoppers">Peter Knoppers</a>
14   * @param <T> the Comparable type that represents time
15   */
16  public interface TimedEventInterface<T extends Comparable<T> & Serializable> extends EventInterface
17  {
18      /**
19       * Returns the timeStamp of this event.
20       * @return T; the time stamp
21       */
22      T getTimeStamp();
23  
24  }