Package jline.solvers
Class FJResult
java.lang.Object
jline.solvers.FJResult
Fork-join section metrics of every Fork/Join pair of a model.
One row per pair, i.e. per nonzero (f, j) of sn.fj, ordered by fork
node index and then join node index, and one column per job class:
RespT(p,r): mean time from a class-r job's arrival at the Fork of pair p to its departure from the matching Join (FJRespT);Tput(p,r): class-r throughput through the pair (FJTput);QLen(p,r): mean number of class-r jobs inside the section (FJQLen).
A class that does not cross a pair reports 0 in all three. forks and
joins hold the 0-based node index of each pair. Mirrors MATLAB
self.result.FJ; see NetworkSolver.getAvgFJ().
-
Field Summary
FieldsModifier and TypeFieldDescriptionFork and Join node NAMES of each pair, set only on a block read from an ldes-result document beforebindTo(NetworkStruct)maps it onto the model's pairs; null otherwise.int[]Fork node index (0-based) of each pair.int[]Join node index (0-based) of each pair.FJQLen, P x R.FJRespT, P x R.FJTput, P x R. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindTo(NetworkStruct sn) Maps a block read by NAME (seeforkNames) onto the Fork/Join pairs ofsn, matching rows by (fork name, join name) as the MATLAB ldesParseForkJoin does.deepCopy()Deep copy.int[]getForks()int[]getJoins()intNumber of Fork/Join pairs.getQLen()getRespT()getTput()booleanisEmpty()static List<int[]>pairs(NetworkStruct sn) The Fork/Join pairs of a struct, one {fork, join} row per nonzero ofsn.fj, ordered by fork node and then join node (MATLABsortrows([forks joins])overfind(sn.fj)).static FJResultzeros(NetworkStruct sn) A zero-valued result over the pairs ofsn, or null when it has none.
-
Field Details
-
forks
public int[] forksFork node index (0-based) of each pair. -
joins
public int[] joinsJoin node index (0-based) of each pair. -
QLen
FJQLen, P x R. -
RespT
FJRespT, P x R. -
Tput
FJTput, P x R. -
forkNames
Fork and Join node NAMES of each pair, set only on a block read from an ldes-result document beforebindTo(NetworkStruct)maps it onto the model's pairs; null otherwise. -
joinNames
-
-
Constructor Details
-
FJResult
public FJResult() -
FJResult
-
-
Method Details
-
getNumPairs
public int getNumPairs()Number of Fork/Join pairs. -
isEmpty
public boolean isEmpty() -
getQLen
-
getRespT
-
getTput
-
getForks
public int[] getForks() -
getJoins
public int[] getJoins() -
pairs
The Fork/Join pairs of a struct, one {fork, join} row per nonzero ofsn.fj, ordered by fork node and then join node (MATLABsortrows([forks joins])overfind(sn.fj)).- Parameters:
sn- the struct of the ORIGINAL model- Returns:
- the pairs, possibly empty
-
zeros
A zero-valued result over the pairs ofsn, or null when it has none.- Parameters:
sn- the struct of the ORIGINAL model- Returns:
- the empty-valued holder, or null on a model without Fork/Join pairs
-
bindTo
Maps a block read by NAME (seeforkNames) onto the Fork/Join pairs ofsn, matching rows by (fork name, join name) as the MATLAB ldesParseForkJoin does. Pairs absent from the block, and non-finite values, report 0.- Parameters:
sn- the struct of the ORIGINAL model- Returns:
- the bound result, or null when sn has no Fork/Join pair
-
deepCopy
Deep copy.
-