Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Allocator
Class WorstFitStrategy  view WorstFitStrategy download WorstFitStrategy.java

java.lang.Object
  extended byAllocator.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 $

Field Summary
private  java.util.TreeSet freePool
           
 
Constructor Summary
WorstFitStrategy()
           
 
Method Summary
 void addCollection(java.util.Collection c)
           
 void addFreeMem(MemUnit unit)
           
 MemUnit getFreeMem(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

freePool

private java.util.TreeSet freePool
Constructor Detail

WorstFitStrategy

public WorstFitStrategy()
Method Detail

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