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 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
- 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)Constructor. -
Method Summary
Modifier and Type Method Description protected voidcleanUpHistory()Cleans up the history of all registeredHistoricals.voidnotify(EventInterface event)Timenow()StringtoString()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 interfaceEventListenerInterface- Throws:
RemoteException
-
toString
-