|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--audiojury.action.TestBuilder
Does operations on a Test.
The class implements the Singleton design pattern, which means
there is only one instance of this class. This is necessary to
make concurrent access to tests impossible.
The TestBuilder only operates on one test at a time.
Test| Method Summary | |
void |
addPractice(Judgement judg)
Add a Judgement to the set of practice judgements. |
void |
addPracticeFromReal(int realindex)
Takes a Judgement from the set of judgements to run "real" and
makes it part of the practice judgement set as well. |
void |
addReal(Judgement judg)
Add a Judgement to the Test. |
Test |
getCurrentTest()
Gets the Test currently being build on. |
TestMethod |
getMethod()
Gets the TestMethod of the current test. |
java.util.Vector |
getPracticeJudgements()
Retrieves a vector of the practice Judgements in the current Test. |
java.util.Vector |
getRealJudgements()
Retrieves a vector of the Judgements in the current Test. |
static TestBuilder |
getUniqueInstance()
Enforces the Singleton design pattern by always returning the same instance of TestBuilder. |
void |
removePractice(int index)
Remove a Judgement from the set of practice judgements. |
void |
removeReal(int index)
Remove a Judgement from the Test. |
void |
setCurrentTest(Test test)
Sets which Test to build on. |
void |
setInstructions(Instruction instr)
Assigns an Instruction to the current project. |
void |
setInterMode(int imode)
Sets the interaction mode. |
void |
setMethod(TestMethod method)
Set TestMethodof this Test. |
void |
setRandomizeJudgements(boolean rnd)
Sets the Judgement randomization mode. |
void |
setRandomizePairs(boolean rnd)
Sets the pair randomization mode. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public Test getCurrentTest()
Test currently being build on.
Test currently being build on.public TestMethod getMethod()
TestMethod of the current test.
TestMethod of the current test.public void setCurrentTest(Test test)
Test to build on.
test - The Test to set as current.public void addReal(Judgement judg)
Judgement to the Test.
judg - A judgeJudgement ment to add.public void removeReal(int index)
Judgement from the Test.
index - Index to the Judgement to remove.public java.util.Vector getRealJudgements()
Judgements in the current Test.
Judgements in the current Test.public void addPractice(Judgement judg)
Judgement to the set of practice judgements.
judg - A Judgement to add.public void removePractice(int index)
Judgement from the set of practice judgements.
index - Index to the Judgement to remove.public java.util.Vector getPracticeJudgements()
Judgements in the current Test.
Judgements.public void setInterMode(int imode)
imode - The desired mode.public void setRandomizePairs(boolean rnd)
Judgements the first and second sounds in the pair are
randomly swapped when the Project is run.
rnd - Set to true to enable pair randomization, false to disable.public void setRandomizeJudgements(boolean rnd)
Judgement randomization mode. If the randomization mode is on
the order of judgements is randomized.
rnd - Set to true to enable Judgement randomization, false to disable.public void setMethod(TestMethod method)
TestMethodof this Test. (ACR, CCR, DCR etc)
method - The desired TestMethod.public void setInstructions(Instruction instr)
Instruction to the current project.
instr - The Instruction to set.public void addPracticeFromReal(int realindex)
Judgement from the set of judgements to run "real" and
makes it part of the practice judgement set as well.
realindex - Index to the Judgement in the real set.public static TestBuilder getUniqueInstance()
TestBuilder. This should be used instead of
a constructor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||