public class PowerUnit extends LinearUnit<PowerUnit>
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 PowerUnit |
ERG_PER_SECOND
erg per second.
|
static PowerUnit |
FEMTOWATT
femtowatt.
|
static PowerUnit |
FOOT_POUND_FORCE_PER_HOUR
foot-pound-force per hour.
|
static PowerUnit |
FOOT_POUND_FORCE_PER_MINUTE
foot-pound-force per minute.
|
static PowerUnit |
FOOT_POUND_FORCE_PER_SECOND
foot-pound-force per second.
|
static PowerUnit |
GIGAWATT
gigawatt.
|
static PowerUnit |
HORSEPOWER_METRIC
horsepower (metric).
|
static PowerUnit |
KILOWATT
kiloawatt.
|
static PowerUnit |
MEGAWATT
megawatt.
|
static PowerUnit |
MICROWATT
microwatt.
|
static PowerUnit |
MILLIWATT
milliwatt.
|
static PowerUnit |
NANOWATT
nanowatt.
|
static PowerUnit |
PETAWATT
petawatt.
|
static PowerUnit |
PICOWATT
picowatt.
|
static PowerUnit |
SI
The SI unit for power is watt.
|
static PowerUnit |
STHENE_METER_PER_SECOND
sthene-meter per second.
|
static PowerUnit |
TERAWATT
terawatt.
|
static PowerUnit |
WATT
watt.
|
STANDARD_UNITS
Constructor and Description |
---|
PowerUnit(LengthUnit lengthUnit,
ForceUnit forceUnit,
DurationUnit durationUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Define a user-defined PowerUnit based on a LengthUnit, a ForceUnit, and a TimeUnit, e.g.
|
PowerUnit(MassUnit massUnit,
LengthUnit lengthUnit,
DurationUnit durationUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Define a user-defined PowerUnit based on its constituent base units, e.g.
|
PowerUnit(String name,
String abbreviation,
UnitSystem unitSystem,
PowerUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined PowerUnit with a conversion factor to another PowerUnit.
|
Modifier and Type | Method and Description |
---|---|
DurationUnit |
getDurationUnit() |
LengthUnit |
getLengthUnit() |
MassUnit |
getMassUnit() |
String |
getSICoefficientsString() |
PowerUnit |
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 PowerUnit SI
public static final PowerUnit FEMTOWATT
public static final PowerUnit PICOWATT
public static final PowerUnit NANOWATT
public static final PowerUnit MICROWATT
public static final PowerUnit MILLIWATT
public static final PowerUnit WATT
public static final PowerUnit KILOWATT
public static final PowerUnit MEGAWATT
public static final PowerUnit GIGAWATT
public static final PowerUnit TERAWATT
public static final PowerUnit PETAWATT
public static final PowerUnit FOOT_POUND_FORCE_PER_HOUR
public static final PowerUnit FOOT_POUND_FORCE_PER_MINUTE
public static final PowerUnit FOOT_POUND_FORCE_PER_SECOND
public static final PowerUnit HORSEPOWER_METRIC
public static final PowerUnit STHENE_METER_PER_SECOND
public static final PowerUnit ERG_PER_SECOND
public PowerUnit(MassUnit massUnit, LengthUnit lengthUnit, DurationUnit durationUnit, String name, String abbreviation, UnitSystem unitSystem)
massUnit
- MassUnit; the unit of mass for the power unit, e.g., kilogramlengthUnit
- LengthUnit; the unit of length for the power unit, e.g., meterdurationUnit
- DurationUnit; the unit of time for the power unit, e.g., secondname
- String; the long name of the unitabbreviation
- String; the abbreviation of the unit otherwise the abbreviation itselfunitSystem
- UnitSystem; the unit system, e.g. SI or Imperialpublic PowerUnit(LengthUnit lengthUnit, ForceUnit forceUnit, DurationUnit durationUnit, String name, String abbreviation, UnitSystem unitSystem)
lengthUnit
- LengthUnit; the unit of length for the power unit, e.g., meterforceUnit
- ForceUnit; the unit of force for the power unit, e.g., NewtondurationUnit
- DurationUnit; the unit of time for the power unit, e.g., secondname
- String; the long name of the unitabbreviation
- String; the abbreviation of the unit otherwise the abbreviation itselfunitSystem
- UnitSystem; the unit system, e.g. SI or Imperialpublic PowerUnit(String name, String abbreviation, UnitSystem unitSystem, PowerUnit 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
- PowerUnit; 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 PowerUnit getStandardUnit()
getStandardUnit
in class Unit<PowerUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<PowerUnit>
Copyright © 2015–2019 Delft University of Technology. All rights reserved.