comirva.web.ie.bandmembers
Class Band
java.lang.Object
comirva.web.ie.bandmembers.Band
class Band
- extends Object
Field Summary |
(package private) static int |
rules
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rules
static int rules
Band
public Band(String name)
Band
public Band(String name,
Vector<BandMember>[] bm)
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].