Enum ImpatienceType
-
- All Implemented Interfaces:
-
java.io.Serializable
public 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.
-
-
Field Summary
Fields Modifier and Type Field Description public final intid
-
Enum Constant Summary
Enum Constants Enum Constant Description RENEGINGReneging - 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.
BALKINGBalking - 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.
RETRIALRetrial - 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 Summary
Modifier and Type Method Description static ImpatienceTypefromID(int id)Convert numeric ID to ImpatienceType enum value. static StringtoText(ImpatienceType type)Convert ImpatienceType to human-readable text. static Array<ImpatienceType>values()Returns an array containing the constants of this enum type, in the order they're declared. static ImpatienceTypevalueOf(String name)Returns the enum constant of this type with the specified name. intgetID()Get the numeric ID for this impatience type. -
-
Method Detail
-
fromID
static ImpatienceType fromID(int id)
Convert numeric ID to ImpatienceType enum value.
- Parameters:
id- numeric impatience type ID- Returns:
corresponding ImpatienceType enum value
-
toText
static String toText(ImpatienceType type)
Convert ImpatienceType to human-readable text.
- Parameters:
type- the impatience type- Returns:
text description
-
values
static Array<ImpatienceType> 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 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.)
- Returns:
the enum constant with the specified name
-
getID
int getID()
Get the numeric ID for this impatience type. IDs match MATLAB ImpatienceType constants.
- Returns:
numeric ID
-
-
-
-