Enum Constant and Description |
---|
FIFO
The FIFO (First In - First Out) data replacement policy.
|
LRU
The LRU (Least Recently Used) data replacement policy.
|
NONE
The NONE policy.
|
PLRU
The PLRU (Pseudo Least Recently Used) data replacement policy.
|
RANDOM
The random data replacement policy.
|
Modifier and Type | Method and Description |
---|---|
abstract ru.ispras.microtesk.mmu.model.api.Policy |
newPolicy(int associativity) |
static PolicyId |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PolicyId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PolicyId RANDOM
public static final PolicyId FIFO
public static final PolicyId LRU
public static final PolicyId PLRU
public static final PolicyId NONE
public static PolicyId[] values()
for (PolicyId c : PolicyId.values()) System.out.println(c);
public static PolicyId valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract ru.ispras.microtesk.mmu.model.api.Policy newPolicy(int associativity)