comirva.web.ie.bandmembers
Class Band

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

 class Band
extends Object


Field Summary
(package private) static int rules
           
 
Constructor Summary
Band(String name)
           
Band(String name, Vector<BandMember>[] bm)
           
 
Method Summary
 Vector<BandMember>[] getBandMembers()
           
 Vector<String> getMembersForInstrument(Instrument instr)
          Returns the members playing the given Instrument.
 String getMostProbableMemberForInstrument(Instrument instr)
          Returns the most probable band member for a given instrument.
 String getName()
           
 void setBandMembers(Vector<BandMember>[] bandMembers)
           
 void setName(String name)
           
 void setOverallMemberAllOcc()
          Sets the overall members to all members remaining after DF filtering.
 void setOverallMemberMaxOcc()
          Calculates the most probable overall band members and stores them in bandMembers[0].
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rules

static int rules
Constructor Detail

Band

public Band(String name)

Band

public Band(String name,
            Vector<BandMember>[] bm)
Method Detail

getBandMembers

public Vector<BandMember>[] getBandMembers()

setBandMembers

public void setBandMembers(Vector<BandMember>[] bandMembers)

getName

public String getName()

setName

public void setName(String name)

getMostProbableMemberForInstrument

public String getMostProbableMemberForInstrument(Instrument instr)
                                          throws InvalidInstrumentException
Returns the most probable band member for a given instrument. It is assumed that setOverallMember() has already been executed.

Parameters:
i -
Returns:
Throws:
InvalidInstrumentException

getMembersForInstrument

public Vector<String> getMembersForInstrument(Instrument instr)
                                       throws InvalidInstrumentException
Returns the members playing the given Instrument. It is assumed that setOverallMember() has already been executed.

Parameters:
i -
Returns:
Throws:
InvalidInstrumentException

setOverallMemberMaxOcc

public void setOverallMemberMaxOcc()
Calculates the most probable overall band members and stores them in bandMembers[0]. For every instrument, only the member with the highest DF is taken.


setOverallMemberAllOcc

public void setOverallMemberAllOcc()
Sets the overall members to all members remaining after DF filtering. The overall members are stores in bandMembers[0].