Class Polling_qsys_table

java.lang.Object
jline.api.polling.Polling_qsys_table

public final class Polling_qsys_table extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Full result: mean waiting time per queue, and E[X] and E[X X'] at the polling instant of every table position.
  • Method Summary

    Modifier and Type
    Method
    Description
    static double[]
    polling_qsys_table(double[] lambda, double[] b, double[] b2, double[] s1, double[] sv, int[] table, String discipline)
    Moment form.
    static double[]
    polling_qsys_table(double[] lambda, double[] b, double[] b2, double[] s1, double[] sv, int[] table, PollingType discipline)
    Moment form taking the discipline as a PollingType (EXHAUSTIVE or GATED).
    static double[]
    polling_qsys_table(MatrixCell[] arvMAPs, MatrixCell[] svcMAPs, MatrixCell[] switchMAPs, int[] table, String discipline)
    MAP form.
    solve(double[] lambda, double[] b, double[] b2, double[] s1in, double[] sv, int[] table, boolean gated)
    Solves the buffer-occupancy recursion and returns W, EX and EX2.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • polling_qsys_table

      public static double[] polling_qsys_table(MatrixCell[] arvMAPs, MatrixCell[] svcMAPs, MatrixCell[] switchMAPs, int[] table, String discipline)
      MAP form. table holds 0-based queue indices (e.g. {0, 1, 0, 2}); every queue must appear at least once. switchMAPs has one entry PER TABLE POSITION: the switchover of the leg from position m to m+1, the last one closing the cycle. Arrivals must be Poisson (a MAP is reduced to its rate).
      Parameters:
      discipline - "exhaustive" or "gated"
      Returns:
      mean waiting time per queue
    • polling_qsys_table

      public static double[] polling_qsys_table(double[] lambda, double[] b, double[] b2, double[] s1, double[] sv, int[] table, String discipline)
      Moment form.
      Parameters:
      lambda - per-queue Poisson arrival rate
      b - per-queue mean service time E[S]
      b2 - per-queue second service moment E[S^2]
      s1 - mean switchover of each table position's outgoing leg
      sv - variance of each table position's outgoing leg
      table - 0-based queue index per table position
      discipline - "exhaustive" or "gated"
      Returns:
      mean waiting time per queue
    • polling_qsys_table

      public static double[] polling_qsys_table(double[] lambda, double[] b, double[] b2, double[] s1, double[] sv, int[] table, PollingType discipline)
      Moment form taking the discipline as a PollingType (EXHAUSTIVE or GATED).
    • solve

      public static Polling_qsys_table.Result solve(double[] lambda, double[] b, double[] b2, double[] s1in, double[] sv, int[] table, boolean gated)
      Solves the buffer-occupancy recursion and returns W, EX and EX2.