Package jline.solvers

Class NetworkAvgTable

java.lang.Object
jline.solvers.AvgTable
jline.solvers.NetworkAvgTable

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.

See Also:
  • 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 values
      Uval - list of utilization values
      Rval - list of response time values
      Residval - list of residence time values
      ArvRval - list of arrival rate values
      Tval - 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 values
      Uval - list of utilization values
      Rval - list of response time values
      Residval - list of residence time values
      ArvRval - list of arrival rate values
      Tval - list of throughput values
      Tardval - list of tardiness values
      SysTardval - list of system tardiness values
  • Method Details

    • tget

      public 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 from
      anyname - name of station or class to match
      Returns:
      filtered table containing matching rows
    • tget

      public 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 from
      stationname - name of the station to match
      classname - name of the job class to match
      Returns:
      filtered table containing matching rows
    • get

      public List<Double> get(int col)
      Returns the values from the specified column.
      Overrides:
      get in class AvgTable
      Parameters:
      col - column index (0=QLen, 1=Util, 2=RespT, 3=ResidT, 4=ArvR, 5=Tput)
      Returns:
      list of values from the column
    • getArvR

      public List<Double> getArvR()
    • getClassNames

      public List<String> getClassNames()
      Returns the list of job class names.
      Returns:
      list of class names
    • setClassNames

      public void setClassNames(List<String> classNames)
      Sets the list of job class names.
      Parameters:
      classNames - list of class names to set
    • getQLen

      public List<Double> getQLen()
      Returns the queue length values from the table.
      Returns:
      list of queue length values
    • getResidT

      public List<Double> getResidT()
      Returns the residence time values from the table.
      Returns:
      list of residence time values
    • getRespT

      public List<Double> getRespT()
      Returns the response time values from the table.
      Returns:
      list of response time values
    • getStationNames

      public List<String> getStationNames()
      Returns the list of station names.
      Returns:
      list of station names
    • setStationNames

      public void setStationNames(List<String> stationNames)
      Sets the list of station names.
      Parameters:
      stationNames - list of station names to set
    • getTput

      public List<Double> getTput()
    • getTard

      public List<Double> getTard()
      Returns the tardiness values from the table if available.
      Returns:
      list of tardiness values, or empty list if not available
    • getSysTard

      public List<Double> getSysTard()
      Returns the system tardiness values from the table if available.
      Returns:
      list of system tardiness values, or empty list if not available
    • getUtil

      public List<Double> getUtil()
      Returns the utilization values from the table.
      Returns:
      list of utilization values
    • print

      public void print()
      Description copied from class: AvgTable
      Prints the table contents in a human-readable format. Implementation is provided by subclasses for specific table types.
      Specified by:
      print in class AvgTable
    • print

      public void print(SolverOptions options)
    • printTable

      public void printTable()
    • printTable

      public void printTable(SolverOptions options)
    • setNumberOfDigits

      public void setNumberOfDigits(int nd)
      Sets the number of decimal digits to display in formatted output.
      Parameters:
      nd - number of decimal digits
    • setOptions

      public void setOptions(SolverOptions options)
      Sets the solver options for this table.
      Overrides:
      setOptions in class AvgTable
      Parameters:
      options - solver options to associate with this table
    • tget

      public NetworkAvgTable tget(Station station, JobClass jobclass)
    • tget

      public NetworkAvgTable tget(String anyname)
    • tget

      public NetworkAvgTable tget(String stationname, String classname)