public class SpeedUnit extends LinearUnit<SpeedUnit>
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 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, hashCode
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public 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
- the unit of length for the speed unit, e.g., meterdurationUnit
- 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 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 SpeedUnit getStandardUnit()
getStandardUnit
in class Unit<SpeedUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<SpeedUnit>
Copyright © 2015–2018 Delft University of Technology. All rights reserved.