package innovimax.mixthem;

import innovimax.mixthem.arguments.Rule;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
* @author Innovimax
* @version 1.0
*/
public class RuleRuns {

  final private Map<Rule, List<List<String>>> runMap;

  public RuleRuns() {
    runMap = new HashMap<Rule, List<List<String>>>();
    for (Rule rule : Rule.values()) {
      List<List<String>> runs = new ArrayList<List<String>>();
      if (rule.hasParams()) {
        switch (rule) {
          case _RANDOM_ALT_LINE:
            runs.add(Collections.emptyList());
            runs.add(Collections.singletonList("1789"));
            break;
          case _JOIN:
            runs.add(Collections.emptyList());
            runs.add(Collections.singletonList("1"));
            runs.add(Arrays.asList("2", "1"));
            break;
	}
      } else {
        runs.add(Collections.emptyList());
      }
      runMap.put(rule, runs);
    }
  }

  public List<List<String>> getRuns(Rule rule) {
    return runMap.get(rule);
  }

}

@@ -316,28 +316,23 @@
 e, List%3C
-List%3CString%3E
+RuleRun
 %3E%3E runMa
@@ -393,28 +393,23 @@
 e, List%3C
-List%3CString%3E
+RuleRun
 %3E%3E();%0A  
@@ -455,28 +455,23 @@
    List%3C
-List%3CString%3E
+RuleRun
 %3E runs =
@@ -485,28 +485,23 @@
 rayList%3C
-List%3CString%3E
+RuleRun
 %3E();%0A   
@@ -597,32 +597,47 @@
        runs.add(
+new RuleRun(1, 
 Collections.empt
@@ -636,32 +636,33 @@
 ons.emptyList())
+)
 ;%0A            ru
@@ -660,32 +660,47 @@
        runs.add(
+new RuleRun(1, 
 Collections.sing
@@ -717,16 +717,17 @@
 %221789%22))
+)
 ;%0A      
@@ -774,32 +774,47 @@
        runs.add(
+new RuleRun(3, 
 Collections.empt
@@ -817,25 +817,38 @@
 emptyList())
-;
+);            
 %0A           
@@ -861,39 +861,48 @@
 add(
-Collections.singleton
+new RuleRun(4, Arrays.as
 List(
+%222%22, 
 %221%22))
+)
 ;%0A  
@@ -924,32 +924,55 @@
 add(
-Arrays.as
+new RuleRun(5, Collections.singleton
 List(
-%222%22, 
 %221%22))
+)
 ;%0A  
@@ -1023,16 +1023,27 @@
 uns.add(
+new RulRun(
 Collecti
@@ -1058,16 +1058,17 @@
 yList())
+)
 ;%0A      

Update RuleRuns.java