public class AreaUnit extends Unit<AreaUnit>
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 AreaUnit |
ACRE
acre (international).
|
static AreaUnit |
ARE
are.
|
static AreaUnit |
HECTARE
hectare.
|
static AreaUnit |
SI
The SI unit for area is m^2.
|
static AreaUnit |
SQUARE_CENTIMETER
cm^2.
|
static AreaUnit |
SQUARE_FOOT
ft^2.
|
static AreaUnit |
SQUARE_INCH
in^2.
|
static AreaUnit |
SQUARE_KM
km^2.
|
static AreaUnit |
SQUARE_METER
m^2.
|
static AreaUnit |
SQUARE_MILE
mile^2.
|
static AreaUnit |
SQUARE_MILLIMETER
cm^2.
|
static AreaUnit |
SQUARE_YARD
yd^2.
|
Constructor and Description |
---|
AreaUnit(LengthUnit lengthUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem)
Define area unit based on length.
|
AreaUnit(String nameKey,
String abbreviationKey,
UnitSystem unitSystem,
AreaUnit referenceUnit,
double conversionFactorToReferenceUnit)
This constructor constructs a unit out of another defined unit, e.g.
|
Modifier and Type | Method and Description |
---|---|
LengthUnit |
getLengthUnit() |
String |
getSICoefficientsString() |
AreaUnit |
getStandardUnit() |
getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final AreaUnit SI
public static final AreaUnit SQUARE_METER
public static final AreaUnit SQUARE_KM
public static final AreaUnit SQUARE_CENTIMETER
public static final AreaUnit SQUARE_MILLIMETER
public static final AreaUnit ARE
public static final AreaUnit HECTARE
public static final AreaUnit SQUARE_MILE
public static final AreaUnit SQUARE_FOOT
public static final AreaUnit SQUARE_INCH
public static final AreaUnit SQUARE_YARD
public static final AreaUnit ACRE
public AreaUnit(LengthUnit lengthUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
lengthUnit
- the unit of length for the area 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 AreaUnit(String nameKey, String abbreviationKey, UnitSystem unitSystem, AreaUnit 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 AreaUnit getStandardUnit()
getStandardUnit
in class Unit<AreaUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<AreaUnit>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.