G - gtu data typepublic abstract class ExtendedDataTypeSpeed<G extends GtuDataInterface> extends ExtendedDataTypeFloat<SpeedUnit,FloatSpeed,FloatSpeedVector,G>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
ExtendedDataTypeSpeed(String id)
Constructor setting the id.
|
| Modifier and Type | Method and Description |
|---|---|
protected FloatSpeedVector |
convert(float[] storage)
Convert float array to typed array.
|
protected FloatSpeed |
convertValue(float value)
Convert float to typed value.
|
convert, formatValue, getOutputValue, getStorageValue, initializeStorage, setValueequals, getId, getValue, hashCode, interpolatepublic ExtendedDataTypeSpeed(String id)
id - idprotected final FloatSpeed convertValue(float value)
convertValue in class ExtendedDataTypeFloat<SpeedUnit,FloatSpeed,FloatSpeedVector,G extends GtuDataInterface>value - float valueprotected final FloatSpeedVector convert(float[] storage) throws ValueException
convert in class ExtendedDataTypeFloat<SpeedUnit,FloatSpeed,FloatSpeedVector,G extends GtuDataInterface>storage - float array storageValueException - when float array cannot be convertedCopyright © 2014–2018 Delft University of Technology. All rights reserved.