Package jline.solvers

Class AvgTable

  • All Implemented Interfaces:

    
    public abstract class AvgTable
    
                        

    Abstract base class for representing average performance metrics tables.

    AvgTable provides a unified interface for storing and accessing performance metrics computed by various solvers in LINE. The table stores metrics such as throughput, utilization, queue length, and response time organized by stations and job classes.

    Subclasses implement specific table formats for different types of performance metrics and provide specialized printing methods for displaying results in human-readable formats.

    The underlying data is stored as a Matrix and can be accessed either column-wise or as a complete matrix. The class includes utilities for sanitizing numerical results to handle small floating-point perturbations.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      List<Double> get(int col) Retrieves a specific column from the table as a list.
      Matrix getData() Returns the underlying matrix data.
      abstract void print() Prints the table contents in a human-readable format.
      void sanitize() Sanitizes the table data to fix small numerical perturbations.
      Matrix toMatrix() Returns the table data as a Matrix after sanitizing numerical values.
      void setOptions(SolverOptions options) Sets the solver options associated with this table.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AvgTable

        AvgTable(Matrix table)
        Constructs an AvgTable from a Matrix.
        Parameters:
        table - the matrix containing performance metrics data
      • AvgTable

        AvgTable(ArrayList<List<Double>> table)
        Constructs an AvgTable from a list of lists.
        Parameters:
        table - the data as a list of lists, where each inner list represents a row
    • Method Detail

      • get

         List<Double> get(int col)

        Retrieves a specific column from the table as a list.

        Parameters:
        col - the column index to retrieve
        Returns:

        the column data as a List of Double values

      • getData

         Matrix getData()

        Returns the underlying matrix data.

        Returns:

        the Matrix containing the performance metrics

      • print

         abstract void print()

        Prints the table contents in a human-readable format. Implementation is provided by subclasses for specific table types.

      • sanitize

         void sanitize()

        Sanitizes the table data to fix small numerical perturbations.

        This method rounds values that are very close to integers to their nearest integer values, and sets very small values to zero to eliminate numerical noise that can accumulate during floating-point computations.

      • toMatrix

         Matrix toMatrix()

        Returns the table data as a Matrix after sanitizing numerical values.

        Returns:

        the sanitized Matrix containing the performance metrics

      • setOptions

         void setOptions(SolverOptions options)

        Sets the solver options associated with this table.

        Parameters:
        options - the solver options used when computing this table