Package jline.io
Class Ret.DistributionResult
java.lang.Object
jline.io.Ret.DistributionResult
- Enclosing class:
Ret
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 Summary
FieldsModifier and TypeFieldDescriptionThe CDF data organized as a cell array [stations x classes].Type of distribution (e.g., "response_time", "passage_time").booleanIndicates whether this is a transient distribution.intNumber of job classes in the model.intNumber of stations in the model.doubleRuntime for computing the distribution.Time points for transient distributions. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.DistributionResult(int numStations, int numClasses, String distributionType) Constructor for steady-state distributions.DistributionResult(int numStations, int numClasses, String distributionType, Matrix timePoints) Constructor for transient distributions. -
Method Summary
Modifier and TypeMethodDescriptionGets the complete CDF data structure.getCdf(int station, int jobClass) Gets the CDF for a specific station and class.booleanhasCdf(int station, int jobClass) Checks if the CDF data is available for a specific station and class.voidSets the CDF for a specific station and class.voidsetExponentialApproximation(int station, int jobClass, double meanValue) Sets an exponential approximation CDF based on mean value.
-
Field Details
-
cdfData
The CDF data organized as a cell array [stations x classes]. Each cell contains a matrix with [quantile, value] pairs. -
numStations
public int numStationsNumber of stations in the model. -
numClasses
public int numClassesNumber of job classes in the model. -
distributionType
Type of distribution (e.g., "response_time", "passage_time"). -
isTransient
public boolean isTransientIndicates whether this is a transient distribution. -
timePoints
Time points for transient distributions. -
runtime
public double runtimeRuntime for computing the distribution.
-
-
Constructor Details
-
DistributionResult
public DistributionResult()Default constructor. -
DistributionResult
Constructor for steady-state distributions.- Parameters:
numStations- number of stationsnumClasses- number of classesdistributionType- type of distribution
-
DistributionResult
public DistributionResult(int numStations, int numClasses, String distributionType, Matrix timePoints) Constructor for transient distributions.- Parameters:
numStations- number of stationsnumClasses- number of classesdistributionType- type of distributiontimePoints- time points for transient analysis
-
-
Method Details
-
setCdf
Sets the CDF for a specific station and class.- Parameters:
station- station indexjobClass- class indexcdf- CDF matrix with [quantile, value] pairs
-
getCdf
Gets the CDF for a specific station and class.- Parameters:
station- station indexjobClass- 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 indexjobClass- class indexmeanValue- 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 indexjobClass- class index- Returns:
- true if CDF data is available
-
getAllCdfData
Gets the complete CDF data structure.- Returns:
- the CDF data as a list of lists of matrices
-