org.softevo.ample.eval
Class XMLPatternFileReader

java.lang.Object
  extended by org.softevo.ample.eval.XMLPatternFileReader

public class XMLPatternFileReader
extends java.lang.Object

Author:
dallmeier

Nested Class Summary
protected  class XMLPatternFileReader.ParseHandler
          The handler used to parse the file.
 
Field Summary
protected  java.util.HashMap classToMethodsMap
           
protected  java.util.HashMap classToPatternSetMap
          The result of the parse.
private  java.lang.String fileName
          The name of the xml pattern file.
private  int traceLength
          The total number of trace entries.
private  int windowSize
          The window size of the run.
 
Constructor Summary
XMLPatternFileReader(java.lang.String fileName)
          Creates a new reader for a pattern file.
 
Method Summary
 java.util.HashMap getCalledMethodsMap()
           
 java.util.HashMap getClassToPatternSetMap()
          Gets the patterns read.
 int getTraceLength()
          Gets the trace length.
 int getWindowSize()
          Gets the window size.
static void main(java.lang.String[] argv)
           
 void parseFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classToPatternSetMap

protected java.util.HashMap classToPatternSetMap
The result of the parse.


classToMethodsMap

protected java.util.HashMap classToMethodsMap

fileName

private java.lang.String fileName
The name of the xml pattern file.


traceLength

private int traceLength
The total number of trace entries.


windowSize

private int windowSize
The window size of the run.

Constructor Detail

XMLPatternFileReader

public XMLPatternFileReader(java.lang.String fileName)
Creates a new reader for a pattern file.

Parameters:
fileName - the name of the file
Method Detail

getCalledMethodsMap

public java.util.HashMap getCalledMethodsMap()

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Throws:
java.lang.Exception

parseFile

public void parseFile()
               throws AnalysisException
Throws:
AnalysisException

getClassToPatternSetMap

public java.util.HashMap getClassToPatternSetMap()
Gets the patterns read.


getWindowSize

public int getWindowSize()
Gets the window size.


getTraceLength

public int getTraceLength()
Gets the trace length.