Class RedBlackTree<T extends Number & Comparable<T>>

java.lang.Object
nl.tudelft.simulation.dsol.eventlists.RedBlackTree<T>
Type Parameters:
T - The time type, e.g., Double, Long, Duration
All Implemented Interfaces:
Serializable, Iterable<SimEventInterface<T>>, EventListInterface<T>
Direct Known Subclasses:
TableModelEventList

public class RedBlackTree<T extends Number & Comparable<T>> extends Object implements EventListInterface<T>
A RedBlackTree implementation of the eventlistInterface. This implementation is based on Java's TreeSet. This implementation embeds the data structure in the event list instead of extending it (extension has the chance that future implementations can break the EventList, and that the user can use functions that do not belong to an EventList).

Copyright (c) 2002-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.

Since:
1.5
Author:
Alexander Verbraec
See Also:
  • Constructor Details

    • RedBlackTree

      public RedBlackTree()
      Constructs a new RedBlackTree.
  • Method Details