Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms


com.k3xs.JHamTune
Interface JHTRadio

All Known Implementing Classes:
SimulatedJHTRadio, YaesuFT847

public interface JHTRadio

an interface implemented by drivers for each JHamTune supported radio.

Version:
1.0
Author:
Margaret Leber K3XS@arrl.net

Method Summary
 void connect()
          connect to the radio
 void disconnect()
          disconnect automatic control from the radio
 java.lang.String getDriverName()
           
 int getFreq()
           
 JHTMode getMode()
           
 java.lang.String getName()
           
 java.lang.String getPortName()
           
 java.util.Collection getRxBands()
           
 java.util.Collection getRxTxBands()
           
 int getSmeter()
           
 void setBand(JHTBand band)
          set mode and band limits from a JHTBand.
 void setFreq(int freq)
           
 void setMode(JHTMode mode)
           
 void setTone(JHTCTCSS tone)
           
 

Method Detail

connect

public void connect()
connect to the radio


disconnect

public void disconnect()
disconnect automatic control from the radio


setFreq

public void setFreq(int freq)
Parameters:
freq - tune the radio to this frequency in Hz.

setBand

public void setBand(JHTBand band)
set mode and band limits from a JHTBand.


getFreq

public int getFreq()
Returns:
the current frequency in Hz

setMode

public void setMode(JHTMode mode)
Parameters:
mode - set the radio to this modulation mode.

setTone

public void setTone(JHTCTCSS tone)
Parameters:
tone - set this CTCSS/PL tone encoding. (write only)

getMode

public JHTMode getMode()
Returns:
the current modulation mode

getSmeter

public int getSmeter()
Returns:
the current signal strength (S-meter reading expressed 0-31)

getDriverName

public java.lang.String getDriverName()
Returns:
the name for this radio

getPortName

public java.lang.String getPortName()
Returns:
the name for the port attaching this radio, or null if not connect()ed

getName

public java.lang.String getName()
Returns:
the name for this instance, usually driverName + " on " + port

getRxBands

public java.util.Collection getRxBands()
Returns:
a Collection of receive-only JHTBands

getRxTxBands

public java.util.Collection getRxTxBands()
Returns:
a Collection of transceive-capable JHTBands