Class ServerParallelism

java.lang.Object
jline.lang.state.ServerParallelism

public final class ServerParallelism extends Object
Server parallelism at a CTMC station (Queue.setServerParallelism), port of Python api/state/server_parallelism.py.

A class-r job seizes n_r of the station's c servers when it starts and holds them for its whole service, so each job contributes n_r / c to the utilization. Served at FCFS, strictly: a departure hands its freed servers to the head-of-line jobs, in order, for as long as the head fits, and an arrival enters service only when nobody waits and its n_r servers are free. A station can therefore hold waiting jobs next to idle servers, which the population lattice does not enumerate, so the state space is generated by reachability.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Station index, server count and per-class degrees (all at least 1).
  • Method Summary

    Modifier and Type
    Method
    Description
    static Boolean
    fits(NetworkStruct sn, int ind, Matrix srv, Matrix var, int jobClass)
    Whether a class-jobClass job finds its servers free at node ind: busy servers plus held servers plus n_r within the server count; null at a station without parallelism.
    static double
    held(NetworkStruct sn, int ind, ServerParallelism.Info info, Matrix spaceVar, int row)
    Servers held at node ind by synchronous calls awaiting their REPLY, in row row of the local variables spaceVar.
    info(NetworkStruct sn, int ind)
    The parallelism of node ind, or null when every degree is 1.
    static double
    seff(NetworkStruct sn, int ind, Matrix spaceBuf, Matrix spaceSrv, int i, int jobClass, double seff)
    Server bound the FCFS arrival compares row i's jobs in service with: those jobs plus one when the arrival may start (nobody waits and its servers, net of those held for pending REPLY calls, are free), the jobs in service otherwise; seff unchanged at a station without parallelism.
    static double
    seff(NetworkStruct sn, int ind, Matrix spaceBuf, Matrix spaceSrv, Matrix spaceVar, int i, int jobClass, double seff)
    As seff(NetworkStruct, int, Matrix, Matrix, int, int, double), reading held servers from spaceVar.
    static boolean
    Validate the parallel stations for a CTMC solve (Python ctmc_parallelism); true when the model has any.

    Methods inherited from class java.lang.Object

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

    • info

      public static ServerParallelism.Info info(NetworkStruct sn, int ind)
      The parallelism of node ind, or null when every degree is 1.
    • validate

      public static boolean validate(NetworkStruct sn)
      Validate the parallel stations for a CTMC solve (Python ctmc_parallelism); true when the model has any.
    • held

      public static double held(NetworkStruct sn, int ind, ServerParallelism.Info info, Matrix spaceVar, int row)
      Servers held at node ind by synchronous calls awaiting their REPLY, in row row of the local variables spaceVar. A calling job keeps the n_r servers it seized until the reply returns, so each pending call of class r holds n_r of them, not one (MATLAB State.ctmcHeldServers). With info null every degree is 1 and this is the plain count; 0 without a reply block.
    • fits

      public static Boolean fits(NetworkStruct sn, int ind, Matrix srv, Matrix var, int jobClass)
      Whether a class-jobClass job finds its servers free at node ind: busy servers plus held servers plus n_r within the server count; null at a station without parallelism.
    • seff

      public static double seff(NetworkStruct sn, int ind, Matrix spaceBuf, Matrix spaceSrv, int i, int jobClass, double seff)
      Server bound the FCFS arrival compares row i's jobs in service with: those jobs plus one when the arrival may start (nobody waits and its servers, net of those held for pending REPLY calls, are free), the jobs in service otherwise; seff unchanged at a station without parallelism.
    • seff

      public static double seff(NetworkStruct sn, int ind, Matrix spaceBuf, Matrix spaceSrv, Matrix spaceVar, int i, int jobClass, double seff)
      As seff(NetworkStruct, int, Matrix, Matrix, int, int, double), reading held servers from spaceVar.