Enum PolicyId

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PolicyId>

    public enum PolicyId
    extends java.lang.Enum<PolicyId>
    This enumeration contains basic data replacement 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.
      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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • newPolicy

        public abstract ru.ispras.microtesk.mmu.model.sim.Policy newPolicy​(int associativity)