Class HistoricalTreeSet<E>

Type Parameters:
E - element type
All Implemented Interfaces:
Iterable<E>, Collection<E>, NavigableSet<E>, Set<E>, SortedSet<E>, HistoricalCollection<E>, HistoricalNavigableSet<E>, HistoricalSet<E>, HistoricalSortedSet<E>, HistoryManager.HistoricalElement

public class HistoricalTreeSet<E>
extends AbstractHistoricalNavigableSet<E,​TreeSet<E>>
TreeSet-valued historical state. The current tree set is always maintained, and past states of the tree set are obtained by applying the events between now and the requested time in reverse.

The Iterator returned by this class does not support the remove() method. Any returned subset is unmodifiable.

Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Version:
$Revision$, $LastChangedDate$, by $Author$, initial version 3 feb. 2018
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

    • HistoricalTreeSet

      public HistoricalTreeSet​(HistoryManager historyManager)
      Constructor.
      Parameters:
      historyManager - HistoryManager; history manager
    • HistoricalTreeSet

      public HistoricalTreeSet​(HistoryManager historyManager, Collection<? extends E> c)
      Constructor.
      Parameters:
      historyManager - HistoryManager; history manager
      c - Collection<? extends E>; initial collection
  • Method Details