Class HistoryManager
java.lang.Object
org.opentrafficsim.core.perception.HistoryManager
- Direct Known Subclasses:
HistoryManagerDEVS
public abstract class HistoryManager extends Object
History manager with automatic garbage collection by the java garbage collector using weak references to the
Historicals.
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 18 jan. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHistoryManager.HistoricalElementHistorical view for the history manager. -
Constructor Summary
Constructors Constructor Description HistoryManager() -
Method Summary
Modifier and Type Method Description protected voidendOfSimulation()Method that clears the entire memory at simulation end.protected Set<HistoryManager.HistoricalElement>getHistoricals()Returns the historicals.voidregisterHistorical(HistoryManager.HistoricalElement historical)Registers a historical.
-
Constructor Details
-
HistoryManager
public HistoryManager()
-
-
Method Details
-
registerHistorical
Registers a historical.- Parameters:
historical- HistoricalElement; historical to register.
-
getHistoricals
Returns the historicals.- Returns:
- the historicals
-
endOfSimulation
protected final void endOfSimulation()Method that clears the entire memory at simulation end.
-