Methoden
Class Manual

java.lang.Object
  |
  +--Methoden.AllocationMethod
        |
        +--Methoden.Manual

public class Manual
extends AllocationMethod

Implementation of the allocation method manual. This method lets the user select the starting position in memory for the requested memory area. A window is popped-up to enter the position.


Field Summary
static java.lang.String LONGNAME
          Short name of this allocation method
static java.lang.String SHORTNAME
          Long name of this allocation method
 
Fields inherited from class Methoden.AllocationMethod
longName, shortName
 
Constructor Summary
Manual()
          Manual is an implementation of the allocatio method class and lets the user select the free memory area where the requested memory area is placed in.
 
Method Summary
 Memory buildFreeMemory(Memory usedMemory)
          Build up a free memory according to the given used memory.
 Memory createRandomUsedMemory(Memory usedMemory)
          Creates an empty memory, because random generation is senseless in the "Manual" method.
 MemoryArea getFreeArea(Memory freeMemory, int reqSize)
          Returns the memory area that is selected by the user in a pop-up window and where the requestedSize fits into.
 boolean isUseFullFreeMemoryArea()
          Returns true, if the full free memory area should be used
 
Methods inherited from class Methoden.AllocationMethod
appendMemoryArea, createUsedMemory, getFreeAreasCount, getIntFrag, getLongName, getShortName, getUsage, mergeMemoryArea, removeMemoryArea, removeMemoryAreaProcess, sortFreeMemory, sortUsedMemory
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

SHORTNAME

public static final java.lang.String SHORTNAME
Long name of this allocation method

LONGNAME

public static final java.lang.String LONGNAME
Short name of this allocation method
Constructor Detail

Manual

public Manual()
Manual is an implementation of the allocatio method class and lets the user select the free memory area where the requested memory area is placed in.
Method Detail

isUseFullFreeMemoryArea

public boolean isUseFullFreeMemoryArea()
Returns true, if the full free memory area should be used
Overrides:
isUseFullFreeMemoryArea in class AllocationMethod

createRandomUsedMemory

public Memory createRandomUsedMemory(Memory usedMemory)
Creates an empty memory, because random generation is senseless in the "Manual" method.
Overrides:
createRandomUsedMemory in class AllocationMethod

buildFreeMemory

public Memory buildFreeMemory(Memory usedMemory)
Build up a free memory according to the given used memory.
Overrides:
buildFreeMemory in class AllocationMethod

getFreeArea

public MemoryArea getFreeArea(Memory freeMemory,
                              int reqSize)
Returns the memory area that is selected by the user in a pop-up window and where the requestedSize fits into. If it does not fit, return null.
Overrides:
getFreeArea in class AllocationMethod