public class PowerUnit extends Unit<PowerUnit>
Copyright (c) 2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and Description |
---|---|
static PowerUnit |
ERG_PER_SECOND
erg per second.
|
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
kilowatt.
|
static PowerUnit |
MEGAWATT
megawatt.
|
static PowerUnit |
SI
The SI unit for power is watt.
|
static PowerUnit |
STHENE_METER_PER_SECOND
sthene-meter per second.
|
static PowerUnit |
WATT
watt.
|
Constructor and Description |
---|
PowerUnit(LengthUnit lengthUnit,
ForceUnit forceUnit,
TimeUnit timeUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem) |
PowerUnit(MassUnit massUnit,
LengthUnit lengthUnit,
TimeUnit timeUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem) |
PowerUnit(String nameKey,
String abbreviationKey,
UnitSystem unitSystem,
PowerUnit referenceUnit,
double conversionFactorToReferenceUnit) |
Modifier and Type | Method and Description |
---|---|
LengthUnit |
getLengthUnit() |
MassUnit |
getMassUnit() |
String |
getSICoefficientsString() |
PowerUnit |
getStandardUnit() |
TimeUnit |
getTimeUnit() |
getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final PowerUnit SI
public static final PowerUnit WATT
public static final PowerUnit KILOWATT
public static final PowerUnit MEGAWATT
public static final PowerUnit GIGAWATT
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, TimeUnit timeUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
massUnit
- the unit of mass for the power unit, e.g., kilogramlengthUnit
- the unit of length for the power unit, e.g., metertimeUnit
- the unit of time for the power unit, e.g., secondnameKey
- the key to the locale file for the long name of the unitabbreviationKey
- the key to the locale file for the abbreviation of the unitunitSystem
- the unit system, e.g. SI or Imperialpublic PowerUnit(LengthUnit lengthUnit, ForceUnit forceUnit, TimeUnit timeUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
lengthUnit
- the unit of length for the power unit, e.g., meterforceUnit
- the unit of force for the power unit, e.g., NewtontimeUnit
- the unit of time for the power unit, e.g., secondnameKey
- the key to the locale file for the long name of the unitabbreviationKey
- the key to the locale file for the abbreviation of the unitunitSystem
- the unit system, e.g. SI or Imperialpublic PowerUnit(String nameKey, String abbreviationKey, UnitSystem unitSystem, PowerUnit referenceUnit, double conversionFactorToReferenceUnit)
nameKey
- the key to the locale file for the long name of the unitabbreviationKey
- the key to the locale file for 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 PowerUnit getStandardUnit()
getStandardUnit
in class Unit<PowerUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<PowerUnit>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.