Enum PatienceType

  • All Implemented Interfaces:
    java.io.Serializable

    
    public enum PatienceType
     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 (currently supported in JMT solver) - BALKING: Customer refuses to join based on queue state (reserved for future implementation) ID values match MATLAB PatienceType constants.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final int id
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      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

      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. Reserved for future implementation.

    • Method Summary

      Modifier and Type Method Description
      static PatienceType fromID(int id) Convert numeric ID to PatienceType enum value.
      static String toText(PatienceType type) Convert PatienceType to human-readable text.
      static Array<PatienceType> values() Returns an array containing the constants of this enum type, in the order they're declared.
      static PatienceType valueOf(String name) Returns the enum constant of this type with the specified name.
      int getID() Get the numeric ID for this patience type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • fromID

         static PatienceType fromID(int id)

        Convert numeric ID to PatienceType enum value.

        Parameters:
        id - numeric patience type ID
        Returns:

        corresponding PatienceType enum value

      • toText

         static String toText(PatienceType type)

        Convert PatienceType to human-readable text.

        Parameters:
        type - the patience type
        Returns:

        text description

      • values

         static Array<PatienceType> values()

        Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

        Returns:

        an array containing the constants of this enum type, in the order they're declared

      • valueOf

         static PatienceType 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.)

        Returns:

        the enum constant with the specified name

      • getID

         int getID()

        Get the numeric ID for this patience type. IDs match MATLAB PatienceType constants.

        Returns:

        numeric ID