|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object becker.xtras.radio.Radio
public class Radio
A very simple radio that allows the frequency to be adjusted and provides a measure of the signal strength of the station being received, if there is one.
Please see the package description for a more in-depth discussion of using this class.
Constructor Summary | |
---|---|
Radio()
Construct a new Radio object. |
Method Summary | |
---|---|
double |
getFrequency()
Get this radio's current frequency. |
double |
getSignalStrength()
Get the strength of the signal currently being received. |
void |
setFrequency(double frequency)
Set this radio's current frequency. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Radio()
Method Detail |
---|
public void setFrequency(double frequency)
frequency
- The new frequency for this radio.public double getFrequency()
public double getSignalStrength()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |