Package jline.solvers
Class NetworkAvgTable
java.lang.Object
jline.solvers.AvgTable
jline.solvers.NetworkAvgTable
Table for displaying network performance metrics organized by station and job class.
This class provides a structured way to access and display steady-state performance metrics including queue lengths, utilizations, response times, throughputs, and arrival rates. The table is organized with rows representing station-class pairs and columns representing different performance metrics.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkAvgTable(List<Double> Qval, List<Double> Uval, List<Double> Rval, List<Double> Residval, List<Double> ArvRval, List<Double> Tval) Creates a new NetworkAvgTable with the specified performance metric values.NetworkAvgTable(List<Double> Qval, List<Double> Uval, List<Double> Rval, List<Double> Residval, List<Double> ArvRval, List<Double> Tval, List<Double> Tardval, List<Double> SysTardval) Creates a new NetworkAvgTable with all performance metric values including tardiness. -
Method Summary
Modifier and TypeMethodDescriptionget(int col) Returns the values from the specified column.getArvR()Returns the list of job class names.getQLen()Returns the queue length values from the table.Returns the residence time values from the table.getRespT()Returns the response time values from the table.Returns the list of station names.Returns the system tardiness values from the table if available.getTard()Returns the tardiness values from the table if available.getTput()getUtil()Returns the utilization values from the table.voidprint()Prints the table contents in a human-readable format.voidprint(SolverOptions options) voidvoidprintTable(SolverOptions options) voidsetClassNames(List<String> classNames) Sets the list of job class names.voidsetNumberOfDigits(int nd) Sets the number of decimal digits to display in formatted output.voidsetOptions(SolverOptions options) Sets the solver options for this table.voidsetStationNames(List<String> stationNames) Sets the list of station names.static AvgTabletget(NetworkAvgTable T, String anyname) Extracts rows from the table matching the specified name (station or class).static AvgTabletget(NetworkAvgTable T, String stationname, String classname) Extracts rows from the table matching both station and class names.
-
Constructor Details
-
NetworkAvgTable
public NetworkAvgTable(List<Double> Qval, List<Double> Uval, List<Double> Rval, List<Double> Residval, List<Double> ArvRval, List<Double> Tval) Creates a new NetworkAvgTable with the specified performance metric values.- Parameters:
Qval- list of queue length valuesUval- list of utilization valuesRval- list of response time valuesResidval- list of residence time valuesArvRval- list of arrival rate valuesTval- list of throughput values
-
NetworkAvgTable
public NetworkAvgTable(List<Double> Qval, List<Double> Uval, List<Double> Rval, List<Double> Residval, List<Double> ArvRval, List<Double> Tval, List<Double> Tardval, List<Double> SysTardval) Creates a new NetworkAvgTable with all performance metric values including tardiness.- Parameters:
Qval- list of queue length valuesUval- list of utilization valuesRval- list of response time valuesResidval- list of residence time valuesArvRval- list of arrival rate valuesTval- list of throughput valuesTardval- list of tardiness valuesSysTardval- list of system tardiness values
-
-
Method Details
-
tget
Extracts rows from the table matching the specified name (station or class).- Parameters:
T- the table to extract fromanyname- name of station or class to match- Returns:
- filtered table containing matching rows
-
tget
Extracts rows from the table matching both station and class names.- Parameters:
T- the table to extract fromstationname- name of the station to matchclassname- name of the job class to match- Returns:
- filtered table containing matching rows
-
get
Returns the values from the specified column. -
getArvR
-
getClassNames
Returns the list of job class names.- Returns:
- list of class names
-
setClassNames
Sets the list of job class names.- Parameters:
classNames- list of class names to set
-
getQLen
Returns the queue length values from the table.- Returns:
- list of queue length values
-
getResidT
Returns the residence time values from the table.- Returns:
- list of residence time values
-
getRespT
Returns the response time values from the table.- Returns:
- list of response time values
-
getStationNames
Returns the list of station names.- Returns:
- list of station names
-
setStationNames
Sets the list of station names.- Parameters:
stationNames- list of station names to set
-
getTput
-
getTard
Returns the tardiness values from the table if available.- Returns:
- list of tardiness values, or empty list if not available
-
getSysTard
Returns the system tardiness values from the table if available.- Returns:
- list of system tardiness values, or empty list if not available
-
getUtil
Returns the utilization values from the table.- Returns:
- list of utilization values
-
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
-
printTable
public void printTable() -
printTable
-
setNumberOfDigits
public void setNumberOfDigits(int nd) Sets the number of decimal digits to display in formatted output.- Parameters:
nd- number of decimal digits
-
setOptions
Sets the solver options for this table.- Overrides:
setOptionsin classAvgTable- Parameters:
options- solver options to associate with this table
-
tget
-
tget
-
tget
-