public class ForceUnit extends Unit<ForceUnit>
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 ForceUnit |
DYNE
Dyne.
|
static ForceUnit |
KILOGRAM_FORCE
kilogram-force.
|
static ForceUnit |
NEWTON
Newton.
|
static ForceUnit |
OUNCE_FORCE
ounce-force.
|
static ForceUnit |
POUND_FORCE
pound-force.
|
static ForceUnit |
SI
The SI unit for force is Newton.
|
static ForceUnit |
STHENE
sthene.
|
static ForceUnit |
TON_FORCE
ton-force.
|
Constructor and Description |
---|
ForceUnit(MassUnit massUnit,
AccelerationUnit accelerationUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem)
Build a unit with a conversion factor to another unit.
|
ForceUnit(MassUnit massUnit,
LengthUnit lengthUnit,
TimeUnit timeUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem)
Build a standard unit.
|
ForceUnit(String nameKey,
String abbreviationKey,
UnitSystem unitSystem,
ForceUnit referenceUnit,
double conversionFactorToReferenceUnit) |
Modifier and Type | Method and Description |
---|---|
LengthUnit |
getLengthUnit() |
MassUnit |
getMassUnit() |
String |
getSICoefficientsString() |
ForceUnit |
getStandardUnit() |
TimeUnit |
getTimeUnit() |
getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final ForceUnit SI
public static final ForceUnit NEWTON
public static final ForceUnit DYNE
public static final ForceUnit KILOGRAM_FORCE
public static final ForceUnit OUNCE_FORCE
public static final ForceUnit POUND_FORCE
public static final ForceUnit TON_FORCE
public static final ForceUnit STHENE
public ForceUnit(MassUnit massUnit, LengthUnit lengthUnit, TimeUnit timeUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
massUnit
- the unit of mass for the force unit, e.g., kilogramlengthUnit
- the unit of length for the force unit, e.g., metertimeUnit
- the unit of time for the force 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 ForceUnit(MassUnit massUnit, AccelerationUnit accelerationUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
massUnit
- the unit of mass for the force unit, e.g., kilogramaccelerationUnit
- the unit of acceleration for the force unit, e.g., m/s^2nameKey
- 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 ForceUnit(String nameKey, String abbreviationKey, UnitSystem unitSystem, ForceUnit 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 ForceUnit getStandardUnit()
getStandardUnit
in class Unit<ForceUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<ForceUnit>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.