Package jline.lang.state
Class CtmcPool
java.lang.Object
jline.lang.state.CtmcPool
- All Implemented Interfaces:
Serializable
Server-pool bookkeeping of a heterogeneous station (Queue.addServerType) as rewritten
for the CTMC by
jline.solvers.ctmc.handlers.Solver_ctmc_pools; port of MATLAB
sn.nodeparam{ind}.ctmcpool. The class-r server block holds one sub-block of phases per
compatible pool, in ascending pool order, so a phase identifies both the pool and the
service phase. Indices are 0-based.
ALIS and FAIRNESS keep a global pool order. When some class has two or more
compatible pools that order is part of the state, as a 1-based index into
perms held in the local-variable column nvars(ind, 2R).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]Pools by ascending number of compatible classes, ties by index (ALFS).double[][][]alpha[r][k], exit[r][k]: entry vector and exit rates of block k.boolean[][]compat[t][r]: pool t serves class r.int[]Servers per pool.Matrix[][]D0 of block k of class r.double[][][]double[][]fsfrate[t][r]: 1/mean of the law of r at pool t (FSF).int[][]intNumber of pools.int[][]off[r][k], len[r][k]: offset and length of block k in the class-r server block.int[][]Pool orders, lexicographic (identity first).Pool-selection policy of the station.int[][]pools[r]: compatible pools of class r, ascending; empty when r is not served.booleanTrue when the ALIS/FAIRNESS pool order is part of the state.int0-based position of the pool-order variable inside the local-variable block. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintblockOf(int r, int t) Index of pool t among the compatible pools of class r, or -1.intpermIndexOf(int[] order) 1-based index of a pool order inperms.
-
Field Details
-
ntypes
public int ntypesNumber of pools. -
count
public int[] countServers per pool. -
compat
public boolean[][] compatcompat[t][r]: pool t serves class r. -
policy
Pool-selection policy of the station. -
pools
public int[][] poolspools[r]: compatible pools of class r, ascending; empty when r is not served. -
off
public int[][] offoff[r][k], len[r][k]: offset and length of block k in the class-r server block. -
len
public int[][] len -
alpha
public double[][][] alphaalpha[r][k], exit[r][k]: entry vector and exit rates of block k. -
exit
public double[][][] exit -
D0
D0 of block k of class r. -
fsfrate
public double[][] fsfratefsfrate[t][r]: 1/mean of the law of r at pool t (FSF). -
alfsorder
public int[] alfsorderPools by ascending number of compatible classes, ties by index (ALFS). -
rotate
public boolean rotateTrue when the ALIS/FAIRNESS pool order is part of the state. -
perms
public int[][] permsPool orders, lexicographic (identity first). -
varpos
public int varpos0-based position of the pool-order variable inside the local-variable block.
-
-
Constructor Details
-
CtmcPool
public CtmcPool()
-
-
Method Details
-
permIndexOf
public int permIndexOf(int[] order) 1-based index of a pool order inperms. -
blockOf
public int blockOf(int r, int t) Index of pool t among the compatible pools of class r, or -1.
-