|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--audiojury.domain.Judgement
Represents a judgement.
| Constructor Summary | |
Judgement()
Creates a new Judgement object. |
|
| Method Summary | |
void |
addSound(Sound sound)
Adds a Sound to the Judgement.
|
Score |
getScore()
Retrieves the score this Judgement has got. |
java.util.Vector |
getSounds()
A judgement can consist of one or two Sound objects.
|
boolean |
isPractice()
Checks if the Judgement is a practice or real judgement.
|
void |
setPractice(boolean jpractice)
Marks the Judgement as a practice or real judgement.
|
void |
setScore(Score score)
Assigns a score to the Judgement.
|
java.lang.String |
toString()
Returns a String with the names of the Sounds the Judgement contains.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Judgement()
Judgement object.
| Method Detail |
public boolean isPractice()
Judgement is a practice or real judgement.
Use this method to determine if this judgement is part of the set of
practice judgements that are presented before the real test starts.
public void setPractice(boolean jpractice)
Judgement as a practice or real judgement.
Use this method to make or unmake this judgement part of the practice set.
jpractice - Set to true if this judgement should be part of the practice set,
false otherwise.public void setScore(Score score)
Judgement.
This is called after a test subject has made his/her decision about the judgement.
score - The score of this judgement.public Score getScore()
Judgement has got.
public java.util.Vector getSounds()
Sound objects.
This method returns them in vector form.
Sound objects.public void addSound(Sound sound)
Sound to the Judgement.
Even though it is possible to add arbitrarily many,
it doesn't make sense to add more than one or two.
sound - A Sound object to add.public java.lang.String toString()
String with the names of the Sounds the Judgement contains.
The format of the string is "'name1' - 'name2' - 'name3'".
If no sounds exist the string "empty judgement" is returned.
toString in class java.lang.ObjectString with Sound names.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||