public class PressureUnit extends LinearUnit<PressureUnit>
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 PressureUnit |
ATMOSPHERE_STANDARD
standard atmosphere.
|
static PressureUnit |
ATMOSPHERE_TECHNICAL
technical atmosphere.
|
static PressureUnit |
BAR
bar.
|
static PressureUnit |
BARYE
barye.
|
static PressureUnit |
CENTIMETER_MERCURY
cm Hg.
|
static PressureUnit |
FOOT_MERCURY
foot Hg.
|
static PressureUnit |
HECTOPASCAL
hectoPascal.
|
static PressureUnit |
INCH_MERCURY
inch Hg.
|
static PressureUnit |
KGF_PER_SQUARE_MM
kilogram-force per square millimeter.
|
static PressureUnit |
KILOPASCAL
kiloPascal.
|
static PressureUnit |
MILLIBAR
millibar.
|
static PressureUnit |
MILLIMETER_MERCURY
mm Hg.
|
static PressureUnit |
PASCAL
Pascal.
|
static PressureUnit |
PIEZE
pieze.
|
static PressureUnit |
POUND_PER_SQUARE_FOOT
pound per square foot.
|
static PressureUnit |
POUND_PER_SQUARE_INCH
pound per square inch.
|
static PressureUnit |
SI
The SI unit for pressure is Pascal.
|
static PressureUnit |
TORR
torr.
|
STANDARD_UNITS
Constructor and Description |
---|
PressureUnit(ForceUnit forceUnit,
AreaUnit areaUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Construct a user-defined pressure unit from force and area units, e.g.
|
PressureUnit(MassUnit massUnit,
LengthUnit lengthUnit,
DurationUnit durationUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Construct a user-defined pressure unit from mass, length and time units, e.g., a Pascal = kg/m.s^2.
|
PressureUnit(String name,
String abbreviation,
UnitSystem unitSystem,
PressureUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined PressureUnit with a conversion factor to another PressureUnit.
|
Modifier and Type | Method and Description |
---|---|
DurationUnit |
getDurationUnit() |
LengthUnit |
getLengthUnit() |
MassUnit |
getMassUnit() |
String |
getSICoefficientsString() |
PressureUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getScale, getScaleFactor, hashCode
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final PressureUnit SI
public static final PressureUnit PASCAL
public static final PressureUnit HECTOPASCAL
public static final PressureUnit KILOPASCAL
public static final PressureUnit ATMOSPHERE_STANDARD
public static final PressureUnit TORR
public static final PressureUnit ATMOSPHERE_TECHNICAL
public static final PressureUnit BARYE
public static final PressureUnit BAR
public static final PressureUnit MILLIBAR
public static final PressureUnit CENTIMETER_MERCURY
public static final PressureUnit MILLIMETER_MERCURY
public static final PressureUnit FOOT_MERCURY
public static final PressureUnit INCH_MERCURY
public static final PressureUnit KGF_PER_SQUARE_MM
public static final PressureUnit POUND_PER_SQUARE_FOOT
public static final PressureUnit POUND_PER_SQUARE_INCH
public static final PressureUnit PIEZE
public PressureUnit(MassUnit massUnit, LengthUnit lengthUnit, DurationUnit durationUnit, String name, String abbreviation, UnitSystem unitSystem)
massUnit
- MassUnit; the unit of mass for the pressure unit, e.g., kilogramlengthUnit
- LengthUnit; the unit of length for the pressure unit, e.g., meterdurationUnit
- DurationUnit; the unit of time for the pressure 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 PressureUnit(ForceUnit forceUnit, AreaUnit areaUnit, String name, String abbreviation, UnitSystem unitSystem)
forceUnit
- ForceUnit; the unit of force for the pressure unit, e.g., NewtonareaUnit
- AreaUnit; the unit of area for the pressure unit, e.g., m^2name
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or Imperialpublic PressureUnit(String name, String abbreviation, UnitSystem unitSystem, PressureUnit 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
- PressureUnit; 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 PressureUnit getStandardUnit()
getStandardUnit
in class Unit<PressureUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<PressureUnit>
Copyright © 2015–2019 Delft University of Technology. All rights reserved.