jeco.dmm.sim2.lib
Class Simulator

java.lang.Object
  extended by java.lang.Thread
      extended by jeco.dmm.sim2.lib.Simulator
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
SimulatorWithReliabilityV1

public class Simulator
extends java.lang.Thread

Author:
jlrisco

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  DynamicMemoryManager manager
           
protected  Metrics metrics
           
protected  ProfilingReport profilingReport
           
protected  java.lang.String tracePath
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Simulator(ProfilingReport profilingReport, DynamicMemoryManager manager)
           
Simulator(ProfilingReport profilingReport, DynamicMemoryManager manager, java.lang.String tracePath)
           
 
Method Summary
 java.lang.String drawAllocatorMap()
           
 Metrics getMetrics()
           
 void initialize()
           
protected  void processLine(java.lang.String line)
           
 void run()
           
 void simulate()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

profilingReport

protected ProfilingReport profilingReport

manager

protected DynamicMemoryManager manager

metrics

protected Metrics metrics

tracePath

protected java.lang.String tracePath
Constructor Detail

Simulator

public Simulator(ProfilingReport profilingReport,
                 DynamicMemoryManager manager,
                 java.lang.String tracePath)

Simulator

public Simulator(ProfilingReport profilingReport,
                 DynamicMemoryManager manager)
Method Detail

getMetrics

public Metrics getMetrics()

initialize

public void initialize()

simulate

public void simulate()
              throws java.io.FileNotFoundException,
                     java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

processLine

protected void processLine(java.lang.String line)
                    throws java.io.IOException
Throws:
java.io.IOException

drawAllocatorMap

public java.lang.String drawAllocatorMap()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread