comirva.web.ie.bandmembers
Class Instrument

java.lang.Object
  extended by comirva.web.ie.bandmembers.Instrument

 class Instrument
extends Object


Field Summary
(package private) static String[] instruments
           
 
Constructor Summary
Instrument(String name)
           
Instrument(String name, int frequency)
           
 
Method Summary
 int getFrequency()
           
 String getInstrument()
           
 boolean isValidInstrument()
           
 void setFrequency(int frequency)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instruments

static String[] instruments
Constructor Detail

Instrument

public Instrument(String name,
                  int frequency)
           throws InvalidInstrumentException
Throws:
InvalidInstrumentException

Instrument

public Instrument(String name)
           throws InvalidInstrumentException
Throws:
InvalidInstrumentException
Method Detail

isValidInstrument

public boolean isValidInstrument()

getInstrument

public String getInstrument()

getFrequency

public int getFrequency()

setFrequency

public void setFrequency(int frequency)