java.lang.Objectcz.muni.fi.pb162.radio.Radio
public class Radio
FM radio with switch, speaker, one line 20 characters long display
Constructor Summary | |
---|---|
Radio(int maxVolume)
Constructor that creates new radio with its all parts |
Method Summary | |
---|---|
void |
decreaseVolume()
Decreases the volume of the radio by one point |
void |
increaseVolume()
Increases the volume of the radio by one point |
void |
setFrequency(double frequency)
Sets the frequency, on which the radio should receive signal. |
void |
turnOff()
Turns the radio off |
void |
turnOn()
Turns the radio on |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Radio(int maxVolume)
maxVolume
- the desired maximal volume of the radioMethod Detail |
---|
public void decreaseVolume()
public void increaseVolume()
public void setFrequency(double frequency)
frequency
- public void turnOff()
public void turnOn()