Allocator
Class WorstFitStrategy

java.lang.Object
Allocator.WorstFitStrategy
- All Implemented Interfaces:
- FreeMemStrategy
- public class WorstFitStrategy
- extends java.lang.Object
- implements FreeMemStrategy
Worst Fit Strategy
- Version:
- $Id: WorstFitStrategy.java,v 1.2 2003/05/12 10:04:52 joewhaley Exp $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
freePool
private java.util.TreeSet freePool
WorstFitStrategy
public WorstFitStrategy()
addFreeMem
public void addFreeMem(MemUnit unit)
- Specified by:
addFreeMem
in interface FreeMemStrategy
addCollection
public void addCollection(java.util.Collection c)
- Specified by:
addCollection
in interface FreeMemStrategy
getFreeMem
public MemUnit getFreeMem(int size)
- Specified by:
getFreeMem
in interface FreeMemStrategy