public class SpeedUnit extends LinearUnit<SpeedUnit>
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-03-02 19:06:46 +0100 (Sat, 02 Mar 2019) $, @version $Revision: 342 $, by $Author: averbraeck $,
initial version May 15, 2014
| Modifier and Type | Field and Description |
|---|---|
static SpeedUnit |
FOOT_PER_HOUR
ft/h.
|
static SpeedUnit |
FOOT_PER_MINUTE
ft/min.
|
static SpeedUnit |
FOOT_PER_SECOND
ft/s.
|
static SpeedUnit |
INCH_PER_HOUR
in/h.
|
static SpeedUnit |
INCH_PER_MINUTE
in/min.
|
static SpeedUnit |
INCH_PER_SECOND
in/s.
|
static SpeedUnit |
KM_PER_HOUR
km/h.
|
static SpeedUnit |
KM_PER_SECOND
km/s.
|
static SpeedUnit |
KNOT
knot.
|
static SpeedUnit |
METER_PER_HOUR
m/h.
|
static SpeedUnit |
METER_PER_SECOND
m/s.
|
static SpeedUnit |
MILE_PER_HOUR
mile/h.
|
static SpeedUnit |
MILE_PER_MINUTE
mile/min.
|
static SpeedUnit |
MILE_PER_SECOND
mile/s.
|
static SpeedUnit |
SI
The SI unit for speed is m/s.
|
STANDARD_UNITS| Constructor and Description |
|---|
SpeedUnit(LengthUnit lengthUnit,
DurationUnit durationUnit,
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 scaleFactorToReferenceUnit)
Build a user-defined SpeedUnit with a conversion factor to another SpeedUnit.
|
| Modifier and Type | Method and Description |
|---|---|
DurationUnit |
getDurationUnit() |
LengthUnit |
getLengthUnit() |
String |
getSICoefficientsString() |
SpeedUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getScale, getScaleFactor, hashCodegenerateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getDefaultLocaleAbbreviation, getDefaultLocaleName, getDefaultLocaleTextualRepresentation, getDefaultLocaleTextualRepresentations, getDefaultTextualRepresentation, getName, getSICoefficients, getTextualRepresentations, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toStringpublic static final SpeedUnit SI
public static final SpeedUnit METER_PER_SECOND
public static final SpeedUnit METER_PER_HOUR
public static final SpeedUnit KM_PER_SECOND
public static final SpeedUnit KM_PER_HOUR
public static final SpeedUnit INCH_PER_SECOND
public static final SpeedUnit INCH_PER_MINUTE
public static final SpeedUnit INCH_PER_HOUR
public static final SpeedUnit FOOT_PER_SECOND
public static final SpeedUnit FOOT_PER_MINUTE
public static final SpeedUnit FOOT_PER_HOUR
public static final SpeedUnit MILE_PER_SECOND
public static final SpeedUnit MILE_PER_MINUTE
public static final SpeedUnit MILE_PER_HOUR
public static final SpeedUnit KNOT
public SpeedUnit(LengthUnit lengthUnit, DurationUnit durationUnit, String name, String abbreviation, UnitSystem unitSystem)
lengthUnit - LengthUnit; the unit of length for the speed unit, e.g., meterdurationUnit - DurationUnit; the unit of time for the speed 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 SpeedUnit(String name, String abbreviation, UnitSystem unitSystem, SpeedUnit 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 - SpeedUnit; 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 SpeedUnit getStandardUnit()
getStandardUnit in class Unit<SpeedUnit>public final String getSICoefficientsString()
getSICoefficientsString in class Unit<SpeedUnit>Copyright © 2015–2019 Delft University of Technology. All rights reserved.