cic.wsd.testing
Class XLSWriter

java.lang.Object
  extended by cic.wsd.testing.XLSWriter

public final class XLSWriter
extends java.lang.Object

Class for writing the test result in XLS format.

Author:
Francisco Viveros-Jiménez

Field Summary
(package private) static jxl.write.WritableCellFormat boldnumber
           
(package private) static jxl.write.WritableCellFormat number
           
 
Constructor Summary
XLSWriter()
           
 
Method Summary
private static void addDecisionsDetailSheet(jxl.write.WritableSheet sheet, java.util.ArrayList<Test> tests)
          Writes a decision detail sheet.
private static void addDecisionsSumSheet(jxl.write.WritableSheet sheet, java.util.ArrayList<Test> tests)
          Writes a summary of the decisions made.
private static void addHeader(jxl.write.WritableSheet sheet, java.util.ArrayList<Test> tests)
          Sheet describing the file contents.
private static void addMiscSheet(jxl.write.WritableSheet sheet, java.util.ArrayList<Test> tests)
          Adds a sheet with some interesting summaries.
private static void addPerformanceSheet(jxl.write.WritableSheet sheet, java.util.ArrayList<Test> tests)
          Writes a summary of the performance of the algorithm.
private static void addProblemSummary(jxl.write.WritableSheet sheet, java.util.ArrayList<Test> tests)
          Generates a summary of the lemmas on the test-bed
static void writeXLS(java.io.File file, java.util.ArrayList<Test> tests, boolean detailed)
          Writes an XLS file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

number

static jxl.write.WritableCellFormat number

boldnumber

static jxl.write.WritableCellFormat boldnumber
Constructor Detail

XLSWriter

public XLSWriter()
Method Detail

writeXLS

public static void writeXLS(java.io.File file,
                            java.util.ArrayList<Test> tests,
                            boolean detailed)
                     throws java.lang.Exception
Writes an XLS file.

Parameters:
file - File to be created.
tests - The tests to be included in the file.
detailed - Tells if a decisions detail sheet will be added to the document.
Throws:
java.lang.Exception

addHeader

private static void addHeader(jxl.write.WritableSheet sheet,
                              java.util.ArrayList<Test> tests)
                       throws java.lang.Exception
Sheet describing the file contents.

Parameters:
sheet - The sheet to be filled.
tests - Tests included in this file.
Throws:
java.lang.Exception

addDecisionsDetailSheet

private static void addDecisionsDetailSheet(jxl.write.WritableSheet sheet,
                                            java.util.ArrayList<Test> tests)
                                     throws java.lang.Exception
Writes a decision detail sheet. This sheet contains a more detailed explanation of how decisions were made.

Parameters:
sheet - The sheet to be created.
tests - Data for creating the sheet.
Throws:
java.lang.Exception

addDecisionsSumSheet

private static void addDecisionsSumSheet(jxl.write.WritableSheet sheet,
                                         java.util.ArrayList<Test> tests)
                                  throws java.lang.Exception
Writes a summary of the decisions made.

Parameters:
sheet - The sheet to write to.
tests - Data for creating the sheet.
Throws:
java.lang.Exception

addProblemSummary

private static void addProblemSummary(jxl.write.WritableSheet sheet,
                                      java.util.ArrayList<Test> tests)
                               throws java.lang.Exception
Generates a summary of the lemmas on the test-bed

Parameters:
sheet - The sheet to write to.
tests - Data for creating the sheet.
Throws:
java.lang.Exception

addPerformanceSheet

private static void addPerformanceSheet(jxl.write.WritableSheet sheet,
                                        java.util.ArrayList<Test> tests)
                                 throws java.lang.Exception
Writes a summary of the performance of the algorithm.

Parameters:
sheet - The sheet to write to.
tests - Data for creating the sheet.
Throws:
java.lang.Exception

addMiscSheet

private static void addMiscSheet(jxl.write.WritableSheet sheet,
                                 java.util.ArrayList<Test> tests)
                          throws java.lang.Exception
Adds a sheet with some interesting summaries.

Parameters:
sheet - The sheet to be filled.
tests - The tests to be included on this file.
Throws:
java.lang.Exception