|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--audiojury.domain.Test
Representation of a test within a Project
.
Field Summary | |
static int |
DELETED
|
static int |
INTER_AUTO
|
static int |
INTER_INTER
|
static int |
NEW
|
static int |
RENAMED
|
static int |
TMP
|
static int |
VIRGIN
|
Constructor Summary | |
Test()
Creates a new Test object. |
Method Summary | |
void |
addPractice(Judgement judg)
Adds a Judgement to the list of practice judgements in the test . |
void |
addReal(Judgement judg)
Adds a Judgement to the list of real judgements in the test . |
Instruction |
getInstructions()
Gets the Instrucion of the Test . |
int |
getInterMode()
Gets the interaction mode that the Test is set to use.
|
TestMethod |
getMethod()
Gets the TestMethod used by the Test . |
java.lang.String |
getName()
Gets the name of the Test . |
java.lang.String |
getOldName()
Gets the old name of the Test . |
TestOrigin |
getOrigin()
Gets the TestOrigin of the Test . |
java.util.Vector |
getPracticeJudgements()
Retrieves a list of all the real Judgement s in the Test . |
boolean |
getRandomizeJudgements()
Checks if the Judgement s within the Test should be randomized or not. |
boolean |
getRandomizePairs()
Checks if the Sound s within a PairedJudgement should be randomized or not. |
java.util.Vector |
getRealJudgements()
Retrieves a list of all the real Judgement s in the Test . |
int |
getStatus()
Gets the status of the Test .
|
java.lang.String |
getStatusString()
Gets the status of the Test in form of a String . |
Scale |
getTestScale()
Gets the Scale used in the Test . |
void |
randomJudgements()
Randomizes the Judgement s within the Test .
|
void |
randomPairs()
Randomizes the order of the Sound s in any PairedJudgement s within the Test .
|
void |
removePractice(int index)
Removes a specific Judgement from the list of pratice judgements.
|
void |
removeReal(int index)
Removes a specific Judgement from the list of real judgements.
|
void |
setInstructions(Instruction inst)
Assigns new Instruction to the Test . |
void |
setInterMode(int imode)
Sets the interaction mode that the Test will use.
|
void |
setMethod(TestMethod tmethod)
Sets the TestMethod used by the Test . |
void |
setName(java.lang.String tname)
Sets name the for the Test . |
void |
setOldName(java.lang.String name)
Sets the old name for the Test . |
void |
setOrigin(TestOrigin orig)
Sets the TestOrigin of the Test . |
void |
setPracticeJudgements(java.util.Vector judgements)
Sets all the practice Judgement s in the Test to a supplied list.
|
void |
setRandomizeJudgements(boolean rnd)
Sets the randomization of the Judgement s within the Test . |
void |
setRandomizePairs(boolean rnd)
Sets the randomization of the Sound s within a PairedJudgement . |
void |
setRealJudgements(java.util.Vector judgements)
Sets all the real Judgement s in the Test to a supplied list.
|
void |
setStatus(int stat)
Sets the status of the Test .
|
void |
setTestScale(Scale scale)
Sets the Scale used in the Test . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int VIRGIN
public static final int NEW
public static final int RENAMED
public static final int DELETED
public static final int TMP
public static final int INTER_AUTO
public static final int INTER_INTER
Constructor Detail |
public Test()
Test
object.
Method Detail |
public java.lang.String getName()
Test
.
public void setName(java.lang.String tname)
Test
.
tname
- the new name of the test.public boolean getRandomizePairs()
Sound
s within a PairedJudgement
should be randomized or not.
boolean
indicating if the Sound
s within a PairedJudgement
should be randomized.public boolean getRandomizeJudgements()
Judgement
s within the Test
should be randomized or not.
boolean
indicating if the Judgement
s within the test should be randomized.public void setRandomizePairs(boolean rnd)
Sound
s within a PairedJudgement
.
rnd
- True to turn on randomization of pairs, false to turn it of.public void setRandomizeJudgements(boolean rnd)
Judgement
s within the Test
.
rnd
- True to turn on randomization of judgements, false to turn it of.public int getInterMode()
Test
is set to use.
It can either be INTER_AUTO or INTER_INTER, both are
public static final integers defined in this class.
public void setInterMode(int imode)
Test
will use.
It can either be INTER_AUTO or INTER_INTER, both are
public static final integers defined in this class.
imode
- integer corresponding to the new interaction mode.public Instruction getInstructions()
Instrucion
of the Test
.
Instrucion
that the test is set to use.public void setInstructions(Instruction inst)
Instruction
to the Test
.
inst
- the new Instrucion
for the test.public void addReal(Judgement judg)
Judgement
to the list of real judgements in the test
.
judg
- the Judgement
to add to the list.public void removeReal(int index)
Judgement
from the list of real judgements.
Selection of which jugement to remove is based on the supplied index integer.
index
- index to select which Judgement
to remove.public java.util.Vector getRealJudgements()
Judgement
s in the Test
.
Vector
containing all the real Judgement
s in the test.public void setRealJudgements(java.util.Vector judgements)
Judgement
s in the Test
to a supplied list.
Note, this will remove all the previous defined real judgements from this test.
judgements
- Vector
containing the new Judgement
s to use.public void addPractice(Judgement judg)
Judgement
to the list of practice judgements in the test
.
judg
- the Judgement
to add to the list.public void removePractice(int index)
Judgement
from the list of pratice judgements.
Selection of which jugement to remove is based on the supplied index integer.
index
- index to select which Judgement
to remove.public java.util.Vector getPracticeJudgements()
Judgement
s in the Test
.
Vector
containing all the practice Judgement
s in the test.public void setPracticeJudgements(java.util.Vector judgements)
Judgement
s in the Test
to a supplied list.
Note, this will remove all the previous defined practice judgements from this test.
judgements
- Vector
containing the new Judgement
s to use.public int getStatus()
Test
.
The different statuses are defined in this class as public static final integers,
and theay are called "VIRGIN", "TMP", "NEW", "RENAMED" and "DELETED".
public java.lang.String getStatusString()
Test
in form of a String
.
String
representing the status of the test.public void setStatus(int stat)
Test
.
The different statuses are defined in this class as public static final integers,
and theay are called "VIRGIN", "TMP", "NEW", "RENAMED" and "DELETED".
stat
- integer corresponding to the status of the test.public Scale getTestScale()
Scale
used in the Test
.
Scale
used in the test.public void setTestScale(Scale scale)
Scale
used in the Test
.
scale
- the Scale
used in the test.public TestMethod getMethod()
TestMethod
used by the Test
.
TestMethod
used by the test.public void setMethod(TestMethod tmethod)
TestMethod
used by the Test
.
tmethod
- TestMethod
that the test will use.public TestOrigin getOrigin()
TestOrigin
of the Test
.
TestOrigin
of the test.public void setOrigin(TestOrigin orig)
TestOrigin
of the Test
.
orig
- the TestOrigin
for the test.public java.lang.String getOldName()
Test
.
public void setOldName(java.lang.String name)
Test
.
name
- String
with the old name.public void randomJudgements()
Judgement
s within the Test
.
Both the set of practice and real judgements are randomized, but not mixed.
public void randomPairs()
Sound
s in any PairedJudgement
s within the Test
.
Both the set of practice and real judgements are affected.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |