|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.A_Frequency<_TYPE_>
_TYPE_ - - the frequency type: VOR/DME and NDBpublic abstract class A_Frequency<_TYPE_ extends A_Frequency<?>>
Defines the shared aspects of a radio frequency.
| Field Summary | |
|---|---|
protected FrequencyComponent |
_frequencyMajor
the major component of the frequency (left of the decimal place). |
protected FrequencyComponent |
_frequencyMinor
the minor component of the frequency (right of the decimal place). |
| Constructor Summary | |
|---|---|
A_Frequency(FrequencyComponent frequencyMajor,
FrequencyComponent frequencyMinor)
Creates an abstract frequency object. |
|
| Method Summary | |
|---|---|
int |
compareTo(_TYPE_ frequency)
// xxx need to implement equals everywhere! |
java.lang.String |
formatString(int widthMajor,
int widthMinor)
Generates a string formatted to the major and minor ranges |
FrequencyComponent |
getFrequencyMajor()
Gets the major component of the frequency (left of the decimal place). |
FrequencyComponent |
getFrequencyMinor()
Gets the minor component of the frequency (right of the decimal place). |
double |
getValue_()
Returns the numerical value of this unit. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface uavsim.datatypes.I_Unitable |
|---|
add_, subtract_ |
| Field Detail |
|---|
protected FrequencyComponent _frequencyMajor
protected FrequencyComponent _frequencyMinor
| Constructor Detail |
|---|
public A_Frequency(FrequencyComponent frequencyMajor,
FrequencyComponent frequencyMinor)
frequencyMajor - - the major component of the frequency (left of the decimal place)frequencyMinor - - the minor component of the frequency (right of the decimal place)| Method Detail |
|---|
public int compareTo(_TYPE_ frequency)
compareTo in interface java.lang.Comparable<_TYPE_ extends A_Frequency<?>>
public java.lang.String formatString(int widthMajor,
int widthMinor)
widthMajor - - the number of digits in the major frequencywidthMinor - - the number of digits in the minor frequency
public FrequencyComponent getFrequencyMajor()
public FrequencyComponent getFrequencyMinor()
public double getValue_()
getValue_ in interface I_Unitable<_TYPE_ extends A_Frequency<?>>public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||