public class LinearDensityUnit extends Unit<LinearDensityUnit>
Copyright (c) 2013-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 LinearDensityUnit |
PER_KILOMETER
1/kilometer.
|
static LinearDensityUnit |
PER_METER
1/meter.
|
static LinearDensityUnit |
PER_MILLIMETER
1/millimeter.
|
static LinearDensityUnit |
SI
The SI unit for objects per unit of distance is 1/meter.
|
| Constructor and Description |
|---|
LinearDensityUnit(LengthUnit lengthUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem)
Define frequency unit based on time.
|
LinearDensityUnit(String nameKey,
String abbreviationKey,
UnitSystem unitSystem,
LinearDensityUnit referenceUnit,
double conversionFactorToReferenceUnit)
Build a unit with a conversion factor to another unit.
|
| Modifier and Type | Method and Description |
|---|---|
LengthUnit |
getLengthUnit() |
String |
getSICoefficientsString() |
LinearDensityUnit |
getStandardUnit() |
getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toStringpublic static final LinearDensityUnit SI
public static final LinearDensityUnit PER_METER
public static final LinearDensityUnit PER_KILOMETER
public static final LinearDensityUnit PER_MILLIMETER
public LinearDensityUnit(LengthUnit lengthUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
lengthUnit - the unit of length for the linear density unit, e.g., meternameKey - 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 LinearDensityUnit(String nameKey, String abbreviationKey, UnitSystem unitSystem, LinearDensityUnit 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 LengthUnit getLengthUnit()
public final LinearDensityUnit getStandardUnit()
getStandardUnit in class Unit<LinearDensityUnit>public final String getSICoefficientsString()
getSICoefficientsString in class Unit<LinearDensityUnit>Copyright © 2014–2015 Delft University of Technology. All rights reserved.