Class AbstractHistoricalMap.EventMap<K,V,M extends Map<K,V>>
java.lang.Object
org.opentrafficsim.core.perception.AbstractHistorical.EventValue<K>
org.opentrafficsim.core.perception.collections.AbstractHistoricalMap.EventMap<K,V,M>
- Type Parameters:
K- key typeV- value typeM- map type
public static class AbstractHistoricalMap.EventMap<K,V,M extends Map<K,V>> extends AbstractHistorical.EventValue<K>
Abstract super class for events that add or remove a value from the map.
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 1 jan. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
-
Method Summary
Methods inherited from class org.opentrafficsim.core.perception.AbstractHistorical.EventValue
getTime, getValue
-
Constructor Details
-
EventMap
Constructor.- Parameters:
time- double; time of eventkey- K; key of eventcontained- boolean; whether the map contained the key prior to the eventpreviousValue- V; previous value in the map
-
-
Method Details
-
restore
Restores the map to the state of before the event.- Parameters:
map- M; map to restore
-
toString
- Overrides:
toStringin classAbstractHistorical.EventValue<K>
-