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


com.k3xs.JHamTune
Class SimulatedJHTRadio

java.lang.Object
  extended bycom.k3xs.JHamTune.SimulatedJHTRadio
All Implemented Interfaces:
JHTRadio

public class SimulatedJHTRadio
extends java.lang.Object
implements JHTRadio

JHamTune driver for a simulated radio.

Version:
1.0 Useful for software testing when you don't have a supported radio
Author:
Margaret Leber k3xs@arrl.net

Constructor Summary
SimulatedJHTRadio()
           
 
Method Summary
 void connect()
          connect to the radio
 void disconnect()
          disconnect automatic control from the radio
 void finalize()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulatedJHTRadio

public SimulatedJHTRadio()
Method Detail

finalize

public void finalize()

connect

public void connect()
Description copied from interface: JHTRadio
connect to the radio

Specified by:
connect in interface JHTRadio

disconnect

public void disconnect()
Description copied from interface: JHTRadio
disconnect automatic control from the radio

Specified by:
disconnect in interface JHTRadio

setFreq

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

setBand

public void setBand(JHTBand band)
Description copied from interface: JHTRadio
set mode and band limits from a JHTBand.

Specified by:
setBand in interface JHTRadio

setMode

public void setMode(JHTMode mode)
Specified by:
setMode in interface JHTRadio
Parameters:
mode - set the radio to this modulation mode.

setTone

public void setTone(JHTCTCSS tone)
Specified by:
setTone in interface JHTRadio
Parameters:
tone - set this CTCSS/PL tone encoding. (write only)

getSmeter

public int getSmeter()
Specified by:
getSmeter in interface JHTRadio
Returns:
the current signal strength (S-meter reading expressed 0-31)

getFreq

public int getFreq()
Specified by:
getFreq in interface JHTRadio
Returns:
the current frequency in Hz

getMode

public JHTMode getMode()
Specified by:
getMode in interface JHTRadio
Returns:
the current modulation mode

getRxBands

public java.util.Collection getRxBands()
Specified by:
getRxBands in interface JHTRadio
Returns:
a Collection of receive-only JHTBands

getRxTxBands

public java.util.Collection getRxTxBands()
Specified by:
getRxTxBands in interface JHTRadio
Returns:
a Collection of transceive-capable JHTBands

getDriverName

public java.lang.String getDriverName()
Specified by:
getDriverName in interface JHTRadio
Returns:
the name for this radio

getPortName

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

getName

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