org.softevo.jdynpur.eval
Class MultiplePurityTraceAnalyser

java.lang.Object
  extended by org.softevo.jdynpur.eval.MultiplePurityTraceAnalyser

public class MultiplePurityTraceAnalyser
extends java.lang.Object

This class analyzes several execution traces for the same program and merges the results. If a method was impure in at least one trace, then it is considered to be impure.

Author:
dallmeier

Constructor Summary
MultiplePurityTraceAnalyser(java.lang.String fileName, java.lang.String resultFileName, boolean analyseParameterMutability)
          Creates a new analyzer for all traces in the given directory.
 
Method Summary
 void analyse()
          Analyzes all trace files in the directory.
static void main(java.lang.String[] args)
          Launches analysis of a directory of trace files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiplePurityTraceAnalyser

public MultiplePurityTraceAnalyser(java.lang.String fileName,
                                   java.lang.String resultFileName,
                                   boolean analyseParameterMutability)
Creates a new analyzer for all traces in the given directory.

Parameters:
fileName - the name of the directory
Method Detail

analyse

public void analyse()
             throws java.io.IOException,
                    javax.xml.parsers.ParserConfigurationException,
                    javax.xml.transform.TransformerException,
                    org.xml.sax.SAXException
Analyzes all trace files in the directory. After this method has finished, the results are stored in the classes' HashSet fields. This method also outputs some information on System.out

Throws:
java.io.IOException - if an exception occurs reading a trace.
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        javax.xml.parsers.ParserConfigurationException,
                        javax.xml.transform.TransformerException,
                        org.xml.sax.SAXException
Launches analysis of a directory of trace files. It expects the name of the trace directory as its only argument.

Parameters:
args - the command line arguments
Throws:
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException


Copyright © 2007-2008 Software Engineering Group at Saarland University. All Rights Reserved.