|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--Strategie.ReplaceStrategy
|
+--Strategie.OPT
Implementation of the page replacement strategy OPT. The victim page is the page, that hast the highest time of access in the future. It's an optimal selection!
| Field Summary | |
private int |
hits
Number of hits. |
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. |
private int |
misses
Number of misses. |
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 | |
OPT(boolean showDetails)
Creates a new instance of this strategy. |
|
| Method Summary | |
int |
getHits()
Returns the number of hits in the last evalution run |
int |
getMisses()
Returns the number of misses in the last evalution run |
Page |
getVictimPage(Memory memory,
SimuData simu,
GUI gui)
Selects the next victim page. |
void |
performEvalutation(Memory memory,
ReferenceString refString,
SimuData simu,
GUI gui)
Performs a simulation to get the equivalent result with OPT in comparison to any other replace algorithm. |
| 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 |
|
| Field Detail |
public static final java.lang.String SHORTNAME
public static final java.lang.String LONGNAME
public static final int REFBITCOUNT
public static final int MODBITCOUNT
public static final boolean ISACCESSCOUNT
public static final boolean ISACCESSTIME
public static final boolean ISINSERTIONTIME
private int hits
private int misses
| Constructor Detail |
public OPT(boolean showDetails)
| Method Detail |
public void performEvalutation(Memory memory,
ReferenceString refString,
SimuData simu,
GUI gui)
public Page getVictimPage(Memory memory,
SimuData simu,
GUI gui)
getVictimPage in class ReplaceStrategypublic int getHits()
public int getMisses()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||