public class ForceUnit extends LinearUnit<ForceUnit>
Copyright (c) 2015-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2018-01-28 03:17:44 +0100 (Sun, 28 Jan 2018) $, @version $Revision: 256 $, by $Author: averbraeck $,
initial version May 15, 2014
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.
|
STANDARD_UNITS
Constructor and Description |
---|
ForceUnit(MassUnit massUnit,
AccelerationUnit accelerationUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Build a user-defined ForceUnit based on a MassUnit and an AccelerationUnit, i.e.
|
ForceUnit(MassUnit massUnit,
LengthUnit lengthUnit,
DurationUnit durationUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Build a user-defined ForceUnit based on its constituent base units, e.g.
|
ForceUnit(String name,
String abbreviation,
UnitSystem unitSystem,
ForceUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined ForceUnit with a conversion factor to another ForceUnit.
|
Modifier and Type | Method and Description |
---|---|
DurationUnit |
getDurationUnit() |
LengthUnit |
getLengthUnit() |
MassUnit |
getMassUnit() |
String |
getSICoefficientsString() |
ForceUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getScale, getScaleFactor, hashCode
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, 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, DurationUnit durationUnit, String name, String abbreviation, UnitSystem unitSystem)
massUnit
- the unit of mass for the force unit, e.g., kilogramlengthUnit
- the unit of length for the force unit, e.g., meterdurationUnit
- the unit of time for the force unit, e.g., secondname
- the long name of the unitabbreviation
- the abbreviation of the unitunitSystem
- the unit system, e.g. SI or Imperialpublic ForceUnit(MassUnit massUnit, AccelerationUnit accelerationUnit, String name, String abbreviation, 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^2name
- the long name of the unitabbreviation
- the abbreviation of the unitunitSystem
- the unit system, e.g. SI or Imperialpublic ForceUnit(String name, String abbreviation, UnitSystem unitSystem, ForceUnit referenceUnit, double scaleFactorToReferenceUnit)
name
- the long name of the unitabbreviation
- the abbreviation of the unitunitSystem
- the unit system, e.g. SI or ImperialreferenceUnit
- the unit to convert toscaleFactorToReferenceUnit
- 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 ForceUnit getStandardUnit()
getStandardUnit
in class Unit<ForceUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<ForceUnit>
Copyright © 2015–2018 Delft University of Technology. All rights reserved.