Commit 0c195680 authored by Xiaoying Pu's avatar Xiaoying Pu

for Trial class: the counting logic better lives in the ResponseListener

parent 8c83617e
......@@ -91,7 +91,8 @@ public class Trial extends Thread {
//TODO how does trial know??????????????
// TODO who calls the listener in this case?
// TODO: the counter may be happier if it lived here
actionQueue.add(new ShowDigitAction(ActionType.START_HWL_DIGIT));
......@@ -171,6 +172,7 @@ public class Trial extends Thread {
// check if there's yet another iteration
if (iterations.addAndGet(1) >= maxIteration) {
System.out.println("Interrupting show of digit task because enough trials have been run");
actionQueue.add(new QuitAction(ActionType.QUIT_TRIAL));
  • Important: How does this project know the workload information?

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