Class AbstractHistorical.EventValue<T>
- java.lang.Object
-
- org.opentrafficsim.core.perception.AbstractHistorical.EventValue<T>
-
- Type Parameters:
T- value type
- All Implemented Interfaces:
AbstractHistorical.Event
- Direct Known Subclasses:
AbstractHistoricalCollection.EventCollection,AbstractHistoricalMap.EventMap,HistoricalParameters.ParameterEvent
- Enclosing class:
- AbstractHistorical<T,E extends AbstractHistorical.Event>
public static class AbstractHistorical.EventValue<T> extends Object implements AbstractHistorical.Event
Standard event which stores a time and value.Copyright (c) 2013-2022 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 jan. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description EventValue(double time, T value)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetTime()Returns the time of this event.TgetValue()Returns the value of this event.StringtoString()
-
-
-
Constructor Detail
-
EventValue
public EventValue(double time, T value)Constructor.- Parameters:
time- double; time of eventvalue- T; value of event
-
-
Method Detail
-
getTime
public double getTime()
Returns the time of this event.- Specified by:
getTimein interfaceAbstractHistorical.Event- Returns:
- double; time of this event
-
getValue
public T getValue()
Returns the value of this event.- Returns:
- T; value of this event
-
-