Package jline.io

Class Ret.DistributionResult

java.lang.Object
jline.io.Ret.DistributionResult
Enclosing class:
Ret

public static class Ret.DistributionResult extends Object
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.

  • Field Details

    • cdfData

      public List<List<Matrix>> cdfData
      The CDF data organized as a cell array [stations x classes]. Each cell contains a matrix with [quantile, value] pairs.
    • numStations

      public int numStations
      Number of stations in the model.
    • numClasses

      public int numClasses
      Number of job classes in the model.
    • distributionType

      public String distributionType
      Type of distribution (e.g., "response_time", "passage_time").
    • isTransient

      public boolean isTransient
      Indicates whether this is a transient distribution.
    • timePoints

      public Matrix timePoints
      Time points for transient distributions.
    • runtime

      public double runtime
      Runtime for computing the distribution.
  • Constructor Details

    • DistributionResult

      public DistributionResult()
      Default constructor.
    • DistributionResult

      public 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
    • DistributionResult

      public 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 Details

    • setCdf

      public 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

      public 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

      public 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

      public 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

      public List<List<Matrix>> getAllCdfData()
      Gets the complete CDF data structure.
      Returns:
      the CDF data as a list of lists of matrices