Class NetworkMomentTable
Which columns are present depends on the moment orders requested of
NetworkSolver.getMomentTable(int[]): order 1 contributes QLen and RespT,
order 2 contributes QLenVar, QLenSCV, RespTVar and RespTSCV, order 3 contributes
QLenSkew and RespTSkew. They always appear in the order Station, JobClass, QLen,
QLenVar, QLenSCV, QLenSkew, RespT, RespTVar, RespTSCV, RespTSkew, filtered to the
requested set; see getVariableNames().
QLenSkew is a genuinely per-class quantity: the generating parameter need not
scale a whole demand column, and scaling L(i,r) alone is Akyildiz-Strelen Theorem
1 with the class subset T = {r}, which generates the moments of n(i,r) itself. It
is available only for closed single-server models, the scope of
Pfqn_sens_mom, and is NaN otherwise.
The means agree with NetworkAvgTable, which reaches them by a different
code path. RespTVar, RespTSCV and RespTSkew are NaN at any station that is not
FCFS: the sojourn-time distribution of a processor-sharing or LCFS center is not
known in general, so there is no correct value to report.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the index of the row for a (station, class) pair, or -1 if absent.get(int col) Returns the values of the given numeric column.Returns a numeric column by name.Returns the raw moment results, including the full per-station covariance blocks that this table shows only the diagonal of.getQLen()getRespT()The names of every column of the table, the two name columns first: Station, JobClass, then the numeric columns that the requested moment orders selected.booleanWhether a numeric column is present, i.e.voidprint()Prints the table contents in a human-readable format.voidprint(SolverOptions options) Prints the table.voidPrints the table.voidsetClassNames(List<String> classNames) Sets the job class names, one per row.voidsetMoments(NetworkMomentResult moments) Sets the raw moment results.voidsetNDigits(int nDigits) Sets the number of decimal digits to display in formatted output.voidsetStationNames(List<String> stationNames) Sets the station names, one per row.Methods inherited from class jline.solvers.AvgTable
fmtValue, getData, printFormattedTable, sanitize, setOptions, toMatrix
-
Constructor Details
-
NetworkMomentTable
Creates a moment table from the numeric columns that the requested moment orders select.- Parameters:
columnNames- names of the numeric columns, in table ordercolumns- the numeric columns, aligned withcolumnNames
-
-
Method Details
-
getVariableNames
The names of every column of the table, the two name columns first: Station, JobClass, then the numeric columns that the requested moment orders selected. MirrorsT.Properties.VariableNamesof the MATLAB table.- Returns:
- the column names, in table order
-
hasColumn
Whether a numeric column is present, i.e. whether its moment order was requested.- Parameters:
name- the column name- Returns:
- true if the column is present
-
getColumn
Returns a numeric column by name.- Parameters:
name- the column name- Returns:
- the column values
- Throws:
RuntimeException- if the column was not selected by the requested moment orders
-
get
Returns the values of the given numeric column.- Overrides:
getin classAvgTable- Parameters:
col- column index intogetVariableNames()minus the two name columns- Returns:
- the column values
-
getQLen
- Returns:
- the mean queue length column (order 1)
-
getQLenVar
- Returns:
- the queue-length variance column (order 2)
-
getQLenSCV
- Returns:
- the queue-length SCV column (order 2)
-
getRespT
- Returns:
- the mean response time column (order 1)
-
getRespTVar
- Returns:
- the response-time variance column (order 2), NaN away from FCFS
-
getRespTSCV
- Returns:
- the response-time SCV column (order 2), NaN away from FCFS
-
getRespTSkew
- Returns:
- the response-time skewness column (order 3), NaN away from FCFS
-
getQLenSkew
- Returns:
- the per-class queue-length skewness column (order 3), NaN unless the model is closed single-server
-
getClassNames
- Returns:
- the job class names, one per row
-
setClassNames
Sets the job class names, one per row.- Parameters:
classNames- the class names
-
getStationNames
- Returns:
- the station names, one per row
-
setStationNames
Sets the station names, one per row.- Parameters:
stationNames- the station names
-
getMoments
Returns the raw moment results, including the full per-station covariance blocks that this table shows only the diagonal of.- Returns:
- the raw moment results
-
setMoments
Sets the raw moment results.- Parameters:
moments- the raw moment results
-
findRow
Returns the index of the row for a (station, class) pair, or -1 if absent. A pair is absent when the class does not visit the station.- Parameters:
stationName- the station nameclassName- the job class name- Returns:
- the row index, or -1
-
setNDigits
public void setNDigits(int nDigits) Sets the number of decimal digits to display in formatted output.- Parameters:
nDigits- the number of digits
-
print
public void print()Description copied from class:AvgTablePrints the table contents in a human-readable format. Implementation is provided by subclasses for specific table types. -
print
Prints the table.- Parameters:
options- the solver options controlling verbosity
-
printTable
public void printTable()Prints the table.
-