|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--audiojury.domain.Scale
Represents a scale used for grading Sounds in Judgements.
| Constructor Summary | |
Scale()
Creates a new Scale object. |
|
| Method Summary | |
void |
addScore(Score score)
Adds a Score to the scale. |
boolean |
equals(Scale scale)
Compares a Scale to this scale. |
java.lang.String |
getHeader()
Gets the header of the scale. |
java.lang.String |
getName()
Gets the name of the scale. |
java.util.Vector |
getScores()
Retrives a list of all the Scores in the scale. |
TestMethod[] |
getTestMethod()
Gets the TestMethods that is used. |
boolean |
hasTestMethod(TestMethod method)
Checks whether a particular TestMethod was assigned to the Scale. |
boolean |
hasZero()
Checks if the zero is included in the values of the scale. |
void |
setHeader(java.lang.String sheader)
Sets the header of the scale. |
void |
setName(java.lang.String scalename)
Sets the name of the scale. |
void |
setTestMethods(TestMethod[] methods)
Sets the TestMethods that will be used. |
java.lang.String |
toString()
Converts the Scale to an String object.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Scale()
| Method Detail |
public void setTestMethods(TestMethod[] methods)
TestMethods that will be used.
methods - an array containing the TestMethods that will be used.public TestMethod[] getTestMethod()
TestMethods that is used.
TestMethods that is used.public boolean hasTestMethod(TestMethod method)
TestMethod was assigned to the Scale.
method - the TestMethod to check for.
TestMethod in the set of used test methods in the scale.public boolean equals(Scale scale)
Scale to this scale.
scale - the Scale to compare with.
boolean indicating if the indeed where equal.public java.lang.String toString()
Scale to an String object.
Gives the name of the scale.
toString in class java.lang.ObjectString representing the scale.public java.lang.String getName()
scale.
String with the name of the scale.public void setName(java.lang.String scalename)
scale.
scalename - String with the new name for the scale.public java.lang.String getHeader()
scale.
String with the header used by the scale.public void setHeader(java.lang.String sheader)
scale.
sheader - String with the new header for the scale.public boolean hasZero()
scale.
boolean indicating if the number zero is included in the scale.public java.util.Vector getScores()
Scores in the scale.
Vector containing all Score objects in the scale.public void addScore(Score score)
Score to the scale.
score - the Score to add to the scale.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||