|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--wonderly.jeaprs.aprs.data.RadioFrequency
This class encapsulates a specification for a radio (by index) and an associated frequency. A satellite tracking module might generate these objects and use APRS.setRadioFrequency() as SATs come and go. The user would tell such a tracking module what radio handled that traffic. Another module that knows how to QSY a particular brand radio would be provided and configured by the user to recognize property change events for a particular radio by index, and take the frequency and tune that radio to that frequency. The frequency is in one-hundredths of cycles per second so that all values can be specified in an integer format that will be compatible with platforms, such as the J2ME CLDC, that do not support floating point.
Field Summary | |
protected long |
freq
|
protected int |
radio
|
Constructor Summary | |
RadioFrequency(int radio,
long freq)
Construct an object |
Method Summary | |
long |
getFreq()
Get the frequency. |
int |
getRadio()
Get the radio index |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int radio
protected long freq
Constructor Detail |
public RadioFrequency(int radio, long freq)
radio
- the user defined radio indexfreq
- the frequency to associate/set on the indicated radio.
This freq is an long integer, and specifies the exact
the exact frequency in one-hundredths of cycles per
second that the radio should be tuned to. So, 144.390Mhz
should be specified using the value 14439000000.Method Detail |
public int getRadio()
public long getFreq()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |