Package jline.lang.constant
Class RetrialPolicy
java.lang.Object
jline.lang.constant.RetrialPolicy
Retrial policies for an orbiting population.
The policy fixes how the aggregate rate at which the orbit attempts to re-enter the station depends on the orbit size n:
LINEAR- each orbiting customer retries independently at rate nu, so the aggregate retrial rate is n*nu. This is the classical retrial queue of Falin and Templeton.CONSTANT- the orbit as a whole retries at rate nu whenever it is non-empty, independently of n. This models a single retrial controller shared by the orbit rather than per-customer timers.
Declared as a constant class rather than an enum so that the numeric values match the MATLAB RetrialPolicy constants (LINEAR = 1, CONSTANT = 2) carried in sn.retrialPolicy across the codebases.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
LINEAR
public static final int LINEAREach orbiting customer retries at its own rate: aggregate rate n*nu.- See Also:
-
CONSTANT
public static final int CONSTANTThe orbit retries as a whole at rate nu whenever it is non-empty.- See Also:
-
-
Method Details
-
toText
Text representation of a retrial policy.- Parameters:
type- the policy constant- Returns:
- the policy name
-
fromText
Parses a retrial policy from its text representation.- Parameters:
text- the policy name- Returns:
- the policy constant
-