Enum PolicyId
- java.lang.Object
-
- java.lang.Enum<PolicyId>
-
- ru.ispras.microtesk.mmu.model.sim.PolicyId
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ru.ispras.microtesk.mmu.model.sim.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.
-
-
-
Enum Constant Detail
-
RANDOM
public static final PolicyId RANDOM
The random data replacement policy.
-
FIFO
public static final PolicyId FIFO
The FIFO (First In - First Out) data replacement policy.
-
LRU
public static final PolicyId LRU
The LRU (Least Recently Used) data replacement policy.
-
PLRU
public static final PolicyId PLRU
The PLRU (Pseudo Least Recently Used) data replacement policy.
-
NONE
public static final PolicyId NONE
The NONE policy. Means no data replacement is allowed.
-
-
Method Detail
-
values
public static PolicyId[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PolicyId c : PolicyId.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PolicyId valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
newPolicy
public abstract ru.ispras.microtesk.mmu.model.sim.Policy newPolicy(int associativity)
-
-