jeco.dmm.simulator.selectors
Class SizeSelector

java.lang.Object
  extended by jeco.dmm.simulator.selectors.AbstractSelector
      extended by jeco.dmm.simulator.selectors.SizeSelector

public class SizeSelector
extends AbstractSelector

Author:
Rub�n Gonzalo, José L. Risco-Martín

Field Summary
protected  long sizeInBytes
           
 
Constructor Summary
SizeSelector(long sizeInBytes)
           
 
Method Summary
 boolean getFree(AbstractHeap heap, DMMData dataObject)
           
 boolean getMalloc(AbstractHeap heap, DMMData dataObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sizeInBytes

protected long sizeInBytes
Constructor Detail

SizeSelector

public SizeSelector(long sizeInBytes)
Method Detail

getMalloc

public boolean getMalloc(AbstractHeap heap,
                         DMMData dataObject)
Specified by:
getMalloc in class AbstractSelector

getFree

public boolean getFree(AbstractHeap heap,
                       DMMData dataObject)
Specified by:
getFree in class AbstractSelector