Class RetrialAttempts

java.lang.Object
jline.lang.state.RetrialAttempts

public final class RetrialAttempts extends Object
Retrial with a finite number of attempts at a CTMC station, port of Python api/state/retrial_attempts.py.

Queue.setRetrial(jobclass, delay, maxAttempts): an arriving job that finds every server busy joins the orbit with no attempts made; each retry that finds every server busy counts one more, and a job that has failed maxAttempts retries is lost (maxAttempts <= 0 means unlimited and needs no block). The orbit stays where the unlimited retrial keeps it (the class tokens of the station's buffer); the station's local state ends with a block of maxAttempts counters, n[a] = orbiting jobs that have failed a retries, which sum to the orbit size. Under the LINEAR policy level a retries at rate n[a] * retrialMu. Served for an OPEN class, LINEAR policy, persistent customers and no orbital search (refused otherwise by CtmcStateSupports).

The block is declared per solve on a private copy of the struct, in an extra trailing column of sn.nvars (index 3R+1), so it is the last of the local variables; a station is treated here only once that column holds its block width.

  • Method Details

    • nvarsColumn

      public static int nvarsColumn(NetworkStruct sn)
      Column of sn.nvars that holds the block width.
    • declared

      public static RetrialAttempts.Info declared(NetworkStruct sn, int ind)
      The finite-attempt retrial of node ind, prepared or not, or null.
    • info

      public static RetrialAttempts.Info info(NetworkStruct sn, int ind)
      The prepared finite-attempt retrial of node ind, or null.
    • orbitSize

      public static int orbitSize(NetworkStruct sn, int ind, RetrialAttempts.Info info, Matrix row)
      Orbit size of the retrial class in a station row.
    • compositions

      public static List<int[]> compositions(int total, int parts)
      Every vector of parts nonnegative integers summing to total (Python order).