U - the unit typepublic abstract class OffsetUnit<U extends Unit<U>> extends Unit<U>
Copyright (c) 2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
OffsetUnit(String nameKey,
String abbreviationKey,
UnitSystem unitSystem)
Build a standard unit.
|
OffsetUnit(String nameKey,
String abbreviationKey,
UnitSystem unitSystem,
U referenceUnit,
double conversionFactorToReferenceUnit,
double offsetToStandardUnit)
Build an offset unit with a conversion factor and offset to another unit.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getOffsetToStandardUnit() |
getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getSICoefficientsString, getStandardUnit, getUnits, getUnitSystem, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toStringpublic OffsetUnit(String nameKey, String abbreviationKey, UnitSystem unitSystem)
nameKey - the key to the locale file for the long name of the unitabbreviationKey - the key to the locale file for the abbreviation of the unitunitSystem - the unit system, e.g. SI or Imperialpublic OffsetUnit(String nameKey, String abbreviationKey, UnitSystem unitSystem, U referenceUnit, double conversionFactorToReferenceUnit, double offsetToStandardUnit)
nameKey - the key to the locale file for the long name of the unitabbreviationKey - the key to the locale file for the abbreviation of the unitunitSystem - the unit system, e.g. SI or ImperialreferenceUnit - the unit to convert toconversionFactorToReferenceUnit - multiply a value in this unit by the factor to convert to the given reference unitoffsetToStandardUnit - the offset to add to convert to the standard (e.g., SI) unitCopyright © 2014–2015 Delft University of Technology. All rights reserved.