jeco.dmm.sim2.lib
Class SimulatorWithReliabilityV1

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

public class SimulatorWithReliabilityV1
extends Simulator

This simulator considers reliability, but just with "new after delete": If the last operation is "delete" and the current operation is "new", then the hottest block is declared as the last "delete". Thus, the new block is allocated as far as possible of the last one. This algorithm just work if the "FARTHEST" policy has been set in some of the allocators of the DMM.

Author:
José L. Risco-Martín

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  Block lastDelete
           
 
Fields inherited from class jeco.dmm.sim2.lib.Simulator
manager, metrics, profilingReport, tracePath
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SimulatorWithReliabilityV1(ProfilingReport profilingReport, DynamicMemoryManager manager, java.lang.String tracePath)
           
 
Method Summary
protected  void processLine(java.lang.String line)
           
 
Methods inherited from class jeco.dmm.sim2.lib.Simulator
drawAllocatorMap, getMetrics, initialize, run, 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

lastDelete

protected Block lastDelete
Constructor Detail

SimulatorWithReliabilityV1

public SimulatorWithReliabilityV1(ProfilingReport profilingReport,
                                  DynamicMemoryManager manager,
                                  java.lang.String tracePath)
Method Detail

processLine

protected void processLine(java.lang.String line)
                    throws java.io.IOException
Overrides:
processLine in class Simulator
Throws:
java.io.IOException