Package jline.api.polling
Class Polling_qsys_table
java.lang.Object
jline.api.polling.Polling_qsys_table
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFull 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 TypeMethodDescriptionstatic 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.static Polling_qsys_table.Resultsolve(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.
-
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 rateb- 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 legsv- variance of each table position's outgoing legtable- 0-based queue index per table positiondiscipline- "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.
-