Commit 144c637c authored by Xiaoying Pu's avatar Xiaoying Pu

spotted one little bug.... but how does Trial know HWL/LWL????

parent 3e21274b
......@@ -12,14 +12,11 @@ import tracker.MouseTrackerFacade;
/**
* A Trial involves: 1 display, hide the digit, 2 Give MouseTracker stimulus and
* wait for user response, 3 let user recall digit. There are N trials in the
* experiment.
* experiment, but this Trial object loops
*
* @author Xiaoying Pu <xp002@bucknell.edu>
*/
public class Trial extends Thread {
/*
* TODO or all the Trials run in here
*/
/**
* Secondary task, digit task, facade
......@@ -87,7 +84,8 @@ public class Trial extends Thread {
sFacade.startRecallingDigit();
break;
case DIGITINPUT_FINISHED:
actionQueue.add(new QuitAction(ActionType.QUIT_TRIAL));
//TODO how does trial know??????????????
actionQueue.add(new ShowDigitAction(ActionType.START_HWL_DIGIT));
break;
default:
......@@ -179,7 +177,6 @@ public class Trial extends Thread {
// start UDP to MouseTracker
pFacade.startAndWait(curState);
}
//TODO: add sleep to action queue
int tTask = Configurator.gettSTask();
try {
......@@ -190,9 +187,8 @@ public class Trial extends Thread {
// immediately after
sFacade.endDigitShowing();
System.out.println("Digit should go away now");
// YOOOOOO the UDHHander constructor blocked!!!!!!!!!!
// TODO make that setup method public and give it an action type
// yooo end digit showing
// go look at the mousetracker!!!
actionQueue.add(new SleepForDecisions(ActionType.SLEEP_FOR_DECISIONS));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment