package org.uma.jmetal.lab.experiment.component;

import org.uma.jmetal.lab.experiment.Experiment;
import org.uma.jmetal.lab.experiment.ExperimentComponent;
import org.uma.jmetal.lab.visualization.StudyVisualizer;
import org.uma.jmetal.solution.Solution;

import java.io.IOException;
import java.util.List;

public class GenerateHtmlPages<Result extends List<? extends Solution<?>>> implements ExperimentComponent {

    private final Experiment<?, Result> experiment;

    public GenerateHtmlPages(Experiment<?, Result> experimentConfiguration) {
        this.experiment = experimentConfiguration;
    }

    @Override
    public void run() throws IOException {

        String directory = experiment.getExperimentBaseDirectory();

        StudyVisualizer visualizer = new StudyVisualizer(directory, StudyVisualizer.SHOW_BEST_FRONTS);

        visualizer.createHTMLPageForEachIndicator();

    }
}

@@ -301,16 +301,233 @@
 .List;%0A%0A
+/**%0A * This class executes a StudyVisualizer on the experiment provided.%0A *%0A * %3Cp%3EThe results are created in in the directory %7B@link Experiment *%0A * #getExperimentBaseDirectory()%7D/html.%0A *%0A * @author Javier P%C3%A9rez%0A */%0A
 public c
@@ -592,16 +592,20 @@
 ion%3C?%3E%3E%3E
+%0A   
  impleme
@@ -633,18 +633,16 @@
 nt %7B%0A%0A  
- 
- 
 private 
@@ -682,18 +682,16 @@
 iment;%0A%0A
-  
   public
@@ -762,20 +762,16 @@
 ) %7B%0A    
- 
-   
 this.exp
@@ -811,15 +811,11 @@
 ;%0A  
- 
- 
 %7D%0A%0A
-  
   @O
@@ -822,18 +822,16 @@
 verride%0A
-  
   public
@@ -863,25 +863,20 @@
 ption %7B%0A
-%0A  
     
-  
 String d
@@ -927,21 +927,16 @@
 tory();%0A
-%0A    
     Stud
@@ -1026,21 +1026,16 @@
 RONTS);%0A
-%0A
-    
     visu
@@ -1075,17 +1075,14 @@
 ator();%0A
-%0A  
   %7D%0A%7D%0A

Document GenerateHtmlPages