fr.cnes.sirius.patrius.tools.force.validation
Class Report

java.lang.Object
  extended by fr.cnes.sirius.patrius.tools.force.validation.Report

public final class Report
extends Object

Class to create the simulation report.

Since:
1.1
Version:
$Id: Report.java 17581 2017-05-10 12:47:31Z bignon $
Author:
Gerald Mercadier
Concurrency :
not thread safe

Method Summary
static void createReport(BufferedWriter buffer, List<String> variation, TreeMap<String,ArrayList<Double>> dataCompRef, double refThreshold)
          Method to create the html report.
protected static void createTable(BufferedWriter buf, String title, int rawN, int colN, List<String> var, ArrayList<Double> max, ArrayList<Double> mean, double threshold, List<String> lab)
          Method to create a table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createReport

public static void createReport(BufferedWriter buffer,
                                List<String> variation,
                                TreeMap<String,ArrayList<Double>> dataCompRef,
                                double refThreshold)
                         throws IOException
Method to create the html report.

Parameters:
buffer - the buffer
variation - the different cases that have been run
dataCompRef - comparison data (comparison with external reference)
refThreshold - threshold for comparison with external reference
Throws:
IOException - error with the buffer

createTable

protected static void createTable(BufferedWriter buf,
                                  String title,
                                  int rawN,
                                  int colN,
                                  List<String> var,
                                  ArrayList<Double> max,
                                  ArrayList<Double> mean,
                                  double threshold,
                                  List<String> lab)
                           throws IOException
Method to create a table.

Parameters:
buf - the buffer to write
title - title of the table
rawN - raw number
colN - column number
var - variation parameter
max - data to write (max values)
mean - data to write (mean values)
threshold - threshold used for comparisons
lab - labels to write in the table
Throws:
IOException - error with the buffer


Copyright © 2017 CNES. All Rights Reserved.