public class AbsoluteTemperatureUnit extends AbsoluteLinearUnit<AbsoluteTemperatureUnit,TemperatureUnit>
Copyright (c) 2015-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2017-01-30 14:23:11 +0100 (Mon, 30 Jan 2017) $, @version $Revision: 234 $, by $Author: averbraeck $,
initial version Jun 5, 2014
| Modifier and Type | Field and Description |
|---|---|
static AbsoluteTemperatureUnit |
BASE
The BASE unit for temperature is Kelvin.
|
static AbsoluteTemperatureUnit |
DEGREE_CELSIUS
Degree Celsius.
|
static AbsoluteTemperatureUnit |
DEGREE_FAHRENHEIT
Degree Fahrenheit.
|
static AbsoluteTemperatureUnit |
DEGREE_RANKINE
Degree Rankine.
|
static AbsoluteTemperatureUnit |
DEGREE_REAUMUR
Degree Reaumur.
|
static AbsoluteTemperatureUnit |
KELVIN
Kelvin.
|
STANDARD_UNITS| Constructor and Description |
|---|
AbsoluteTemperatureUnit(String name,
String abbreviation,
UnitSystem unitSystem,
double conversionFactorToStandardUnit,
double offsetToKelvin,
TemperatureUnit relativeUnit)
Build a user-defined AbsoluteTemperatureUnit with a conversion factor and offset to Kelvin.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSICoefficientsString() |
AbsoluteTemperatureUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getOffset, getRelativeUnit, getScale, hashCodegetScaleFactorgenerateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getDefaultLocaleAbbreviation, getDefaultLocaleName, getDefaultLocaleTextualRepresentation, getDefaultLocaleTextualRepresentations, getDefaultTextualRepresentation, getName, getSICoefficients, getTextualRepresentations, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetScaleFactorpublic static final AbsoluteTemperatureUnit BASE
public static final AbsoluteTemperatureUnit KELVIN
public static final AbsoluteTemperatureUnit DEGREE_CELSIUS
public static final AbsoluteTemperatureUnit DEGREE_FAHRENHEIT
public static final AbsoluteTemperatureUnit DEGREE_RANKINE
public static final AbsoluteTemperatureUnit DEGREE_REAUMUR
public AbsoluteTemperatureUnit(String name, String abbreviation, UnitSystem unitSystem, double conversionFactorToStandardUnit, double offsetToKelvin, TemperatureUnit relativeUnit)
name - String; the long name of the unitabbreviation - String; the abbreviation of the unitunitSystem - UnitSystem; the unit system, e.g. SI or ImperialconversionFactorToStandardUnit - double; multiply by this number to convert to the standard unitoffsetToKelvin - double; the offsetToKelvin to add to convert to the standard (e.g., SI) unitrelativeUnit - TemperatureUnit; the corresponding relative unit belonging to this absolute unitpublic final AbsoluteTemperatureUnit getStandardUnit()
getStandardUnit in class Unit<AbsoluteTemperatureUnit>public final String getSICoefficientsString()
getSICoefficientsString in class Unit<AbsoluteTemperatureUnit>Copyright © 2015–2019 Delft University of Technology. All rights reserved.