Class HistoryManagerDEVS
- java.lang.Object
-
- org.opentrafficsim.core.perception.HistoryManager
-
- org.opentrafficsim.core.perception.HistoryManagerDEVS
-
- All Implemented Interfaces:
Serializable,EventListener,EventListenerInterface
public class HistoryManagerDEVS extends HistoryManager implements EventListenerInterface
History manager that uses anDEVSSimulatorInterface.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
- See Also:
- Serialized Form
-
-
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)Construct a new HistoricalManagerDEVS.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcleanUpHistory()Clean up the history of all registeredHistoricals.voidnotify(EventInterface event)Timenow()StringtoString()-
Methods inherited from class org.opentrafficsim.core.perception.HistoryManager
endOfSimulation, getHistoricals, registerHistorical
-
-
-
-
Constructor Detail
-
HistoryManagerDEVS
public HistoryManagerDEVS(DEVSSimulatorInterface.TimeDoubleUnit simulator, Duration history, Duration cleanUpInterval)
Construct a new HistoricalManagerDEVS.- Parameters:
simulator- DEVSSimulatorInterface.TimeDoubleUnit; the simulatorhistory- Duration; time over which history is guaranteedcleanUpInterval- Duration; clean-up interval
-
-
Method Detail
-
now
public Time now()
-
cleanUpHistory
protected final void cleanUpHistory()
Clean up the history of all registeredHistoricals.
-
notify
public void notify(EventInterface event) throws RemoteException
- Specified by:
notifyin interfaceEventListenerInterface- Throws:
RemoteException
-
-