Enum RemovalPolicy

java.lang.Object
java.lang.Enum<RemovalPolicy>
jline.lang.constant.RemovalPolicy
All Implemented Interfaces:
Serializable, Comparable<RemovalPolicy>, java.lang.constant.Constable

public enum RemovalPolicy extends Enum<RemovalPolicy> implements Serializable
Enumeration of removal policies for negative signals in G-networks.

When a negative signal (or catastrophe) arrives at a queue and removes positive customers, the removal policy determines which customers are selected for removal.

Policies:

  • RANDOM - Uniform random selection from all jobs at the station
  • FCFS - Remove oldest jobs first (first-come-first-served order)
  • LCFS - Remove newest jobs first (last-come-first-served order)
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static RemovalPolicy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static RemovalPolicy valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getID

      public int getID()
    • fromID

      public static RemovalPolicy fromID(int id)
    • toText

      public static String toText(RemovalPolicy policy)
    • fromText

      public static RemovalPolicy fromText(String text)