public class SpeedUnit extends Unit<SpeedUnit>
Copyright (c) 2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-10-04 20:48:33 +0200 (Sun, 04 Oct 2015) $, @version $Revision: 87 $, by $Author: averbraeck $, initial
version May 15, 2014
| Modifier and Type | Field and Description |
|---|---|
static SpeedUnit |
FOOT_PER_SECOND
ft/s.
|
static SpeedUnit |
KM_PER_HOUR
km/h.
|
static SpeedUnit |
KNOT
knot.
|
static SpeedUnit |
METER_PER_SECOND
m/s.
|
static SpeedUnit |
MILE_PER_HOUR
mile/h.
|
static SpeedUnit |
SI
The SI unit for velocity is m/s.
|
| Constructor and Description |
|---|
SpeedUnit(LengthUnit lengthUnit,
TimeUnit timeUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Build a user-defined speed unit from a length unit and a time unit.
|
SpeedUnit(String name,
String abbreviation,
UnitSystem unitSystem,
SpeedUnit referenceUnit,
double conversionFactorToReferenceUnit)
Build a user-defined SpeedUnit with a conversion factor to another SpeedUnit.
|
| Modifier and Type | Method and Description |
|---|---|
LengthUnit |
getLengthUnit() |
String |
getSICoefficientsString() |
SpeedUnit |
getStandardUnit() |
TimeUnit |
getTimeUnit() |
equals, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, hashCode, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toStringpublic static final SpeedUnit SI
public static final SpeedUnit METER_PER_SECOND
public static final SpeedUnit KM_PER_HOUR
public static final SpeedUnit MILE_PER_HOUR
public static final SpeedUnit FOOT_PER_SECOND
public static final SpeedUnit KNOT
public SpeedUnit(LengthUnit lengthUnit, TimeUnit timeUnit, String name, String abbreviation, UnitSystem unitSystem)
lengthUnit - the unit of length for the speed unit, e.g., metertimeUnit - the unit of time for the speed unit, e.g., secondname - the long name of the unitabbreviation - the abbreviation of the unitunitSystem - the unit system, e.g. SI or Imperialpublic SpeedUnit(String name, String abbreviation, UnitSystem unitSystem, SpeedUnit referenceUnit, double conversionFactorToReferenceUnit)
name - the long name of the unitabbreviation - 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 SpeedUnit getStandardUnit()
getStandardUnit in class Unit<SpeedUnit>public final String getSICoefficientsString()
getSICoefficientsString in class Unit<SpeedUnit>Copyright © 2015 Delft University of Technology. All rights reserved.