E
- element typeC
- collection typepublic static class AbstractHistoricalCollection.AddEvent<E,C extends Collection<E>> extends AbstractHistoricalCollection.EventCollection<E,C>
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.
Constructor and Description |
---|
AddEvent(double time,
E value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
restore(C collection)
Restores the collection to the state of before the event.
|
String |
toString() |
getTime, getValue
public AddEvent(double time, E value)
time
- double; time of eventvalue
- E; value of eventpublic void restore(C collection)
restore
in class AbstractHistoricalCollection.EventCollection<E,C extends Collection<E>>
collection
- C; collection to restorepublic String toString()
toString
in class AbstractHistoricalCollection.EventCollection<E,C extends Collection<E>>
Copyright © 2014–2019 Delft University of Technology. All rights reserved.