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
FieldsModifier and TypeFieldDescriptionstatic final TLcdFrequencyUnitGigaHertz.static final TLcdFrequencyUnitHertz.static final TLcdFrequencyUnitKiloHertz.static final TLcdFrequencyUnitMegaHertz. -
Method Summary
Modifier and TypeMethodDescriptionstatic TLcdFrequencyUnit[]Returns allTLcdFrequencyUnitobjects to consider in a JVM session.doubleReturns the factor to apply to convert a frequency expressed in theTLcdFrequencyUnitinto a frequency in hertz.Returns the name of theTLcdFrequencyUnit(e.g.Returns the short name of theTLcdFrequencyUnit(e.g.static voidsetAllFrequencyUnits(TLcdFrequencyUnit[] aAllFrequencyUnitArray) Sets statically allTLcdFrequencyUnitobjects 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 theTLcdFrequencyUnitinto a frequency in hertz.- Returns:
- the factor to apply to convert a frequency expressed in the
TLcdFrequencyUnitinto a frequency in hertz
-
getAllFrequencyUnits
Returns allTLcdFrequencyUnitobjects to consider in a JVM session.- Returns:
- all
TLcdFrequencyUnitobjects to consider in a JVM session
-
setAllFrequencyUnits
Sets statically allTLcdFrequencyUnitobjects 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.
-