Class HistoryManagerDEVS
java.lang.Object
org.opentrafficsim.core.perception.HistoryManager
org.opentrafficsim.core.perception.HistoryManagerDEVS
- All Implemented Interfaces:
EventListener,nl.tudelft.simulation.event.EventListenerInterface
public class HistoryManagerDEVS extends HistoryManager implements nl.tudelft.simulation.event.EventListenerInterface
History manager that uses an
DEVSSimulatorInterface.TimeDoubleUnit.
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 5 jan. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opentrafficsim.core.perception.HistoryManager
HistoryManager.HistoricalElement -
Constructor Summary
Constructors Constructor Description HistoryManagerDEVS(DEVSSimulatorInterface.TimeDoubleUnit simulator, Duration history, Duration cleanUpInterval)Constructor. -
Method Summary
Methods inherited from class org.opentrafficsim.core.perception.HistoryManager
endOfSimulation, getHistoricals, registerHistorical
-
Constructor Details
-
HistoryManagerDEVS
public HistoryManagerDEVS(DEVSSimulatorInterface.TimeDoubleUnit simulator, Duration history, Duration cleanUpInterval)Constructor.- Parameters:
simulator- DEVSSimulatorInterface.TimeDoubleUnit; simulatorhistory- Duration; time over which history is guaranteedcleanUpInterval- Duration; clean-up interval
-
-
Method Details
-
now
-
cleanUpHistory
protected final void cleanUpHistory()Cleans up the history of all registeredHistoricals. -
notify
- Specified by:
notifyin interfacenl.tudelft.simulation.event.EventListenerInterface- Throws:
RemoteException
-
toString
-