package innovimax.mixthem;

import innovimax.mixthem.arguments.Rule;

import java.util.List;

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

  final private int testId;
  final private List<String> params;

  public RuleRun(List<String> params) {
    this(-1, params);
  }
  
  public RuleRun(int testId, List<String> params) {
    this.testId = testId;
    this.params = params;
  }
  
  public boolean accept(int testId) {
    if (this.testId == -1) {
      return true;
    } else {
      return this.testId == testId;
    }
  }
  
  public List<String> getParams() {
    return this.params;
  }

}

@@ -91,16 +91,146 @@
 t;%0A%0A/**%0A
+* %3Cp%3EDescribes a specific test run for a rule.%3C/p%3E%0A* %3Cp%3EDepends on the rule, test runs may have some parameter values or not.%3C/p%3E%0A
 * @autho
@@ -349,16 +349,64 @@
 arams;%0A%0A
+  /*%0A  * Creates a rule run for all tests.%0A  */%0A
   public
@@ -459,27 +459,189 @@
 arams);%0A  %7D%0A
+%0A
   %0A
+  /*%0A  * Creates a rule run for a specific test.%0A  * @param testId The test identifier attached%0A  * @param params The list if parameter values for this run%0A  */%0A
   public Rul
@@ -732,26 +732,260 @@
 params;%0A  %7D%0A
+%0A
   
+/*%0A  * Returns true if the test is authorized for the run.%0A  * @param testId The test identifier attached%0A  * @param params The list if parameter values for this run%0A  * @return Returns true if the test is authorized for the run%0A  */
 %0A  public bo
@@ -1118,18 +1118,146 @@
   %7D%0A  %7D%0A
+%0A
   
+/*%0A  * Returns the list of parameter values for this run.%0A    * @return Returns the list of parameter values for this run.%0A  */
 %0A  publi

Update RuleRun.java