Class HistoryManagerDEVS
- java.lang.Object
-
- org.opentrafficsim.core.perception.HistoryManager
-
- org.opentrafficsim.core.perception.HistoryManagerDEVS
-
- All Implemented Interfaces:
java.io.Serializable,java.util.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)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcleanUpHistory()Cleans up the history of all registeredHistoricals.voidnotify(EventInterface event)Timenow()java.lang.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)
Constructor.- Parameters:
simulator- DEVSSimulatorInterface.TimeDoubleUnit; simulatorhistory- Duration; time over which history is guaranteedcleanUpInterval- Duration; clean-up interval
-
-
Method Detail
-
now
public Time now()
-
cleanUpHistory
protected final void cleanUpHistory()
Cleans up the history of all registeredHistoricals.
-
notify
public void notify(EventInterface event) throws java.rmi.RemoteException
- Specified by:
notifyin interfaceEventListenerInterface- Throws:
java.rmi.RemoteException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-