public class TemperatureUnit extends OffsetUnit<TemperatureUnit>
Copyright (c) 2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-10-04 20:48:33 +0200 (Sun, 04 Oct 2015) $, @version $Revision: 87 $, by $Author: averbraeck $, initial
version Jun 5, 2014
| 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 name,
String abbreviation,
UnitSystem unitSystem,
double conversionFactorToStandardUnit,
double offsetToKelvin)
Build a user-defined TemperatureUnit with a conversion factor and offset to Kelvin.
|
TemperatureUnit(String name,
String abbreviation,
UnitSystem unitSystem,
TemperatureUnit referenceUnit,
double conversionFactorToReferenceUnit,
double offsetToKelvin)
Build a user-defined TemperatureUnit with a conversion factor and offset to another TemperatureUnit.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSICoefficientsString() |
TemperatureUnit |
getStandardUnit() |
getOffsetToStandardUnitequals, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, hashCode, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toStringpublic 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 name, String abbreviation, UnitSystem unitSystem, double conversionFactorToStandardUnit, double offsetToKelvin)
name - the long name of the unitabbreviation - 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 name, String abbreviation, UnitSystem unitSystem, TemperatureUnit referenceUnit, double conversionFactorToReferenceUnit, double offsetToKelvin)
name - the long name of the unitabbreviation - 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 © 2015 Delft University of Technology. All rights reserved.