public class PressureUnit extends Unit<PressureUnit>
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 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.
|
Constructor and Description |
---|
PressureUnit(ForceUnit forceUnit,
AreaUnit areaUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem)
Construct a pressure unit from force and area units.
|
PressureUnit(MassUnit massUnit,
LengthUnit lengthUnit,
TimeUnit timeUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem)
Construct a pressure unit from mass, length and time units.
|
PressureUnit(String nameKey,
String abbreviationKey,
UnitSystem unitSystem,
PressureUnit referenceUnit,
double conversionFactorToReferenceUnit)
Build a unit with a conversion factor to another unit.
|
Modifier and Type | Method and Description |
---|---|
LengthUnit |
getLengthUnit() |
MassUnit |
getMassUnit() |
String |
getSICoefficientsString() |
PressureUnit |
getStandardUnit() |
TimeUnit |
getTimeUnit() |
getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, 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, TimeUnit timeUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
massUnit
- the unit of mass for the pressure unit, e.g., kilogramlengthUnit
- the unit of length for the pressure unit, e.g., metertimeUnit
- the unit of time for the pressure 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 PressureUnit(ForceUnit forceUnit, AreaUnit areaUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
forceUnit
- the unit of force for the pressure unit, e.g., NewtonareaUnit
- the unit of area for the pressure unit, e.g., m^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 PressureUnit(String nameKey, String abbreviationKey, UnitSystem unitSystem, PressureUnit 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 PressureUnit getStandardUnit()
getStandardUnit
in class Unit<PressureUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<PressureUnit>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.