org.softevo.ample.sibrelib.runtime
Class SequenceWriter

java.lang.Object
  extended by org.softevo.ample.sibrelib.runtime.SequenceWriter
All Implemented Interfaces:
org.softevo.sibrelib.runtime.Constants
Direct Known Subclasses:
ClassSequenceWriter, ObjectSequenceWriter

public class SequenceWriter
extends java.lang.Object
implements org.softevo.sibrelib.runtime.Constants

Author:
dallmeier TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Nested Class Summary
protected static class SequenceWriter.Pattern
           
protected static class SequenceWriter.PatternNameWriter
           
 
Field Summary
protected static org.apache.commons.lang.IntHashMap classToPatternSetMap
           
protected static int entryCounter
           
protected static java.util.HashMap identityMap
           
protected static java.lang.String identityMapFileName
           
protected static java.lang.Object lock
           
protected static org.softevo.sibrelib.runtime.CalledMethodsTracer methodTracer
           
protected static java.lang.String outputFileName
           
protected static int windowSize
           
 
Fields inherited from interface org.softevo.sibrelib.runtime.Constants
CLASS_CALLER, CLASS_ID, CLASS_METHOD, CLASS_OBJECT, CLASS_THREAD, KEY_IDENTITYMAP, KEY_INTERNAL, KEY_OUTPUTFILE, KEY_UNDERFLOW, KEY_WINDOWSIZE, LINENUMBER_UNDEFINED, OBJECTID_STATIC, RET_CALLER_POPFAIL, RET_CALLER_PUSHFAIL, RET_CONFIGFAIL, RET_TRACE_FILEOPEN, RET_TRACE_WRITE
 
Constructor Summary
SequenceWriter()
           
 
Method Summary
protected static java.util.HashMap getOrCreatePatternSet(int classId)
          Gets the pattern set for a class.
protected static void readConfiguration()
           
protected static void readIdentityMap(java.lang.String fileName)
           
protected static void writeResults(org.apache.commons.lang.IntHashMap classToPatternSetMap, SequenceWriter.PatternNameWriter patternNameWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classToPatternSetMap

protected static org.apache.commons.lang.IntHashMap classToPatternSetMap

windowSize

protected static int windowSize

lock

protected static java.lang.Object lock

entryCounter

protected static int entryCounter

outputFileName

protected static java.lang.String outputFileName

identityMapFileName

protected static java.lang.String identityMapFileName

identityMap

protected static java.util.HashMap identityMap

methodTracer

protected static org.softevo.sibrelib.runtime.CalledMethodsTracer methodTracer
Constructor Detail

SequenceWriter

public SequenceWriter()
Method Detail

readConfiguration

protected static void readConfiguration()

readIdentityMap

protected static void readIdentityMap(java.lang.String fileName)

writeResults

protected static void writeResults(org.apache.commons.lang.IntHashMap classToPatternSetMap,
                                   SequenceWriter.PatternNameWriter patternNameWriter)

getOrCreatePatternSet

protected static java.util.HashMap getOrCreatePatternSet(int classId)
Gets the pattern set for a class.
If none exists in the map, a new instance is created.