Interface Historical<T>
-
- Type Parameters:
T- value type
- All Known Implementing Classes:
HistoricalValue,NullHistorical
public interface Historical<T>Interface for single valued 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 1 feb. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tget()Get value at current simulation time.Tget(Time time)Get value at given time.voidset(T value)Set value at the current simulation time.
-
-
-
Method Detail
-
set
void set(T value)
Set value at the current simulation time. If a value is already given at this time, it is overwritten. Values should be set in chronological order.- Parameters:
value- T; value
-
get
T get()
Get value at current simulation time.- Returns:
- T; value at current simulation time
-
-