|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<FrequencyUnits> edu.nrao.sss.measure.FrequencyUnits
public enum FrequencyUnits
Units of measure for frequencies.
Table of Units
Element | Name(s)1 | Symbol(s)2 | Cycles per Second |
---|---|---|---|
YOCTOHERTZ | YOCTOHERTZ | yHz | 10-24 |
ZEPTOHERTZ | ZEPTOHERTZ | zHz | 10-21 |
ATTOHERTZ | ATTOHERTZ | aHz | 10-18 |
FEMTOHERTZ | FEMTOHERTZ | fHz | 10-15 |
PICOHERTZ | PICOHERTZ | pHz | 10-12 |
NANOHERTZ | NANOHERTZ | nHz | 10-9 |
MICROHERTZ | MICROHERTZ | µHz | 10-6 |
MILLIHERTZ | MILLIHERTZ | mHz | 0.001 |
CENTIHERTZ | CENTIHERTZ | cHz | 0.01 |
DECIHERTZ | DECIHERTZ | dHz | 0.1 |
HERTZ | HERTZ | Hz | 1.0 |
DECAHERTZ | DECAHERTZ | daHz | 10.0 |
HECTOHERTZ | HECTOHERTZ | hHz | 100.0 |
KILOHERTZ | KILOHERTZ | kHz | 1,000.0 |
MEGAHERTZ | MEGAHERTZ | MHz | 106 |
GIGAHERTZ | GIGAHERTZ | GHz | 109 |
TERAHERTZ | TERAHERTZ | THz | 1012 |
PETAHERTZ | PETAHERTZ | PHz | 1015 |
ETAHERTZ | ETAHERTZ | EHz | 1018 |
ZETTAHERTZ | ZETTAHERTZ | ZHz | 1021 |
YOTTAHERTZ | YOTTAHERTZ | YHz | 1024 |
fromString(String)
. Note that the names are
not case sensitive.fromString(String)
. Note that the symbols are
case sensitive.
Table of Conversion Factors3
yHz | zHz | aHz | fHz | pHz | nHz | µHz | mHz | cHz | dHz | Hz | daHz | hHz | kHz | MHz | GHz | THz | PHz | EHz | ZHz | YHz | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
YOCTOHERTZ | 1.0 | 0.0010 | 0.0000010 | 1.0E-9 | 1.0E-12 | 1.0E-15 | 1.0E-18 | 1.0E-21 | 1.0E-22 | 1.0E-23 | 1.0E-24 | 1.0E-25 | 1.0E-26 | 1.0E-27 | 1.0E-30 | 1.0E-33 | 1.0E-36 | 1.0E-39 | 1.0E-42 | 1.0E-45 | 1.0E-48 |
ZEPTOHERTZ | 1.0E+3 | 1.0 | 0.0010 | 0.0000010 | 1.0E-9 | 1.0E-12 | 1.0E-15 | 1.0E-18 | 1.0E-19 | 1.0E-20 | 1.0E-21 | 1.0E-22 | 1.0E-23 | 1.0E-24 | 1.0E-27 | 1.0E-30 | 1.0E-33 | 1.0E-36 | 1.0E-39 | 1.0E-42 | 1.0E-45 |
ATTOHERTZ | 1.0E+6 | 1.0E+3 | 1.0 | 0.0010 | 0.0000010 | 1.0E-9 | 1.0E-12 | 1.0E-15 | 1.0E-16 | 1.0E-17 | 1.0E-18 | 1.0E-19 | 1.0E-20 | 1.0E-21 | 1.0E-24 | 1.0E-27 | 1.0E-30 | 1.0E-33 | 1.0E-36 | 1.0E-39 | 1.0E-42 |
FEMTOHERTZ | 1.0E+9 | 1.0E+6 | 1.0E+3 | 1.0 | 0.0010 | 0.0000010 | 1.0E-9 | 1.0E-12 | 1.0E-13 | 1.0E-14 | 1.0E-15 | 1.0E-16 | 1.0E-17 | 1.0E-18 | 1.0E-21 | 1.0E-24 | 1.0E-27 | 1.0E-30 | 1.0E-33 | 1.0E-36 | 1.0E-39 |
PICOHERTZ | 1.0E+12 | 1.0E+9 | 1.0E+6 | 1.0E+3 | 1.0 | 0.0010 | 0.0000010 | 1.0E-9 | 1.0E-10 | 1.0E-11 | 1.0E-12 | 1.0E-13 | 1.0E-14 | 1.0E-15 | 1.0E-18 | 1.0E-21 | 1.0E-24 | 1.0E-27 | 1.0E-30 | 1.0E-33 | 1.0E-36 |
NANOHERTZ | 1.0E+15 | 1.0E+12 | 1.0E+9 | 1.0E+6 | 1.0E+3 | 1.0 | 0.0010 | 0.0000010 | 1.0E-7 | 1.0E-8 | 1.0E-9 | 1.0E-10 | 1.0E-11 | 1.0E-12 | 1.0E-15 | 1.0E-18 | 1.0E-21 | 1.0E-24 | 1.0E-27 | 1.0E-30 | 1.0E-33 |
MICROHERTZ | 1.0E+18 | 1.0E+15 | 1.0E+12 | 1.0E+9 | 1.0E+6 | 1.0E+3 | 1.0 | 0.0010 | 0.00010 | 0.000010 | 0.0000010 | 1.0E-7 | 1.0E-8 | 1.0E-9 | 1.0E-12 | 1.0E-15 | 1.0E-18 | 1.0E-21 | 1.0E-24 | 1.0E-27 | 1.0E-30 |
MILLIHERTZ | 1.0E+21 | 1.0E+18 | 1.0E+15 | 1.0E+12 | 1.0E+9 | 1.0E+6 | 1.0E+3 | 1.0 | 0.10 | 0.010 | 0.0010 | 0.00010 | 0.000010 | 0.0000010 | 1.0E-9 | 1.0E-12 | 1.0E-15 | 1.0E-18 | 1.0E-21 | 1.0E-24 | 1.0E-27 |
CENTIHERTZ | 1.0E+22 | 1.0E+19 | 1.0E+16 | 1.0E+13 | 1.0E+10 | 1.0E+7 | 1.0E+4 | 10 | 1.0 | 0.10 | 0.010 | 0.0010 | 0.00010 | 0.000010 | 1.0E-8 | 1.0E-11 | 1.0E-14 | 1.0E-17 | 1.0E-20 | 1.0E-23 | 1.0E-26 |
DECIHERTZ | 1.0E+23 | 1.0E+20 | 1.0E+17 | 1.0E+14 | 1.0E+11 | 1.0E+8 | 1.0E+5 | 1.0E+2 | 10 | 1.0 | 0.10 | 0.010 | 0.0010 | 0.00010 | 1.0E-7 | 1.0E-10 | 1.0E-13 | 1.0E-16 | 1.0E-19 | 1.0E-22 | 1.0E-25 |
HERTZ | 1.0E+24 | 1.0E+21 | 1.0E+18 | 1.0E+15 | 1.0E+12 | 1.0E+9 | 1.0E+6 | 1.0E+3 | 1.0E+2 | 10 | 1.0 | 0.10 | 0.010 | 0.0010 | 0.0000010 | 1.0E-9 | 1.0E-12 | 1.0E-15 | 1.0E-18 | 1.0E-21 | 1.0E-24 |
DECAHERTZ | 1.0E+25 | 1.0E+22 | 1.0E+19 | 1.0E+16 | 1.0E+13 | 1.0E+10 | 1.0E+7 | 1.0E+4 | 1.0E+3 | 1.0E+2 | 10 | 1.0 | 0.10 | 0.010 | 0.000010 | 1.0E-8 | 1.0E-11 | 1.0E-14 | 1.0E-17 | 1.0E-20 | 1.0E-23 |
HECTOHERTZ | 1.0E+26 | 1.0E+23 | 1.0E+20 | 1.0E+17 | 1.0E+14 | 1.0E+11 | 1.0E+8 | 1.0E+5 | 1.0E+4 | 1.0E+3 | 1.0E+2 | 10 | 1.0 | 0.10 | 0.00010 | 1.0E-7 | 1.0E-10 | 1.0E-13 | 1.0E-16 | 1.0E-19 | 1.0E-22 |
KILOHERTZ | 1.0E+27 | 1.0E+24 | 1.0E+21 | 1.0E+18 | 1.0E+15 | 1.0E+12 | 1.0E+9 | 1.0E+6 | 1.0E+5 | 1.0E+4 | 1.0E+3 | 1.0E+2 | 10 | 1.0 | 0.0010 | 0.0000010 | 1.0E-9 | 1.0E-12 | 1.0E-15 | 1.0E-18 | 1.0E-21 |
MEGAHERTZ | 1.0E+30 | 1.0E+27 | 1.0E+24 | 1.0E+21 | 1.0E+18 | 1.0E+15 | 1.0E+12 | 1.0E+9 | 1.0E+8 | 1.0E+7 | 1.0E+6 | 1.0E+5 | 1.0E+4 | 1.0E+3 | 1.0 | 0.0010 | 0.0000010 | 1.0E-9 | 1.0E-12 | 1.0E-15 | 1.0E-18 |
GIGAHERTZ | 1.0E+33 | 1.0E+30 | 1.0E+27 | 1.0E+24 | 1.0E+21 | 1.0E+18 | 1.0E+15 | 1.0E+12 | 1.0E+11 | 1.0E+10 | 1.0E+9 | 1.0E+8 | 1.0E+7 | 1.0E+6 | 1.0E+3 | 1.0 | 0.0010 | 0.0000010 | 1.0E-9 | 1.0E-12 | 1.0E-15 |
TERAHERTZ | 1.0E+36 | 1.0E+33 | 1.0E+30 | 1.0E+27 | 1.0E+24 | 1.0E+21 | 1.0E+18 | 1.0E+15 | 1.0E+14 | 1.0E+13 | 1.0E+12 | 1.0E+11 | 1.0E+10 | 1.0E+9 | 1.0E+6 | 1.0E+3 | 1.0 | 0.0010 | 0.0000010 | 1.0E-9 | 1.0E-12 |
PETAHERTZ | 1.0E+39 | 1.0E+36 | 1.0E+33 | 1.0E+30 | 1.0E+27 | 1.0E+24 | 1.0E+21 | 1.0E+18 | 1.0E+17 | 1.0E+16 | 1.0E+15 | 1.0E+14 | 1.0E+13 | 1.0E+12 | 1.0E+9 | 1.0E+6 | 1.0E+3 | 1.0 | 0.0010 | 0.0000010 | 1.0E-9 |
ETAHERTZ | 1.0E+42 | 1.0E+39 | 1.0E+36 | 1.0E+33 | 1.0E+30 | 1.0E+27 | 1.0E+24 | 1.0E+21 | 1.0E+20 | 1.0E+19 | 1.0E+18 | 1.0E+17 | 1.0E+16 | 1.0E+15 | 1.0E+12 | 1.0E+9 | 1.0E+6 | 1.0E+3 | 1.0 | 0.0010 | 0.0000010 |
ZETTAHERTZ | 1.0E+45 | 1.0E+42 | 1.0E+39 | 1.0E+36 | 1.0E+33 | 1.0E+30 | 1.0E+27 | 1.0E+24 | 1.0E+23 | 1.0E+22 | 1.0E+21 | 1.0E+20 | 1.0E+19 | 1.0E+18 | 1.0E+15 | 1.0E+12 | 1.0E+9 | 1.0E+6 | 1.0E+3 | 1.0 | 0.0010 |
YOTTAHERTZ | 1.0E+48 | 1.0E+45 | 1.0E+42 | 1.0E+39 | 1.0E+36 | 1.0E+33 | 1.0E+30 | 1.0E+27 | 1.0E+26 | 1.0E+25 | 1.0E+24 | 1.0E+23 | 1.0E+22 | 1.0E+21 | 1.0E+18 | 1.0E+15 | 1.0E+12 | 1.0E+9 | 1.0E+6 | 1.0E+3 | 1.0 |
Version Info:
$Revision: 1586 $ |
$Date: 2008-10-01 10:38:49 -0600 (Wed, 01 Oct 2008) $ |
$Author: dharland $ |
Enum Constant Summary | |
---|---|
ATTOHERTZ
10-18 cycles per second. |
|
CENTIHERTZ
0.01 cycles per second. |
|
DECAHERTZ
10 cycles per second. |
|
DECIHERTZ
0.1 cycles per second. |
|
ETAHERTZ
1018 cycles per second. |
|
FEMTOHERTZ
10-15 cycles per second. |
|
GIGAHERTZ
109 cycles per second. |
|
HECTOHERTZ
100 cycles per second. |
|
HERTZ
1 cycle per second. |
|
KILOHERTZ
1,000 cycles per second. |
|
MEGAHERTZ
106 cycles per second. |
|
MICROHERTZ
10-6 cycles per second. |
|
MILLIHERTZ
0.001 cycles per second. |
|
NANOHERTZ
10-9 cycles per second. |
|
PETAHERTZ
1015 cycles per second. |
|
PICOHERTZ
10-12 cycles per second. |
|
TERAHERTZ
1012 cycles per second. |
|
YOCTOHERTZ
10-24 cycles per second. |
|
YOTTAHERTZ
1024 cycles per second. |
|
ZEPTOHERTZ
10-21 cycles per second. |
|
ZETTAHERTZ
1021 cycles per second. |
Method Summary | |
---|---|
static FrequencyUnits |
fromString(String text)
Returns the frequency units represented by text . |
static FrequencyUnits |
getDefault()
Returns a default unit of frequency. |
static FrequencyUnits |
getForMultipleOfThreePower(int powerOfTen)
Similar to getForPower(int) , but the returned units will have
a power that is evenly divisible by three. |
static FrequencyUnits |
getForPower(int powerOfTen)
Returns the units that corresponds to 1.0 * 10 powerOfTen Hz. |
static FrequencyUnits |
getLargest()
Returns the element that represents the largest number of Hertz. |
static FrequencyUnits |
getSmallest()
Returns the element that represents the smallest number of Hertz. |
String |
getSymbol()
Returns the symbol for this unit. |
boolean |
symbolsAreCaseSensitive()
Returns true -- these symbols are case sensitive. |
BigDecimal |
toHertz()
Returns the number of cycles per second for this unit. |
String |
toString()
Returns a text representation of this enumeration constant. |
BigDecimal |
toUnits(FrequencyUnits otherUnits)
Returns a factor for converting from this unit to otherUnits . |
static FrequencyUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FrequencyUnits[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final FrequencyUnits YOCTOHERTZ
public static final FrequencyUnits ZEPTOHERTZ
public static final FrequencyUnits ATTOHERTZ
public static final FrequencyUnits FEMTOHERTZ
public static final FrequencyUnits PICOHERTZ
public static final FrequencyUnits NANOHERTZ
public static final FrequencyUnits MICROHERTZ
public static final FrequencyUnits MILLIHERTZ
public static final FrequencyUnits CENTIHERTZ
public static final FrequencyUnits DECIHERTZ
public static final FrequencyUnits HERTZ
public static final FrequencyUnits DECAHERTZ
public static final FrequencyUnits HECTOHERTZ
public static final FrequencyUnits KILOHERTZ
public static final FrequencyUnits MEGAHERTZ
public static final FrequencyUnits GIGAHERTZ
public static final FrequencyUnits TERAHERTZ
public static final FrequencyUnits PETAHERTZ
public static final FrequencyUnits ETAHERTZ
public static final FrequencyUnits ZETTAHERTZ
public static final FrequencyUnits YOTTAHERTZ
Method Detail |
---|
public static FrequencyUnits[] values()
for (FrequencyUnits c : FrequencyUnits.values()) System.out.println(c);
public static FrequencyUnits valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean symbolsAreCaseSensitive()
symbolsAreCaseSensitive
in interface Symbolic
public String getSymbol()
Hertz
is Hz.
getSymbol
in interface Symbolic
public BigDecimal toHertz()
public BigDecimal toUnits(FrequencyUnits otherUnits)
otherUnits
.
otherUnits
- the unit to which conversion is desired.
otherUnits
.public static FrequencyUnits getDefault()
public static FrequencyUnits getLargest()
public static FrequencyUnits getSmallest()
public static FrequencyUnits getForPower(int powerOfTen)
powerOfTen
Hz.
If there is no units with the exact powerOfTen
Hz,
the largest units whose power is less than powerOfTen
will be returned. If powerOfTen
is less than that of the
smallest units, the smallest units will be returned.
powerOfTen
Hz.public static FrequencyUnits getForMultipleOfThreePower(int powerOfTen)
getForPower(int)
, but the returned units will have
a power that is evenly divisible by three.
public String toString()
toString
in class Enum<FrequencyUnits>
public static FrequencyUnits fromString(String text)
text
.
Leading and trailing whitespace is first stripped from text
.
A case-insensitive comparison against the name
and
toString
methods of each constant in the enumeration is then
performed, while a case-sensitive comparison is done againt the
getSymbol
method. If no match is found, null
is returned. The comparison of the symbol needs to be case-sensitive
because of units such as millihertz (mHz) and megahertz (MHz).
text
- a text representation of a unit of frequency.
text
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |