infomat.mro
Class ExperimentResultGenerator

java.lang.Object
  extended by infomat.mro.ExperimentResultGenerator
All Implemented Interfaces:
HasProperties

public class ExperimentResultGenerator
extends java.lang.Object
implements HasProperties

NOT WORKING IN VERSION 080828 Class for summing up an experiment.

java -cp .:classes/ -Xms3024m -Xmx3024m infomat.ExperimentResultGenerator


Nested Class Summary
private  class ExperimentResultGenerator.Info
          Private class for storing info for each directory.
private  class ExperimentResultGenerator.InfoPool
          Private class for storing info for each directory.
 
Field Summary
private  java.lang.String[] columnTitles
           
(package private)  ExperimentResultGenerator.InfoPool infoPool
           
private  java.lang.String[][] pathMatrix1
           
private  java.lang.String[][] pathMatrix2
           
private  java.lang.String[][] pathMatrix3
           
private  java.lang.String[][] pathMatrix4
           
private  PropertiesPool pp
           
private  Properties properties
           
private  java.lang.String[] rowTitles
           
 
Constructor Summary
ExperimentResultGenerator()
           
 
Method Summary
private  void badInput(java.lang.String comment)
           
private  void checkInput(java.lang.String[] args)
           
 void doIt(java.lang.String[] args)
           
private  void doOneDirectory(java.io.File dir)
           
 Properties getDefaultProperties()
           
 Properties getProperties()
           
 java.lang.Object getPropertyValue(java.lang.String name)
           
static void main(java.lang.String[] args)
           
private  Measure[][] makeEntropyMatrix(java.lang.String[][] pathMatrix)
           
private  void makeLatexTableFile()
           
private  void makeMatrixNormalizedDifferenceOnRowNr(Measure[][] measureMatrix, int rowNr)
           
private  Measure[][] makeNumberOfClustersMatrix(java.lang.String[][] pathMatrix, java.lang.String groupingString)
           
private  Measure[][] makeNumberOfTextsMatrix(java.lang.String[][] pathMatrix)
           
private  void printMeasureMatrixIntoLatexTable(java.io.PrintWriter pw, java.lang.String[] rowTitles, Measure[][] measureMatrix)
           
private  void printSpecialIntoLatexTable(java.io.PrintWriter pw, java.lang.String[] rowTitles, Measure[][] absMeasureMatrix, Measure[][] relMeasureMatrix, Measure[][] absMeasureMatrix2, Measure[][] absMeasureMatrix3, Measure[][] absMeasureMatrix4)
           
private  void recurseResultPath(java.io.File path)
           
 void setProperties(Properties properties)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 void writeAverageMeasuresFiles()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

infoPool

ExperimentResultGenerator.InfoPool infoPool

pp

private PropertiesPool pp

properties

private Properties properties

rowTitles

private java.lang.String[] rowTitles

columnTitles

private java.lang.String[] columnTitles

pathMatrix1

private java.lang.String[][] pathMatrix1

pathMatrix2

private java.lang.String[][] pathMatrix2

pathMatrix3

private java.lang.String[][] pathMatrix3

pathMatrix4

private java.lang.String[][] pathMatrix4
Constructor Detail

ExperimentResultGenerator

public ExperimentResultGenerator()
Method Detail

getDefaultProperties

public Properties getDefaultProperties()
Specified by:
getDefaultProperties in interface HasProperties

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.String name)
Specified by:
getPropertyValue in interface HasProperties

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
                 throws PropertyNotFoundException
Specified by:
setProperty in interface HasProperties
Throws:
PropertyNotFoundException

getProperties

public Properties getProperties()
Specified by:
getProperties in interface HasProperties

setProperties

public void setProperties(Properties properties)
Specified by:
setProperties in interface HasProperties

main

public static void main(java.lang.String[] args)
                 throws org.xml.sax.SAXException,
                        java.io.IOException,
                        PropertyNotFoundException,
                        MeasureNameConflictException
Throws:
org.xml.sax.SAXException
java.io.IOException
PropertyNotFoundException
MeasureNameConflictException

doIt

public void doIt(java.lang.String[] args)
          throws java.io.IOException,
                 org.xml.sax.SAXException,
                 PropertyNotFoundException,
                 MeasureNameConflictException
Throws:
java.io.IOException
org.xml.sax.SAXException
PropertyNotFoundException
MeasureNameConflictException

makeEntropyMatrix

private Measure[][] makeEntropyMatrix(java.lang.String[][] pathMatrix)

makeNumberOfTextsMatrix

private Measure[][] makeNumberOfTextsMatrix(java.lang.String[][] pathMatrix)

makeNumberOfClustersMatrix

private Measure[][] makeNumberOfClustersMatrix(java.lang.String[][] pathMatrix,
                                               java.lang.String groupingString)

makeMatrixNormalizedDifferenceOnRowNr

private void makeMatrixNormalizedDifferenceOnRowNr(Measure[][] measureMatrix,
                                                   int rowNr)

makeLatexTableFile

private void makeLatexTableFile()
                         throws java.io.IOException
Throws:
java.io.IOException

printSpecialIntoLatexTable

private void printSpecialIntoLatexTable(java.io.PrintWriter pw,
                                        java.lang.String[] rowTitles,
                                        Measure[][] absMeasureMatrix,
                                        Measure[][] relMeasureMatrix,
                                        Measure[][] absMeasureMatrix2,
                                        Measure[][] absMeasureMatrix3,
                                        Measure[][] absMeasureMatrix4)
                                 throws java.io.IOException
Throws:
java.io.IOException

printMeasureMatrixIntoLatexTable

private void printMeasureMatrixIntoLatexTable(java.io.PrintWriter pw,
                                              java.lang.String[] rowTitles,
                                              Measure[][] measureMatrix)
                                       throws java.io.IOException
Throws:
java.io.IOException

recurseResultPath

private void recurseResultPath(java.io.File path)
                        throws java.io.IOException,
                               org.xml.sax.SAXException,
                               MeasureNameConflictException
Throws:
java.io.IOException
org.xml.sax.SAXException
MeasureNameConflictException

doOneDirectory

private void doOneDirectory(java.io.File dir)
                     throws java.io.IOException,
                            org.xml.sax.SAXException,
                            MeasureNameConflictException
Throws:
java.io.IOException
org.xml.sax.SAXException
MeasureNameConflictException

writeAverageMeasuresFiles

public void writeAverageMeasuresFiles()
                               throws java.io.IOException
Throws:
java.io.IOException

badInput

private void badInput(java.lang.String comment)

checkInput

private void checkInput(java.lang.String[] args)
                 throws java.io.IOException,
                        org.xml.sax.SAXException,
                        PropertyNotFoundException
Throws:
java.io.IOException
org.xml.sax.SAXException
PropertyNotFoundException