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_CENTIMETER
1/centimeter.
|
static LinearDensityUnit |
PER_DECIMETER
1/decimeter.
|
static LinearDensityUnit |
PER_DEKAMETER
1/decameter.
|
static LinearDensityUnit |
PER_FOOT
1/foot (international) = 0.3048 m = 1/3 yd = 12 inches.
|
static LinearDensityUnit |
PER_HECTOMETER
1/hectometer.
|
static LinearDensityUnit |
PER_INCH
1/inch (international) = 2.54 cm = 1/36 yd = 1/12 ft.
|
static LinearDensityUnit |
PER_KILOMETER
1/kilometer.
|
static LinearDensityUnit |
PER_METER
1/meter.
|
static LinearDensityUnit |
PER_MILE
1/mile (international) = 5280 ft = 1760 yd.
|
static LinearDensityUnit |
PER_MILLIMETER
1/millimeter.
|
static LinearDensityUnit |
PER_NAUTICAL_MILE
1/nautical mile (international) = 1852 m.
|
static LinearDensityUnit |
PER_YARD
1/yard (international) = 0.9144 m = 3 ft = 36 in.
|
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, toString
public static final LinearDensityUnit SI
public static final LinearDensityUnit PER_METER
public static final LinearDensityUnit PER_MILLIMETER
public static final LinearDensityUnit PER_CENTIMETER
public static final LinearDensityUnit PER_DECIMETER
public static final LinearDensityUnit PER_DEKAMETER
public static final LinearDensityUnit PER_HECTOMETER
public static final LinearDensityUnit PER_KILOMETER
public static final LinearDensityUnit PER_FOOT
public static final LinearDensityUnit PER_INCH
public static final LinearDensityUnit PER_MILE
public static final LinearDensityUnit PER_NAUTICAL_MILE
public static final LinearDensityUnit PER_YARD
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.