Package jline.io

Class Ret.DistributionResult

  • All Implemented Interfaces:

    
    public class Ret.DistributionResult
    
                        

    Unified result type for distribution computations in queueing network solvers.

    This class provides a standardized interface for returning cumulative distribution functions (CDFs) from various distribution analyses including:

    • Response time distributions
    • Passage time distributions
    • Queue length distributions
    • Transient distributions at specific time points

    The CDF data is organized as a 2D structure indexed by [station][class], where each element contains a matrix of [quantile, value] pairs representing the empirical CDF.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void setCdf(int station, int jobClass, Matrix cdf) Sets the CDF for a specific station and class.
      Matrix getCdf(int station, int jobClass) Gets the CDF for a specific station and class.
      void setExponentialApproximation(int station, int jobClass, double meanValue) Sets an exponential approximation CDF based on mean value.
      boolean hasCdf(int station, int jobClass) Checks if the CDF data is available for a specific station and class.
      List<List<Matrix>> getAllCdfData() Gets the complete CDF data structure.
      • Methods inherited from class java.lang.Object

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

      • Ret.DistributionResult

        Ret.DistributionResult()
        Default constructor.
      • Ret.DistributionResult

        Ret.DistributionResult(int numStations, int numClasses, String distributionType)
        Constructor for steady-state distributions.
        Parameters:
        numStations - number of stations
        numClasses - number of classes
        distributionType - type of distribution
      • Ret.DistributionResult

        Ret.DistributionResult(int numStations, int numClasses, String distributionType, Matrix timePoints)
        Constructor for transient distributions.
        Parameters:
        numStations - number of stations
        numClasses - number of classes
        distributionType - type of distribution
        timePoints - time points for transient analysis
    • Method Detail

      • setCdf

         void setCdf(int station, int jobClass, Matrix cdf)

        Sets the CDF for a specific station and class.

        Parameters:
        station - station index
        jobClass - class index
        cdf - CDF matrix with [quantile, value] pairs
      • getCdf

         Matrix getCdf(int station, int jobClass)

        Gets the CDF for a specific station and class.

        Parameters:
        station - station index
        jobClass - class index
        Returns:

        CDF matrix with [quantile, value] pairs

      • setExponentialApproximation

         void setExponentialApproximation(int station, int jobClass, double meanValue)

        Sets an exponential approximation CDF based on mean value. This is used as a default approximation when exact CDFs are not available.

        Parameters:
        station - station index
        jobClass - class index
        meanValue - mean value for the exponential distribution
      • hasCdf

         boolean hasCdf(int station, int jobClass)

        Checks if the CDF data is available for a specific station and class.

        Parameters:
        station - station index
        jobClass - class index
        Returns:

        true if CDF data is available

      • getAllCdfData

         List<List<Matrix>> getAllCdfData()

        Gets the complete CDF data structure.

        Returns:

        the CDF data as a list of lists of matrices