Strategie
Class RANDOM
java.lang.Object
|
+--Strategie.ReplaceStrategy
|
+--Strategie.RANDOM
- public class RANDOM
- extends ReplaceStrategy
Implementation of the page replacement strategy RANDOM.
|
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. |
|
Constructor Summary |
RANDOM(boolean showDetails)
Creates a new instance of this strategy. |
| 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 |
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.
RANDOM
public RANDOM(boolean showDetails)
- Creates a new instance of this strategy.
getVictimPage
public Page getVictimPage(Memory m,
SimuData simu,
GUI gui)
- Selects the next victim page. It's the oldest page in memory.
- Overrides:
getVictimPage in class ReplaceStrategy