Class NetworkAvgTable
-
- All Implemented Interfaces:
public class NetworkAvgTable extends AvgTable
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.
-
-
Field Summary
Fields Modifier and Type Field Description public List<String>classNamespublic List<String>stationNames
-
Method Summary
Modifier and Type Method Description List<String>getClassNames()Returns the list of job class names. voidsetClassNames(List<String> classNames)Sets the list of job class names. List<String>getStationNames()Returns the list of station names. 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. List<Double>get(int col)Returns the values from the specified column. List<Double>getArvR()List<Double>getQLen()Returns the queue length values from the table. List<Double>getResidT()Returns the residence time values from the table. List<Double>getRespT()Returns the response time values from the table. List<Double>getTput()List<Double>getUtil()Returns the utilization values from the table. voidprint()Prints the table contents in a human-readable format. voidprint(SolverOptions options)voidprintTable()voidprintTable(SolverOptions options)voidsetNumberOfDigits(int nd)Sets the number of decimal digits to display in formatted output. voidsetOptions(SolverOptions options)Sets the solver options for this table. NetworkAvgTabletget(Station station, JobClass jobclass)NetworkAvgTabletget(String anyname)NetworkAvgTabletget(String stationname, String classname)-
-
Constructor Detail
-
NetworkAvgTable
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
-
-
Method Detail
-
getClassNames
List<String> getClassNames()
Returns the list of job class names.
- Returns:
list of class names
-
setClassNames
void setClassNames(List<String> classNames)
Sets the list of job class names.
- Parameters:
classNames- list of class names to set
-
getStationNames
List<String> getStationNames()
Returns the list of station names.
- Returns:
list of station names
-
setStationNames
void setStationNames(List<String> stationNames)
Sets the list of station names.
- Parameters:
stationNames- list of station names to set
-
tget
static AvgTable tget(NetworkAvgTable T, String anyname)
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
static AvgTable tget(NetworkAvgTable T, String stationname, String classname)
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
List<Double> get(int col)
Returns the values from the specified column.
- Parameters:
col- column index (0=QLen, 1=Util, 2=RespT, 3=ResidT, 4=ArvR, 5=Tput)- Returns:
list of values from the column
-
getQLen
List<Double> getQLen()
Returns the queue length values from the table.
- Returns:
list of queue length values
-
getResidT
List<Double> getResidT()
Returns the residence time values from the table.
- Returns:
list of residence time values
-
getRespT
List<Double> getRespT()
Returns the response time values from the table.
- Returns:
list of response time values
-
getUtil
List<Double> getUtil()
Returns the utilization values from the table.
- Returns:
list of utilization values
-
print
void print()
Prints the table contents in a human-readable format. Implementation is provided by subclasses for specific table types.
-
print
void print(SolverOptions options)
-
printTable
void printTable()
-
printTable
void printTable(SolverOptions options)
-
setNumberOfDigits
void setNumberOfDigits(int nd)
Sets the number of decimal digits to display in formatted output.
- Parameters:
nd- number of decimal digits
-
setOptions
void setOptions(SolverOptions options)
Sets the solver options for this table.
- Parameters:
options- solver options to associate with this table
-
tget
NetworkAvgTable tget(Station station, JobClass jobclass)
-
tget
NetworkAvgTable tget(String anyname)
-
tget
NetworkAvgTable tget(String stationname, String classname)
-
-
-
-