wonderly.jeaprs.aprs.data
Class RadioFrequency

java.lang.Object
  |
  +--wonderly.jeaprs.aprs.data.RadioFrequency

public class RadioFrequency
extends java.lang.Object

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.

Version:
1.0
Author:
Gregg Wonderly - The information contained in this document is Copyright 2001-2003, Gregg Wonderly, all rights reserved.

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

radio

protected int radio

freq

protected long freq
Constructor Detail

RadioFrequency

public RadioFrequency(int radio,
                      long freq)
Construct an object

Parameters:
radio - the user defined radio index
freq - 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

getRadio

public int getRadio()
Get the radio index


getFreq

public long getFreq()
Get the frequency. This freq is an long integer, and specifies the exact frequency in cycles per second that the radio should be tuned to.