Strategie
Class Manual

java.lang.Object
  |
  +--Strategie.ReplaceStrategy
        |
        +--Strategie.Manual

public class Manual
extends ReplaceStrategy

Implementation of the page replacement strategy Manual. The selection of a victim page is done by the user. When a page has to be replaced, a pop-up window appears and the user has to enter the frame number of the page to swap.


Field Summary
static boolean ISACCESSCOUNT
          Number of accesses is not relevant for this strategy.
static boolean ISACCESSTIME
          Time of access is not relevant for this strategy.
static boolean ISINSERTIONTIME
          Time of insertion is not relevant for this strategy.
static java.lang.String LONGNAME
          Long name of this streategy.
static int MODBITCOUNT
          Number of reference-bits of this strategy.
static int REFBITCOUNT
          Number of reference-bits of this strategy.
static java.lang.String SHORTNAME
          Short name of this streategy.
 
Fields inherited from class Strategie.ReplaceStrategy
isAccessCount, isAccessTime, isInsertTime, isShowMemoryDetails, longName, modifyBitCount, referenceBitCount, shortName
 
Constructor Summary
Manual(boolean showDetails)
          Creates a new instance of this strategy.
 
Method Summary
 Page getVictimPage(Memory memory, SimuData simu, GUI gui)
          Selects the next victim page.
 
Methods inherited from class Strategie.ReplaceStrategy
createMemory, getDrawLfdNr, getLongName, getModifyBitCount, getReferenceBitCount, getShortName, isAccessCount, isAccessTime, isInsertTime, isModifyBit, isReferenceBit, isShowMemoryDetails, reInsertPage, replacePage, setInitVictimPointer, setShowMemoryDetails, sortMemory
 
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
Short name of this streategy.

LONGNAME

public static final java.lang.String LONGNAME
Long name of this streategy.

REFBITCOUNT

public static final int REFBITCOUNT
Number of reference-bits of this strategy.

MODBITCOUNT

public static final int MODBITCOUNT
Number of reference-bits of this strategy.

ISACCESSCOUNT

public static final boolean ISACCESSCOUNT
Number of accesses is not relevant for this strategy.

ISACCESSTIME

public static final boolean ISACCESSTIME
Time of access is not relevant for this strategy.

ISINSERTIONTIME

public static final boolean ISINSERTIONTIME
Time of insertion is not relevant for this strategy.
Constructor Detail

Manual

public Manual(boolean showDetails)
Creates a new instance of this strategy.
Method Detail

getVictimPage

public Page getVictimPage(Memory memory,
                          SimuData simu,
                          GUI gui)
Selects the next victim page. It's the oldest page in memory.
Overrides:
getVictimPage in class ReplaceStrategy