jeco.dmm.sim2.lib.freelist
Enum FreeList.ALLOCATION_MECHANISM

java.lang.Object
  extended by java.lang.Enum<FreeList.ALLOCATION_MECHANISM>
      extended by jeco.dmm.sim2.lib.freelist.FreeList.ALLOCATION_MECHANISM
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FreeList.ALLOCATION_MECHANISM>
Enclosing class:
FreeList

public static enum FreeList.ALLOCATION_MECHANISM
extends java.lang.Enum<FreeList.ALLOCATION_MECHANISM>

Fit algorithms: One ADM can manage blocks of different sizes, the block created depends on the object created: FIRST: FIRST_FIT BEST: BEST FIT EXACT: EXACT FIT FARTHEST: For reliability purposes, the farthest block to a given one


Enum Constant Summary
BEST
           
EXACT
           
FARTHEST
           
FIRST
           
 
Method Summary
static FreeList.ALLOCATION_MECHANISM valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FreeList.ALLOCATION_MECHANISM[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FIRST

public static final FreeList.ALLOCATION_MECHANISM FIRST

BEST

public static final FreeList.ALLOCATION_MECHANISM BEST

EXACT

public static final FreeList.ALLOCATION_MECHANISM EXACT

FARTHEST

public static final FreeList.ALLOCATION_MECHANISM FARTHEST
Method Detail

values

public static FreeList.ALLOCATION_MECHANISM[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FreeList.ALLOCATION_MECHANISM c : FreeList.ALLOCATION_MECHANISM.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FreeList.ALLOCATION_MECHANISM valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null