Commit ff8302d0 authored by Xiaoying Pu's avatar Xiaoying Pu

what do you mean subscript out of range????

parent 50704d9d
......@@ -58,6 +58,10 @@ public class MouseTrackerFacade {
handleEvent(EventType.DECISION_FINISHED);
}
public void endExperiment(){
this.theController.endEntireExperiment();
}
public void addListener(EventListener listener) {
this.eventList.add(listener);
......
......@@ -73,6 +73,11 @@ public class PrimaryTaskController {
String breakMsg = this.theModel.getDecision(DecisionType.GETBREAK, state.toString());
this.udpHandle.sendTrialAndRecvResponse(breakMsg);
}
public void endEntireExperiment(){
this.udpHandle.endExperiment();
}
public void endDecision() {
this.timeIsUp = false;
......
......@@ -120,6 +120,7 @@ public class Trial extends Thread {
@Override
public void run() {
pFacade.endExperiment();
}
}
......@@ -162,6 +163,8 @@ public class Trial extends Thread {
actionQueue.add(new QuitAction(ActionType.QUIT_TRIAL));
return;
}
System.out.println("====================AT Trial " + iterations.get()+"======================");
// how ugly is this
if (type == ActionType.START_HWL_DIGIT
|| type == ActionType.START_LWL_DIGIT) {
......
......@@ -12,4 +12,4 @@ tPause = 4000
tDecisions = 30000
nTrials = 10
nTrials = 3
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