public class AccelerationUnit extends LinearUnit<AccelerationUnit>
Copyright (c) 2015-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2019-01-18 00:35:01 +0100 (Fri, 18 Jan 2019) $, @version $Revision: 324 $, 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
- LengthUnit; the unit of length for the acceleration unit, e.g., meterdurationUnit
- DurationUnit; the unit of time for the acceleration unit, e.g., secondname
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or Imperialpublic AccelerationUnit(SpeedUnit speedUnit, DurationUnit durationUnit, String name, String abbreviation, UnitSystem unitSystem)
speedUnit
- SpeedUnit; the unit of speed for the acceleration unit, e.g., knotdurationUnit
- DurationUnit; the unit of time for the acceleration unit, e.g., secondname
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or Imperialpublic AccelerationUnit(String name, String abbreviation, UnitSystem unitSystem, AccelerationUnit referenceUnit, double scaleFactorToReferenceUnit)
name
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or ImperialreferenceUnit
- AccelerationUnit; the unit to convert toscaleFactorToReferenceUnit
- double; 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–2019 Delft University of Technology. All rights reserved.