Class AbstractHistoricalQueue<E,​Q extends Queue<E>>

Type Parameters:
E - element type
Q - queue type
All Implemented Interfaces:
Iterable<E>, Collection<E>, Queue<E>, HistoricalCollection<E>, HistoricalQueue<E>, HistoryManager.HistoricalElement
Direct Known Subclasses:
HistoricalPriorityQueue

public abstract class AbstractHistoricalQueue<E,​Q extends Queue<E>>
extends AbstractHistoricalCollection<E,​Q>
implements HistoricalQueue<E>
Queue-valued historical state. The current queue is always maintained, and past states of the queue 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.

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 4 feb. 2018
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel