Package com.luciad.ais.model.util
Class TLcdFrequencyUnit
java.lang.Object
com.luciad.ais.model.util.TLcdFrequencyUnit
This class defines frequency unit constants.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdFrequencyUnit
GigaHertz.static final TLcdFrequencyUnit
Hertz.static final TLcdFrequencyUnit
KiloHertz.static final TLcdFrequencyUnit
MegaHertz. -
Method Summary
Modifier and TypeMethodDescriptionstatic TLcdFrequencyUnit[]
Returns allTLcdFrequencyUnit
objects to consider in a JVM session.double
Returns the factor to apply to convert a frequency expressed in theTLcdFrequencyUnit
into a frequency in hertz.Returns the name of theTLcdFrequencyUnit
(e.g.Returns the short name of theTLcdFrequencyUnit
(e.g.static void
setAllFrequencyUnits
(TLcdFrequencyUnit[] aAllFrequencyUnitArray) Sets statically allTLcdFrequencyUnit
objects to consider in a JVM session.toString()
Returns the unit name.
-
Field Details
-
GHZ_UNIT
GigaHertz. -
MHZ_UNIT
MegaHertz. -
KHZ_UNIT
KiloHertz. -
HZ_UNIT
Hertz.
-
-
Method Details
-
getUnitName
Returns the name of theTLcdFrequencyUnit
(e.g. Hertz, Kilohertz, etc ...).- Returns:
- the name of the
TLcdFrequencyUnit
(e.g. Hertz, Kilohertz, etc ...)
-
getUnitShortName
Returns the short name of theTLcdFrequencyUnit
(e.g. Hz, KHz, etc ...).- Returns:
- the short name of the
TLcdFrequencyUnit
(e.g. Hz, KHz, etc ...)
-
getToHertzFactor
public double getToHertzFactor()Returns the factor to apply to convert a frequency expressed in theTLcdFrequencyUnit
into a frequency in hertz.- Returns:
- the factor to apply to convert a frequency expressed in the
TLcdFrequencyUnit
into a frequency in hertz
-
getAllFrequencyUnits
Returns allTLcdFrequencyUnit
objects to consider in a JVM session.- Returns:
- all
TLcdFrequencyUnit
objects to consider in a JVM session
-
setAllFrequencyUnits
Sets statically allTLcdFrequencyUnit
objects to consider in a JVM session. Typically, this method should be called in the main of the application.- Parameters:
aAllFrequencyUnitArray
- the frequency units to consider in a JVM session
-
toString
Returns the unit name.
-