public class EnergyUnit extends Unit<EnergyUnit>
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 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_IT
calorie (International Table).
|
static EnergyUnit |
ELECTRONVOLT
electronvolt.
|
static EnergyUnit |
ERG
erg (cgs).
|
static EnergyUnit |
EXA_ELECTRONVOLT
exa-electronvolt.
|
static EnergyUnit |
FOOT_POUND_FORCE
foot-pound force.
|
static EnergyUnit |
GIGA_ELECTRONVOLT
giga-electronvolt.
|
static EnergyUnit |
GIGAWATT_HOUR
gigawatt-hour.
|
static EnergyUnit |
INCH_POUND_FORCE
inch-pound force.
|
static EnergyUnit |
JOULE
Joule.
|
static EnergyUnit |
KILO_ELECTRONVOLT
kilo-electronvolt.
|
static EnergyUnit |
KILOCALORIE
kilocalorie.
|
static EnergyUnit |
KILOJOULE
kilojoule.
|
static EnergyUnit |
KILOWATT_HOUR
kilowatt-hour.
|
static EnergyUnit |
MEGA_ELECTRONVOLT
mega-electronvolt.
|
static EnergyUnit |
MEGAJOULE
megajoule.
|
static EnergyUnit |
MEGAWATT_HOUR
megawatt-hour.
|
static EnergyUnit |
MICROWATT_HOUR
microwatt-hour.
|
static EnergyUnit |
MILLI_ELECTRONVOLT
milli-electronvolt.
|
static EnergyUnit |
MILLIWATT_HOUR
milliwatt-hour.
|
static EnergyUnit |
PETA_ELECTRONVOLT
peta-electronvolt.
|
static EnergyUnit |
SI
The SI unit for energy is Joule.
|
static EnergyUnit |
STHENE_METER
sthene-meter (mts).
|
static EnergyUnit |
TERA_ELECTRONVOLT
tera-electronvolt.
|
static EnergyUnit |
TERAWATT_HOUR
terawatt-hour.
|
static EnergyUnit |
WATT_HOUR
watt-hour.
|
| 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,
TimeUnit timeUnit,
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 conversionFactorToReferenceUnit)
Build a user-defined EnergyUnit with a conversion factor to another EnergyUnit.
|
| Modifier and Type | Method and Description |
|---|---|
LengthUnit |
getLengthUnit() |
MassUnit |
getMassUnit() |
String |
getSICoefficientsString() |
EnergyUnit |
getStandardUnit() |
TimeUnit |
getTimeUnit() |
equals, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, hashCode, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toStringpublic static final EnergyUnit SI
public static final EnergyUnit JOULE
public static final EnergyUnit KILOJOULE
public static final EnergyUnit MEGAJOULE
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 KILOCALORIE
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 MILLIWATT_HOUR
public static final EnergyUnit MICROWATT_HOUR
public static final EnergyUnit ELECTRONVOLT
public static final EnergyUnit MILLI_ELECTRONVOLT
public static final EnergyUnit KILO_ELECTRONVOLT
public static final EnergyUnit MEGA_ELECTRONVOLT
public static final EnergyUnit GIGA_ELECTRONVOLT
public static final EnergyUnit TERA_ELECTRONVOLT
public static final EnergyUnit PETA_ELECTRONVOLT
public static final EnergyUnit EXA_ELECTRONVOLT
public static final EnergyUnit STHENE_METER
public static final EnergyUnit ERG
public EnergyUnit(MassUnit massUnit, LengthUnit lengthUnit, TimeUnit timeUnit, String name, String abbreviation, UnitSystem unitSystem)
massUnit - the unit of mass for the energy unit, e.g., kilogramlengthUnit - the unit of length for the energy unit, e.g., metertimeUnit - the unit of time for the energy unit, e.g., secondname - the long name of the unitabbreviation - the abbreviation of the unitunitSystem - the unit system, e.g. SI or Imperialpublic EnergyUnit(ForceUnit forceUnit, LengthUnit lengthUnit, String name, String abbreviation, UnitSystem unitSystem)
forceUnit - the unit of force for the energy unit, e.g., NewtonlengthUnit - the unit of length for the energy unit, e.g., Metername - the long name of the unitabbreviation - the abbreviation of the unitunitSystem - the unit system, e.g. SI or Imperialpublic EnergyUnit(String name, String abbreviation, UnitSystem unitSystem, EnergyUnit referenceUnit, double conversionFactorToReferenceUnit)
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 unitpublic final MassUnit getMassUnit()
public final LengthUnit getLengthUnit()
public final TimeUnit getTimeUnit()
public final EnergyUnit getStandardUnit()
getStandardUnit in class Unit<EnergyUnit>public final String getSICoefficientsString()
getSICoefficientsString in class Unit<EnergyUnit>Copyright © 2015 Delft University of Technology. All rights reserved.