public static class vsearch.Trial
extends java.lang.Object
vsearch.DesignContainer| Modifier and Type | Field and Description |
|---|---|
int |
amountOfChars
The actual amount of characters used in calculations.
|
int |
amountOfFoils
This trial's amount of foil characters.
|
int |
amountOfTargets
The actual amount of targets used in calculations.
|
java.awt.Point[] |
charCoords
Character or foil foil coordinates.
|
java.lang.String[] |
generatedChars
This trial's generated characters.
|
java.lang.String |
generatedCharStr
Generetated char string.
|
int |
size
This trial's size / amount of letters
|
int |
sizeReal
the real size of the trial ie.
|
boolean |
suffled |
int |
targ
This trial's target character's index number
|
int |
targChar
This trial's target character
|
java.lang.String |
targCharReal
The string representation of target character.
|
int |
targColor
This trial's target character's color
|
java.lang.String |
targColorReal
The string representation of target's color.
|
java.awt.Point[] |
targetCoords
This trial's targets coordinates
|
int |
targetsReal
The actual amount of targets.
|
| Constructor and Description |
|---|
vsearch.Trial() |
vsearch.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 |
drawChars(java.awt.Graphics g)
Draws characters(symbols) across the screen.
|
void |
drawCircles(java.awt.Graphics g)
Draws circles across the screen.
|
void |
generateCharCoords()
Generates charcoords.
|
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 |
trialResponse1()
This function captures the time user had gone through when looking at the
symbols.
|
void |
trialResponse2()
When user clicks the second time this is called.
|
boolean |
userClicks(int x,
int y)
The hit test for user's click.
|
void |
userClicksNone()
This is called when user clicks the none-button.
|
public int targChar
public int targColor
public int size
public int targ
public java.lang.String targCharReal
public java.lang.String targColorReal
public int sizeReal
public int targetsReal
public java.lang.String[] generatedChars
public java.awt.Point[] charCoords
public int amountOfFoils
public java.awt.Point[] targetCoords
public int amountOfTargets
public int amountOfChars
public java.lang.String generatedCharStr
public boolean suffled
public vsearch.Trial()
public vsearch.Trial(int v1,
int v2,
int v3,
int v4)
v1 - target's character index. ie. 0=X, 1=O according targChars[]v2 - target's color index to usev3 - tells how much symbols are in this trial (sizes[index])v4 - tells how many symbols of this trial are targets. This is also index from table called targets[].public void setTrialNumber(int num)
num - The trial number.public void printLog()
public void trialResponse1()
public void trialResponse2()
public void userClicksNone()
public void checkCorrectness()
public boolean userClicks(int x,
int y)
x - mouse's x-coordinate.y - mouse's y-coordinate.public void generateCharCoords()
drawChars(Graphics g)public void drawChars(java.awt.Graphics g)
g - Graphics to draw the stuff.public void drawCircles(java.awt.Graphics g)
g - Graphics to draw the stuff.