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 |
|
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. |
| 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 |
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
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.
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