T - type of valuepublic abstract class ExtendedDataType<T> extends Object
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
ExtendedDataType(String id)
Constructor setting the id.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getId() |
abstract T |
getValue(GtuDataInterface gtu) |
int |
hashCode() |
<U extends org.djunits.unit.Unit<U>> |
interpolate(T value0,
T value1,
double f)
Interpolate value between two measured values.
|
public ExtendedDataType(String id)
id - idpublic final String getId()
public abstract T getValue(GtuDataInterface gtu)
gtu - gtu to get the data value ofpublic <U extends org.djunits.unit.Unit<U>> T interpolate(T value0, T value1, double f)
DoubleScalar, Double and Float, or the closest value in time otherwise.U - unit of value, if values are DoubleScalarvalue0 - first valuevalue1 - second valuef - interpolation fractionCopyright © 2014–2016 Delft University of Technology. All rights reserved.