Class TimedEvent<T extends Comparable<T>>

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

public class TimedEvent<T extends Comparable<T>> extends Event implements Comparable<TimedEvent<T>>
The TimedEvent is the reference implementation for a timed event.

Copyright (c) 2002-2025 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
  • Constructor Details

    • TimedEvent

      public TimedEvent(EventType type, Object content, T timeStamp)
      Construct a new timed event, where compliance with the metadata is verified.
      Parameters:
      type - the eventType of the event.
      content - the content of the event.
      timeStamp - the timeStamp.
    • TimedEvent

      public TimedEvent(EventType type, Object content, T timeStamp, boolean verifyMetaData)
      Construct a new timed event, with a choice to verify compliance with metadata.
      Parameters:
      type - the eventType of the event.
      content - the content of the event.
      timeStamp - the timeStamp.
      verifyMetaData - whether to verify the compliance with metadata or not
  • Method Details