M21Code / ProcessingVideo / loadLists.pde
loadLists.pde
Raw
void lists() {
  //Make the lists for the order of videos for the participants  
  Inventories = new IntList[p];
  Inventories[0] = new IntList(3, 6, 9, 5, 8, 0, 11, 1, 7, 2, 4, 10);
  Inventories[1] = new IntList(0, 6, 9, 5, 11, 3, 8, 2, 4, 1, 7, 10);
  Inventories[2] = new IntList(2, 4, 10, 6, 9, 1, 8, 3, 7, 0, 5, 11);
  Inventories[3] = new IntList(0, 5, 10, 6, 8, 2, 11, 3, 7, 1, 4, 9);
  Inventories[4] = new IntList(5, 9, 0, 10, 2, 4, 1, 7, 11, 6, 8, 3);
  Inventories[5] = new IntList(4, 11, 0, 10, 1, 5, 3, 6, 8, 7, 9, 2);
  Inventories[6] = new IntList(7, 10, 3, 11, 2, 4, 1, 6, 9, 5, 8, 0);
  Inventories[7] = new IntList(6, 10, 1, 8, 3, 7, 0, 4, 9, 5, 11, 2);
  Inventories[8] = new IntList(8, 3, 6, 2, 5, 10, 7, 9, 0, 11, 1, 4);
  Inventories[9] = new IntList(9, 1, 4, 0, 7, 11, 6, 10, 2, 8, 3, 5);
  Inventories[10] = new IntList(9, 3, 6, 2, 4, 8, 7, 10, 1, 11, 0, 5);
  Inventories[11] = new IntList(8, 0, 6, 1, 4, 11, 5, 10, 2, 9, 3, 7);

  //make the lists for the order of vibrotactile modes for the participants
  Orders = new IntList[p];
  Orders[0] = new IntList(0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3);
  Orders[1] = new IntList(1, 1, 1, 2, 2, 2, 3, 3, 3, 0, 0, 0);
  Orders[2] = new IntList(2, 2, 2, 3, 3, 3, 0, 0, 0, 1, 1, 1);
  Orders[3] = new IntList(3, 3, 3, 0, 0, 0, 1, 1, 1, 2, 2, 2);
  Orders[4] = new IntList(0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3);
  Orders[5] = new IntList(1, 1, 1, 2, 2, 2, 3, 3, 3, 0, 0, 0);
  Orders[6] = new IntList(2, 2, 2, 3, 3, 3, 0, 0, 0, 1, 1, 1);
  Orders[7] = new IntList(3, 3, 3, 0, 0, 0, 1, 1, 1, 2, 2, 2);
  Orders[8] = new IntList(0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3);
  Orders[9] = new IntList(1, 1, 1, 2, 2, 2, 3, 3, 3, 0, 0, 0);
  Orders[10] = new IntList(2, 2, 2, 3, 3, 3, 0, 0, 0, 1, 1, 1);
  Orders[11] = new IntList(3, 3, 3, 0, 0, 0, 1, 1, 1, 2, 2, 2);

  //make the lists for the temperatures per participant
  Temps = new IntList[p];
  Temps[0] = new IntList(0, 0, 0, 30, 40, 20, 40, 40, 40, 20, 20, 20);
  Temps[1] = new IntList(20, 30, 40, 40, 40, 40, 20, 20, 20, 0, 0, 0);
  Temps[2] = new IntList(40, 40, 40, 20, 20, 20, 0, 0, 0, 20, 30, 40);
  Temps[3] = new IntList(20, 20, 20, 0, 0, 0, 40, 20, 30, 40, 40, 40);
  Temps[4] = new IntList(0, 0, 0, 40, 20, 30, 40, 40, 40, 20, 20, 20);
  Temps[5] = new IntList(30, 40, 20, 40, 40, 40, 20, 20, 20, 0, 0, 0);
  Temps[6] = new IntList(40, 40, 40, 20, 20, 20, 0, 0, 0, 30, 40, 20);
  Temps[7] = new IntList(20, 20, 20, 0, 0, 0, 20, 30, 40, 40, 40, 40);
  Temps[8] = new IntList(0, 0, 0, 20, 30, 40, 40, 40, 40, 20, 20, 20);
  Temps[9] = new IntList(40, 20, 30, 40, 40, 40, 20, 20, 20, 0, 0, 0);
  Temps[10] = new IntList(40, 40, 40, 20, 20, 20, 0, 0, 0, 40, 20, 30);
  Temps[11] = new IntList(20, 20, 20, 0, 0, 0, 30, 40, 20, 40, 40, 40);
}