public class FlowMassUnit extends Unit<FlowMassUnit>
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 FlowMassUnit |
KILOGRAM_PER_SECOND
kg/s.
|
static FlowMassUnit |
POUND_PER_SECOND
lb/s.
|
static FlowMassUnit |
SI
The SI unit for mass flow rate is kg/s.
|
Constructor and Description |
---|
FlowMassUnit(MassUnit massUnit,
TimeUnit timeUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem)
Create a flow-massunit based on mass and time.
|
FlowMassUnit(String nameKey,
String abbreviationKey,
UnitSystem unitSystem,
FlowMassUnit referenceUnit,
double conversionFactorToReferenceUnit)
Create a flow-massunit based on another flow-massunit.
|
Modifier and Type | Method and Description |
---|---|
MassUnit |
getMassUnit() |
String |
getSICoefficientsString() |
FlowMassUnit |
getStandardUnit() |
TimeUnit |
getTimeUnit() |
getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final FlowMassUnit SI
public static final FlowMassUnit KILOGRAM_PER_SECOND
public static final FlowMassUnit POUND_PER_SECOND
public FlowMassUnit(MassUnit massUnit, TimeUnit timeUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
massUnit
- the unit of mass for the flow unit, e.g., kilogramtimeUnit
- the unit of time for the flow 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 FlowMassUnit(String nameKey, String abbreviationKey, UnitSystem unitSystem, FlowMassUnit 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 TimeUnit getTimeUnit()
public final FlowMassUnit getStandardUnit()
getStandardUnit
in class Unit<FlowMassUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<FlowMassUnit>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.