public static class fourchoice.Trial
extends java.lang.Object
fourchoice.DesignContainer| Modifier and Type | Field and Description |
|---|---|
boolean |
suffled |
| Constructor and Description |
|---|
fourchoice.Trial() |
fourchoice.Trial(int v1,
int v2,
int v3,
int v4)
The constructor for trial.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkCorrectness()
This function checks the correctness of user's answer.
|
void |
drawShapes(java.awt.Graphics g)
Draws shapes of the trial.
|
void |
printLog()
Log the results into debug or file according subject's number.
|
void |
setTrialNumber(int num)
Set the trialNumber -variable of this trial which tells this trials index.
|
void |
trialResponse()
This captures the time user went choosing the answer.
|
boolean |
userPressedKey(int keyCode)
The user had pressed a key.
|
public fourchoice.Trial()
public fourchoice.Trial(int v1,
int v2,
int v3,
int v4)
v1 - . .v2 - .. ..v3 - ... ...v4 - .... ....public void setTrialNumber(int num)
num - The trial number.public void printLog()
public void trialResponse()
fourchoice.getTestTimeMs(),
fourchoice.getScreenTimeMs(),
#trialResponse2()public void checkCorrectness()
public boolean userPressedKey(int keyCode)
keyCode - the key code user pressedpublic void drawShapes(java.awt.Graphics g)
g - Graphics to draw the stuff.