Enum EvictionPolicyId
- java.lang.Object
-
- java.lang.Enum<EvictionPolicyId>
-
- ru.ispras.microtesk.mmu.model.sim.EvictionPolicyId
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EvictionPolicyId>
public enum EvictionPolicyId extends java.lang.Enum<EvictionPolicyId>
EvictionPolicyId
contains the data replacement (eviction) policies.
-
-
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 (no data replacement).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.EvictionPolicy
newPolicy(int associativity)
static EvictionPolicyId
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EvictionPolicyId[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RANDOM
public static final EvictionPolicyId RANDOM
The random data replacement policy.
-
FIFO
public static final EvictionPolicyId FIFO
The FIFO (First In - First Out) data replacement policy.
-
LRU
public static final EvictionPolicyId LRU
The LRU (Least Recently Used) data replacement policy.
-
PLRU
public static final EvictionPolicyId PLRU
The PLRU (Pseudo Least Recently Used) data replacement policy.
-
NONE
public static final EvictionPolicyId NONE
The NONE policy (no data replacement).
-
-
Method Detail
-
values
public static EvictionPolicyId[] 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 (EvictionPolicyId c : EvictionPolicyId.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EvictionPolicyId 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.EvictionPolicy newPolicy(int associativity)
-
-