public class FrequencyUnit extends LinearUnit<FrequencyUnit>
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 FrequencyUnit |
GIGAHERTZ
gigaHertz.
|
static FrequencyUnit |
HERTZ
Hertz.
|
static FrequencyUnit |
KILOHERTZ
kiloHertz.
|
static FrequencyUnit |
MEGAHERTZ
megaHertz.
|
static FrequencyUnit |
PER_ATTOSECOND
1/attosecond.
|
static FrequencyUnit |
PER_DAY
1/day.
|
static FrequencyUnit |
PER_FEMTOSECOND
1/femtosecond.
|
static FrequencyUnit |
PER_HOUR
1/hour.
|
static FrequencyUnit |
PER_MICROSECOND
1/microsecond.
|
static FrequencyUnit |
PER_MILLISECOND
1/millisecond.
|
static FrequencyUnit |
PER_MINUTE
1/min.
|
static FrequencyUnit |
PER_NANOSECOND
1/nanosecond.
|
static FrequencyUnit |
PER_PICOSECOND
1/picosecond.
|
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.
|
STANDARD_UNITS
Constructor and Description |
---|
FrequencyUnit(DurationUnit durationUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Define a user-defined FrequencyUnit based on time.
|
FrequencyUnit(String name,
String abbreviation,
UnitSystem unitSystem,
FrequencyUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined FrequencyUnit with a conversion factor to another FrequencyUnit.
|
Modifier and Type | Method and Description |
---|---|
DurationUnit |
getDurationUnit() |
String |
getSICoefficientsString() |
FrequencyUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getScale, getScaleFactor, hashCode
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, 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_ATTOSECOND
public static final FrequencyUnit PER_FEMTOSECOND
public static final FrequencyUnit PER_PICOSECOND
public static final FrequencyUnit PER_NANOSECOND
public static final FrequencyUnit PER_MICROSECOND
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(DurationUnit durationUnit, String name, String abbreviation, UnitSystem unitSystem)
durationUnit
- DurationUnit; the unit of time for the frequency 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 FrequencyUnit(String name, String abbreviation, UnitSystem unitSystem, FrequencyUnit 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
- FrequencyUnit; the unit to convert toscaleFactorToReferenceUnit
- double; multiply a value in this unit by the factor to convert to the given reference
unitpublic final DurationUnit getDurationUnit()
public final FrequencyUnit getStandardUnit()
getStandardUnit
in class Unit<FrequencyUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<FrequencyUnit>
Copyright © 2015–2019 Delft University of Technology. All rights reserved.