de.uka.ipd.sdq.ByCounter.reporting
Class PdfReport

java.lang.Object
  extended by de.uka.ipd.sdq.ByCounter.reporting.PdfReport
All Implemented Interfaces:
ICountingResultWriter

public class PdfReport
extends java.lang.Object
implements ICountingResultWriter

ICountingResultWriter that writes reports in the pdf format.


Nested Class Summary
static class PdfReport.Configuration
          Configuration options for the generation of a Pdf report.
 
Field Summary
 PdfReport.Configuration configuration
           
 
Constructor Summary
PdfReport()
           
 
Method Summary
 void generatePdf(CountingResult[] cResults, MethodExecutionRecord methodExecution)
           
 java.io.File getLastWrittenFile()
           
 long writeResultToFile(CountingResult cr, boolean usePrevTimestamp, long prevTimestampToUse)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

public PdfReport.Configuration configuration
Constructor Detail

PdfReport

public PdfReport()
Method Detail

generatePdf

public void generatePdf(CountingResult[] cResults,
                        MethodExecutionRecord methodExecution)
                 throws com.lowagie.text.DocumentException
Throws:
com.lowagie.text.DocumentException

writeResultToFile

public long writeResultToFile(CountingResult cr,
                              boolean usePrevTimestamp,
                              long prevTimestampToUse)
Specified by:
writeResultToFile in interface ICountingResultWriter
Parameters:
cr - CountingResult to write
usePrevTimestamp - TODO explain
Returns:
timestamp that is part of the file name (if usePrevTimestamp==false, the returned timestamp is internally generated by this method)

getLastWrittenFile

public java.io.File getLastWrittenFile()