Enum ImpatienceType

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

public enum ImpatienceType extends Enum<ImpatienceType> implements Serializable
Constants for specifying customer impatience types. Impatience refers to customers leaving a queueing system without receiving service. The main types are: - RENEGING: Customer abandons after joining the queue (timer-based abandonment) - BALKING: Customer refuses to join based on queue state (queue-length or wait-time based) - RETRIAL: Customer moves to orbit and retries entry after a delay ID values match MATLAB ImpatienceType constants.
  • Enum Constant Details

    • RENEGING

      public static final ImpatienceType RENEGING
      Reneging - customer abandons the queue after waiting too long. This is the standard "impatience" where a job joins the queue but leaves before service if its patience time expires. Currently supported by JMT solver.
    • BALKING

      public static final ImpatienceType BALKING
      Balking - customer refuses to join the queue based on queue state. This occurs when a customer arrives but decides not to join based on factors like queue length or expected waiting time.
    • RETRIAL

      public static final ImpatienceType RETRIAL
      Retrial - customer moves to orbit and retries queue entry after a delay. This occurs when a customer is rejected due to capacity constraints and enters an "orbit" buffer, periodically attempting to re-enter. Supports both unlimited retries and configurable maximum attempts.
  • Method Details

    • values

      public static ImpatienceType[] 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 ImpatienceType 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()
      Get the numeric ID for this impatience type. IDs match MATLAB ImpatienceType constants.
      Returns:
      numeric ID
    • fromID

      public static ImpatienceType fromID(int id)
      Convert numeric ID to ImpatienceType enum value.
      Parameters:
      id - numeric impatience type ID
      Returns:
      corresponding ImpatienceType enum value
      Throws:
      IllegalArgumentException - if ID is not recognized
    • toText

      public static String toText(ImpatienceType type)
      Convert ImpatienceType to human-readable text.
      Parameters:
      type - the impatience type
      Returns:
      text description