public class EnergyUnit extends LinearUnit<EnergyUnit>
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: 2019-03-02 19:06:46 +0100 (Sat, 02 Mar 2019) $, @version $Revision: 342 $, by $Author: averbraeck $,
initial version May 15, 2014
Modifier and Type | Field and Description |
---|---|
static EnergyUnit |
BTU_ISO
British thermal unit (ISO).
|
static EnergyUnit |
BTU_IT
British thermal unit (International Table).
|
static EnergyUnit |
CALORIE
calorie.
|
static EnergyUnit |
CALORIE_IT
calorie (International Table).
|
static EnergyUnit |
ELECTRONVOLT
electronvolt.
|
static EnergyUnit |
ERG
erg (cgs).
|
static EnergyUnit |
EXAELECTRONVOLT
exa-electronvolt.
|
static EnergyUnit |
FEMTOWATT_HOUR
femtowatt-hour.
|
static EnergyUnit |
FOOT_POUND_FORCE
foot-pound force.
|
static EnergyUnit |
GIGAELECTRONVOLT
giga-electronvolt.
|
static EnergyUnit |
GIGAJOULE
gigajoule.
|
static EnergyUnit |
GIGAWATT_HOUR
gigawatt-hour.
|
static EnergyUnit |
INCH_POUND_FORCE
inch-pound force.
|
static EnergyUnit |
JOULE
Joule.
|
static EnergyUnit |
KILOCALORIE
kilocalorie.
|
static EnergyUnit |
KILOELECTRONVOLT
kilo-electronvolt.
|
static EnergyUnit |
KILOJOULE
kilojoule.
|
static EnergyUnit |
KILOWATT_HOUR
kilowatt-hour.
|
static EnergyUnit |
MEGAELECTRONVOLT
mega-electronvolt.
|
static EnergyUnit |
MEGAJOULE
megajoule.
|
static EnergyUnit |
MEGAWATT_HOUR
megawatt-hour.
|
static EnergyUnit |
MICROELECTRONVOLT
micro-electronvolt.
|
static EnergyUnit |
MICROJOULE
microjoule.
|
static EnergyUnit |
MICROWATT_HOUR
microwatt-hour.
|
static EnergyUnit |
MILLIELECTRONVOLT
milli-electronvolt.
|
static EnergyUnit |
MILLIJOULE
millijoule.
|
static EnergyUnit |
MILLIWATT_HOUR
milliwatt-hour.
|
static EnergyUnit |
NANOJOULE
nanojoule.
|
static EnergyUnit |
NANOWATT_HOUR
nanowatt-hour.
|
static EnergyUnit |
PETAELECTRONVOLT
peta-electronvolt.
|
static EnergyUnit |
PETAJOULE
petajoule.
|
static EnergyUnit |
PETAWATT_HOUR
petawatt-hour.
|
static EnergyUnit |
PICOJOULE
picojoule.
|
static EnergyUnit |
PICOWATT_HOUR
picowatt-hour.
|
static EnergyUnit |
SI
The SI unit for energy is Joule.
|
static EnergyUnit |
STHENE_METER
sthene-meter (mts).
|
static EnergyUnit |
TERAELECTRONVOLT
tera-electronvolt.
|
static EnergyUnit |
TERAJOULE
terajoule.
|
static EnergyUnit |
TERAWATT_HOUR
terawatt-hour.
|
static EnergyUnit |
WATT_HOUR
watt-hour.
|
STANDARD_UNITS
Constructor and Description |
---|
EnergyUnit(ForceUnit forceUnit,
LengthUnit lengthUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Define a user-defined EnergyUnit based on a LengthUnit and a ForceUnit, e.g.
|
EnergyUnit(MassUnit massUnit,
LengthUnit lengthUnit,
DurationUnit durationUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Define a user-defined EnergyUnit based on its constituent base units, e.g.
|
EnergyUnit(String name,
String abbreviation,
UnitSystem unitSystem,
EnergyUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined EnergyUnit with a conversion factor to another EnergyUnit.
|
Modifier and Type | Method and Description |
---|---|
DurationUnit |
getDurationUnit() |
LengthUnit |
getLengthUnit() |
MassUnit |
getMassUnit() |
String |
getSICoefficientsString() |
EnergyUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getScale, getScaleFactor, hashCode
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getDefaultLocaleAbbreviation, getDefaultLocaleName, getDefaultLocaleTextualRepresentation, getDefaultLocaleTextualRepresentations, getDefaultTextualRepresentation, getName, getSICoefficients, getTextualRepresentations, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final EnergyUnit SI
public static final EnergyUnit PICOJOULE
public static final EnergyUnit NANOJOULE
public static final EnergyUnit MICROJOULE
public static final EnergyUnit MILLIJOULE
public static final EnergyUnit JOULE
public static final EnergyUnit KILOJOULE
public static final EnergyUnit MEGAJOULE
public static final EnergyUnit GIGAJOULE
public static final EnergyUnit TERAJOULE
public static final EnergyUnit PETAJOULE
public static final EnergyUnit FOOT_POUND_FORCE
public static final EnergyUnit INCH_POUND_FORCE
public static final EnergyUnit BTU_ISO
public static final EnergyUnit BTU_IT
public static final EnergyUnit CALORIE_IT
public static final EnergyUnit CALORIE
public static final EnergyUnit KILOCALORIE
public static final EnergyUnit FEMTOWATT_HOUR
public static final EnergyUnit PICOWATT_HOUR
public static final EnergyUnit NANOWATT_HOUR
public static final EnergyUnit MICROWATT_HOUR
public static final EnergyUnit MILLIWATT_HOUR
public static final EnergyUnit WATT_HOUR
public static final EnergyUnit KILOWATT_HOUR
public static final EnergyUnit MEGAWATT_HOUR
public static final EnergyUnit GIGAWATT_HOUR
public static final EnergyUnit TERAWATT_HOUR
public static final EnergyUnit PETAWATT_HOUR
public static final EnergyUnit ELECTRONVOLT
public static final EnergyUnit MICROELECTRONVOLT
public static final EnergyUnit MILLIELECTRONVOLT
public static final EnergyUnit KILOELECTRONVOLT
public static final EnergyUnit MEGAELECTRONVOLT
public static final EnergyUnit GIGAELECTRONVOLT
public static final EnergyUnit TERAELECTRONVOLT
public static final EnergyUnit PETAELECTRONVOLT
public static final EnergyUnit EXAELECTRONVOLT
public static final EnergyUnit STHENE_METER
public static final EnergyUnit ERG
public EnergyUnit(MassUnit massUnit, LengthUnit lengthUnit, DurationUnit durationUnit, String name, String abbreviation, UnitSystem unitSystem)
massUnit
- MassUnit; the unit of mass for the energy unit, e.g., kilogramlengthUnit
- LengthUnit; the unit of length for the energy unit, e.g., meterdurationUnit
- DurationUnit; the unit of time for the energy unit, e.g., secondname
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or Imperialpublic EnergyUnit(ForceUnit forceUnit, LengthUnit lengthUnit, String name, String abbreviation, UnitSystem unitSystem)
forceUnit
- ForceUnit; the unit of force for the energy unit, e.g., NewtonlengthUnit
- LengthUnit; the unit of length for the energy unit, e.g., Metername
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or Imperialpublic EnergyUnit(String name, String abbreviation, UnitSystem unitSystem, EnergyUnit referenceUnit, double scaleFactorToReferenceUnit)
name
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or ImperialreferenceUnit
- EnergyUnit; the unit to convert toscaleFactorToReferenceUnit
- double; multiply a value in this unit by the factor to convert to the given reference
unitpublic final MassUnit getMassUnit()
public final LengthUnit getLengthUnit()
public final DurationUnit getDurationUnit()
public final EnergyUnit getStandardUnit()
getStandardUnit
in class Unit<EnergyUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<EnergyUnit>
Copyright © 2015–2019 Delft University of Technology. All rights reserved.