public class AccelerationUnit extends LinearUnit<AccelerationUnit>
Copyright (c) 2015-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2018-01-28 03:17:44 +0100 (Sun, 28 Jan 2018) $, @version $Revision: 256 $, by $Author: averbraeck $,
initial version May 15, 2014
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.
|
STANDARD_UNITS
Constructor and Description |
---|
AccelerationUnit(LengthUnit lengthUnit,
DurationUnit durationUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Define user defined acceleration unit based on length and time.
|
AccelerationUnit(SpeedUnit speedUnit,
DurationUnit durationUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Define user-defined acceleration unit based on speed and time.
|
AccelerationUnit(String name,
String abbreviation,
UnitSystem unitSystem,
AccelerationUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined unit with a conversion factor to another unit.
|
Modifier and Type | Method and Description |
---|---|
DurationUnit |
getDurationUnit() |
LengthUnit |
getLengthUnit() |
String |
getSICoefficientsString() |
AccelerationUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getScale, getScaleFactor, hashCode
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, 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, DurationUnit durationUnit, String name, String abbreviation, UnitSystem unitSystem)
lengthUnit
- the unit of length for the acceleration unit, e.g., meterdurationUnit
- the unit of time for the acceleration unit, e.g., secondname
- the long name of the unitabbreviation
- the abbreviation of the unitunitSystem
- the unit system, e.g. SI or Imperialpublic AccelerationUnit(SpeedUnit speedUnit, DurationUnit durationUnit, String name, String abbreviation, UnitSystem unitSystem)
speedUnit
- the unit of speed for the acceleration unit, e.g., knotdurationUnit
- the unit of time for the acceleration unit, e.g., secondname
- the long name of the unitabbreviation
- the abbreviation of the unitunitSystem
- the unit system, e.g. SI or Imperialpublic AccelerationUnit(String name, String abbreviation, UnitSystem unitSystem, AccelerationUnit referenceUnit, double scaleFactorToReferenceUnit)
name
- the long name of the unitabbreviation
- the abbreviation of the unitunitSystem
- the unit system, e.g. SI or ImperialreferenceUnit
- the unit to convert toscaleFactorToReferenceUnit
- multiply a value in this unit by the factor to convert to the given reference unitpublic final LengthUnit getLengthUnit()
public final DurationUnit getDurationUnit()
public final AccelerationUnit getStandardUnit()
getStandardUnit
in class Unit<AccelerationUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<AccelerationUnit>
Copyright © 2015–2018 Delft University of Technology. All rights reserved.