Class AbstractHistoricalCollection.EventCollection<E,C extends Collection<E>>
- java.lang.Object
-
- org.opentrafficsim.core.perception.AbstractHistorical.EventValue<E>
-
- org.opentrafficsim.core.perception.collections.AbstractHistoricalCollection.EventCollection<E,C>
-
- Type Parameters:
E- element typeC- collection type
- Direct Known Subclasses:
AbstractHistoricalCollection.AddEvent,AbstractHistoricalCollection.RemoveEvent,AbstractHistoricalList.EventList
- Enclosing class:
- AbstractHistoricalCollection<E,C extends Collection<E>>
public abstract static class AbstractHistoricalCollection.EventCollection<E,C extends Collection<E>> extends AbstractHistorical.EventValue<E>
Abstract super class for events that add or remove a value from the collection.
-
-
Constructor Summary
Constructors Constructor Description EventCollection(double time, E value)Construct a new EventCollection.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidrestore(C collection)Restores the collection to the state of before the event.StringtoString()-
Methods inherited from class org.opentrafficsim.core.perception.AbstractHistorical.EventValue
getTime, getValue
-
-
-
-
Constructor Detail
-
EventCollection
public EventCollection(double time, E value)Construct a new EventCollection.- Parameters:
time- double; time of eventvalue- E; value of event
-
-
Method Detail
-
restore
public abstract void restore(C collection)
Restores the collection to the state of before the event.- Parameters:
collection- C; collection to restore
-
toString
public String toString()
- Overrides:
toStringin classAbstractHistorical.EventValue<E>
-
-