public class TorqueUnit extends Unit<TorqueUnit>
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 TorqueUnit |
FOOT_POUND_FORCE
foot pound-force.
|
static TorqueUnit |
INCH_POUND_FORCE
inch pound-force.
|
static TorqueUnit |
METER_KILOGRAM_FORCE
meter kilogram-force.
|
static TorqueUnit |
NEWTON_METER
Newton meter.
|
static TorqueUnit |
SI
The SI unit for torque is Newton meter.
|
Constructor and Description |
---|
TorqueUnit(ForceUnit forceUnit,
LengthUnit lengthUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem)
Create a torque unit from force and length units.
|
TorqueUnit(MassUnit massUnit,
LengthUnit lengthUnit,
TimeUnit timeUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem)
Create a torque unit from mass, length and time units.
|
TorqueUnit(String nameKey,
String abbreviationKey,
UnitSystem unitSystem,
TorqueUnit referenceUnit,
double conversionFactorToReferenceUnit)
Construct a torque unit based on another torque unit.
|
Modifier and Type | Method and Description |
---|---|
LengthUnit |
getLengthUnit() |
MassUnit |
getMassUnit() |
String |
getSICoefficientsString() |
TorqueUnit |
getStandardUnit() |
TimeUnit |
getTimeUnit() |
getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final TorqueUnit SI
public static final TorqueUnit NEWTON_METER
public static final TorqueUnit METER_KILOGRAM_FORCE
public static final TorqueUnit FOOT_POUND_FORCE
public static final TorqueUnit INCH_POUND_FORCE
public TorqueUnit(MassUnit massUnit, LengthUnit lengthUnit, TimeUnit timeUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
massUnit
- the unit of mass for the torque unit, e.g., kilogramlengthUnit
- the unit of length for the torque unit, e.g., metertimeUnit
- the unit of time for the torque 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 TorqueUnit(ForceUnit forceUnit, LengthUnit lengthUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
forceUnit
- the unit of force for the torque unit, e.g., NewtonlengthUnit
- the unit of length for the torque unit, e.g., mnameKey
- 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 TorqueUnit(String nameKey, String abbreviationKey, UnitSystem unitSystem, TorqueUnit 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 TorqueUnit getStandardUnit()
getStandardUnit
in class Unit<TorqueUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<TorqueUnit>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.