cz.muni.fi.pb162.radio.parts
Class Speaker

java.lang.Object
  extended by cz.muni.fi.pb162.radio.parts.Speaker

public class Speaker
extends java.lang.Object

A speaker with ability to change the volume to change the volume to values from zero up to maximal volume

Version:
8.10.2009
Author:
¼.uboš Pecho, tomorrow@mail.muni.cz .

Constructor Summary
Speaker(int maxVolume)
          Constructor for speaker
 
Method Summary
 int getVolume()
           
 void setVolume(int volume)
          Set the volume of the speaker, if the value is out of range, it is ignored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Speaker

public Speaker(int maxVolume)
Constructor for speaker

Parameters:
maxVolume - desired maximal volume of the speaker
Method Detail

getVolume

public int getVolume()
Returns:
the volume of the speaker

setVolume

public void setVolume(int volume)
Set the volume of the speaker, if the value is out of range, it is ignored

Parameters:
volume -