public class AccelerationUnit extends Unit<AccelerationUnit>
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 AccelerationUnit |
FOOT_PER_SECOND_2
ft/s^2.
|
static AccelerationUnit |
GAL
standard gravity.
|
static AccelerationUnit |
INCH_PER_SECOND_2
in/s^2.
|
static AccelerationUnit |
KM_PER_HOUR_2
km/h^2.
|
static AccelerationUnit |
KNOT_PER_SECOND
kt/s.
|
static AccelerationUnit |
METER_PER_SECOND_2
m/s^2.
|
static AccelerationUnit |
MILE_PER_HOUR_2
mi/h^2.
|
static AccelerationUnit |
MILE_PER_HOUR_PER_SECOND
mi/h/s.
|
static AccelerationUnit |
MILE_PER_SECOND_2
mi/s^2.
|
static AccelerationUnit |
SI
The SI unit for acceleration is m/s^2.
|
static AccelerationUnit |
STANDARD_GRAVITY
standard gravity.
|
Constructor and Description |
---|
AccelerationUnit(LengthUnit lengthUnit,
TimeUnit timeUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem)
Define acceleration units based on length and time.
|
AccelerationUnit(SpeedUnit speedUnit,
TimeUnit timeUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem)
Define acceleration units based on speed and time.
|
AccelerationUnit(String nameKey,
String abbreviationKey,
UnitSystem unitSystem,
AccelerationUnit referenceUnit,
double conversionFactorToReferenceUnit)
Create a new AccelerationUnit.
|
Modifier and Type | Method and Description |
---|---|
LengthUnit |
getLengthUnit() |
String |
getSICoefficientsString() |
AccelerationUnit |
getStandardUnit() |
TimeUnit |
getTimeUnit() |
getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final AccelerationUnit SI
public static final AccelerationUnit METER_PER_SECOND_2
public static final AccelerationUnit KM_PER_HOUR_2
public static final AccelerationUnit FOOT_PER_SECOND_2
public static final AccelerationUnit INCH_PER_SECOND_2
public static final AccelerationUnit MILE_PER_HOUR_2
public static final AccelerationUnit MILE_PER_SECOND_2
public static final AccelerationUnit KNOT_PER_SECOND
public static final AccelerationUnit MILE_PER_HOUR_PER_SECOND
public static final AccelerationUnit STANDARD_GRAVITY
public static final AccelerationUnit GAL
public AccelerationUnit(LengthUnit lengthUnit, TimeUnit timeUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
lengthUnit
- the unit of length for the acceleration unit, e.g., metertimeUnit
- the unit of time for the acceleration 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 AccelerationUnit(SpeedUnit speedUnit, TimeUnit timeUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
speedUnit
- the unit of speed for the acceleration unit, e.g., knottimeUnit
- the unit of time for the acceleration 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 AccelerationUnit(String nameKey, String abbreviationKey, UnitSystem unitSystem, AccelerationUnit 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 TimeUnit getTimeUnit()
public final AccelerationUnit getStandardUnit()
getStandardUnit
in class Unit<AccelerationUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<AccelerationUnit>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.