public class ForceUnit extends LinearUnit<ForceUnit>
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-03-02 19:06:46 +0100 (Sat, 02 Mar 2019) $, @version $Revision: 342 $, 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, getDefaultLocaleAbbreviation, getDefaultLocaleName, getDefaultLocaleTextualRepresentation, getDefaultLocaleTextualRepresentations, getDefaultTextualRepresentation, getName, getSICoefficients, getTextualRepresentations, 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
- MassUnit; the unit of mass for the force unit, e.g., kilogramlengthUnit
- LengthUnit; the unit of length for the force unit, e.g., meterdurationUnit
- DurationUnit; the unit of time for the force 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 ForceUnit(MassUnit massUnit, AccelerationUnit accelerationUnit, String name, String abbreviation, UnitSystem unitSystem)
massUnit
- MassUnit; the unit of mass for the force unit, e.g., kilogramaccelerationUnit
- AccelerationUnit; the unit of acceleration for the force unit, e.g., m/s^2name
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or Imperialpublic ForceUnit(String name, String abbreviation, UnitSystem unitSystem, ForceUnit 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
- ForceUnit; 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 ForceUnit getStandardUnit()
getStandardUnit
in class Unit<ForceUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<ForceUnit>
Copyright © 2015–2019 Delft University of Technology. All rights reserved.