Class AbstractHistoricalList.AddEvent<E,L extends java.util.List<E>>
- java.lang.Object
-
- org.opentrafficsim.core.perception.AbstractHistorical.EventValue<E>
-
- org.opentrafficsim.core.perception.collections.AbstractHistoricalCollection.EventCollection<E,L>
-
- org.opentrafficsim.core.perception.collections.AbstractHistoricalList.EventList<E,L>
-
- org.opentrafficsim.core.perception.collections.AbstractHistoricalList.AddEvent<E,L>
-
- Type Parameters:
E- element typeL- list type
- Enclosing class:
- AbstractHistoricalList<E,L extends java.util.List<E>>
public static class AbstractHistoricalList.AddEvent<E,L extends java.util.List<E>> extends AbstractHistoricalList.EventList<E,L>
Class for events that add a value to the list.Copyright (c) 2013-2020 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 1 jan. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrestore(L list)Restores the collection to the state of before the event.java.lang.StringtoString()-
Methods inherited from class org.opentrafficsim.core.perception.AbstractHistorical.EventValue
getTime, getValue
-
-
-
-
Constructor Detail
-
AddEvent
public AddEvent(double time, E value, int index)Constructor.- Parameters:
time- double; time of eventvalue- E; value of eventindex- int; index
-
-
Method Detail
-
restore
public void restore(L list)
Restores the collection to the state of before the event.- Specified by:
restorein classAbstractHistoricalCollection.EventCollection<E,L extends java.util.List<E>>- Parameters:
list- C; collection to restore
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractHistoricalCollection.EventCollection<E,L extends java.util.List<E>>
-
-