public class TorqueUnit extends LinearUnit<TorqueUnit>
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-01-18 00:35:01 +0100 (Fri, 18 Jan 2019) $, @version $Revision: 324 $, by $Author: averbraeck $,
initial version May 15, 2014
Modifier and Type | Field and Description |
---|---|
static TorqueUnit |
METER_KILOGRAM_FORCE
meter kilogram-force.
|
static TorqueUnit |
NEWTON_METER
Newton meter.
|
static TorqueUnit |
POUND_FOOT
Pound foot.
|
static TorqueUnit |
POUND_INCH
Pound inch.
|
static TorqueUnit |
SI
The SI unit for torque is Newton meter.
|
STANDARD_UNITS
Constructor and Description |
---|
TorqueUnit(ForceUnit forceUnit,
LengthUnit lengthUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Create a user-defined torque unit from force and length units.
|
TorqueUnit(MassUnit massUnit,
LengthUnit lengthUnit,
DurationUnit durationUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Create a user-defined torque unit from mass, length and time units.
|
TorqueUnit(String name,
String abbreviation,
UnitSystem unitSystem,
TorqueUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined unit with a conversion factor to another unit.
|
Modifier and Type | Method and Description |
---|---|
DurationUnit |
getDurationUnit() |
LengthUnit |
getLengthUnit() |
MassUnit |
getMassUnit() |
String |
getSICoefficientsString() |
TorqueUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getScale, getScaleFactor, hashCode
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, 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 POUND_FOOT
public static final TorqueUnit POUND_INCH
public TorqueUnit(MassUnit massUnit, LengthUnit lengthUnit, DurationUnit durationUnit, String name, String abbreviation, UnitSystem unitSystem)
massUnit
- MassUnit; the unit of mass for the torque unit, e.g., kilogramlengthUnit
- LengthUnit; the unit of length for the torque unit, e.g., meterdurationUnit
- DurationUnit; the unit of time for the torque 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 TorqueUnit(ForceUnit forceUnit, LengthUnit lengthUnit, String name, String abbreviation, UnitSystem unitSystem)
forceUnit
- ForceUnit; the unit of force for the torque unit, e.g., NewtonlengthUnit
- LengthUnit; the unit of length for the torque 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 TorqueUnit(String name, String abbreviation, UnitSystem unitSystem, TorqueUnit 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
- TorqueUnit; 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 TorqueUnit getStandardUnit()
getStandardUnit
in class Unit<TorqueUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<TorqueUnit>
Copyright © 2015–2019 Delft University of Technology. All rights reserved.