Class TimedEvent<T extends Comparable<T> & Serializable>

java.lang.Object
org.djutils.event.Event
org.djutils.event.TimedEvent<T>
Type Parameters:
T - the Comparable type that represents time
All Implemented Interfaces:
Serializable, Comparable<TimedEvent<T>>, EventInterface

public class TimedEvent<T extends Comparable<T> & Serializable>
extends Event
implements Comparable<TimedEvent<T>>
The TimedEvent is the reference implementation for a timed event. Because events are often sent over the network, the interface demands that the event, its sourceId, content and timestamp are serializable. It is the repsonsibility of the programmer, though, that the fields of the sourceId, content and timestamp are serializable as well.

Copyright (c) 2002-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html. This class was originally part of the DSOL project, see https://simulation.tudelft.nl/dsol/manual.

Author:
Peter Jacobs , Alexander Verbraeck
See Also:
Serialized Form