Commit 63a151e9 authored by Xiaoying Pu's avatar Xiaoying Pu

tomorrow, tomorrow, tomorrow, tomorrow, always a day away

parent e3417478
......@@ -40,6 +40,24 @@ public class Decision {
private final String rand = "1";
public String getMixAtypical(String condition) {
String[] maleList = male.split(", ");
String[] femaleList = female.split(", ");
String[] artsList = arts.split(", ");
String[] scienceList = unsplitScience.split(", ");
List<String> result = new ArrayList<>();
result.add(typeChar);
// not the usual stereotypical association
int isArtsOrMale = ThreadLocalRandom.current().nextInt(0, 2);
int oneIsRight = ThreadLocalRandom.current().nextInt(0, 2);
int categoryChoice = ThreadLocalRandom.current().nextInt(0, 2);
String stimulus;
// TODO
return String.join(",", result);
}
/**
* Coding like a psychologist.
* type,stim,cond,rand,correct,default-compare,resp_1,resp_2
......
......@@ -12,7 +12,7 @@ import org.junit.Test;
* @author pxy
*/
public class DecisionTest {
public DecisionTest() {
}
......@@ -40,6 +40,7 @@ public class DecisionTest {
String expResult = "";
String result = instance.getCategory2(condition);
System.out.println(result);
}
/**
......@@ -52,6 +53,9 @@ public class DecisionTest {
String expResult = "";
String result = instance.getMixTypical("HWL");
System.out.println(result);
for (int i = 0; i < 10; i++) {
System.out.println(instance.getMixTypical("LWL"));
}
}
/**
......@@ -65,5 +69,5 @@ public class DecisionTest {
String result = instance.getBreak();
System.out.println(result);
}
}
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