public class FrequencyUnit extends Unit<FrequencyUnit>
Copyright (c) 2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and Description |
---|---|
static FrequencyUnit |
GIGAHERTZ
gigaHertz.
|
static FrequencyUnit |
HERTZ
Hertz.
|
static FrequencyUnit |
KILOHERTZ
kiloHertz.
|
static FrequencyUnit |
MEGAHERTZ
megaHertz.
|
static FrequencyUnit |
PER_DAY
1/day.
|
static FrequencyUnit |
PER_HOUR
1/hour.
|
static FrequencyUnit |
PER_MILLISECOND
1/millisecond.
|
static FrequencyUnit |
PER_MINUTE
1/min.
|
static FrequencyUnit |
PER_SECOND
1/s.
|
static FrequencyUnit |
PER_WEEK
1/week.
|
static FrequencyUnit |
RPM
Revolutions per minute = 1/60 Hz.
|
static FrequencyUnit |
SI
The SI unit for frequency is Hertz.
|
static FrequencyUnit |
TERAHERTZ
teraHertz.
|
Constructor and Description |
---|
FrequencyUnit(String nameKey,
String abbreviationKey,
UnitSystem unitSystem,
FrequencyUnit referenceUnit,
double conversionFactorToReferenceUnit)
Build a unit with a conversion factor to another unit.
|
FrequencyUnit(TimeUnit timeUnit,
String nameKey,
String abbreviationKey,
UnitSystem unitSystem)
Define frequency unit based on time.
|
Modifier and Type | Method and Description |
---|---|
String |
getSICoefficientsString() |
FrequencyUnit |
getStandardUnit() |
TimeUnit |
getTimeUnit() |
getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getConversionFactorToStandardUnit, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final FrequencyUnit SI
public static final FrequencyUnit HERTZ
public static final FrequencyUnit KILOHERTZ
public static final FrequencyUnit MEGAHERTZ
public static final FrequencyUnit GIGAHERTZ
public static final FrequencyUnit TERAHERTZ
public static final FrequencyUnit RPM
public static final FrequencyUnit PER_MILLISECOND
public static final FrequencyUnit PER_SECOND
public static final FrequencyUnit PER_MINUTE
public static final FrequencyUnit PER_HOUR
public static final FrequencyUnit PER_DAY
public static final FrequencyUnit PER_WEEK
public FrequencyUnit(TimeUnit timeUnit, String nameKey, String abbreviationKey, UnitSystem unitSystem)
timeUnit
- the unit of time for the frequency unit, e.g., secondnameKey
- the key to the locale file for the long name of the unitabbreviationKey
- the key to the locale file for the abbreviation of the unitunitSystem
- the unit system, e.g. SI or Imperialpublic FrequencyUnit(String nameKey, String abbreviationKey, UnitSystem unitSystem, FrequencyUnit referenceUnit, double conversionFactorToReferenceUnit)
nameKey
- the key to the locale file for the long name of the unitabbreviationKey
- the key to the locale file for 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 TimeUnit getTimeUnit()
public final FrequencyUnit getStandardUnit()
getStandardUnit
in class Unit<FrequencyUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<FrequencyUnit>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.