public class TemperatureUnit extends OffsetUnit<TemperatureUnit>
Copyright (c) 2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and Description |
---|---|
static TemperatureUnit |
DEGREE_CELSIUS
Degree Celsius.
|
static TemperatureUnit |
DEGREE_FAHRENHEIT
Degree Fahrenheit.
|
static TemperatureUnit |
DEGREE_RANKINE
Degree Rankine.
|
static TemperatureUnit |
DEGREE_REAUMUR
Degree Reaumur.
|
static TemperatureUnit |
KELVIN
Kelvin.
|
static TemperatureUnit |
SI
The SI unit for temperature is Kelvin.
|
Constructor and Description |
---|
TemperatureUnit(String nameKey,
String abbreviationKey,
UnitSystem unitSystem,
double conversionFactorToStandardUnit,
double offsetToKelvin) |
TemperatureUnit(String nameKey,
String abbreviationKey,
UnitSystem unitSystem,
TemperatureUnit referenceUnit,
double conversionFactorToReferenceUnit,
double offsetToKelvin) |
Modifier and Type | Method and Description |
---|---|
String |
getSICoefficientsString() |
TemperatureUnit |
getStandardUnit() |
getOffsetToStandardUnit
getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final TemperatureUnit SI
public static final TemperatureUnit KELVIN
public static final TemperatureUnit DEGREE_CELSIUS
public static final TemperatureUnit DEGREE_FAHRENHEIT
public static final TemperatureUnit DEGREE_RANKINE
public static final TemperatureUnit DEGREE_REAUMUR
public TemperatureUnit(String nameKey, String abbreviationKey, UnitSystem unitSystem, double conversionFactorToStandardUnit, double offsetToKelvin)
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 ImperialconversionFactorToStandardUnit
- multiply by this number to convert to the standard unitoffsetToKelvin
- the offsetToKelvin to add to convert to the standard (e.g., SI) unitpublic TemperatureUnit(String nameKey, String abbreviationKey, UnitSystem unitSystem, TemperatureUnit referenceUnit, double conversionFactorToReferenceUnit, double offsetToKelvin)
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 unitoffsetToKelvin
- the offsetToKelvin to add to convert to the standard (e.g., SI) unitpublic final TemperatureUnit getStandardUnit()
getStandardUnit
in class Unit<TemperatureUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<TemperatureUnit>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.