Class SolverSingleOpen
java.lang.Object
solvers.Solver
solvers.singleSolverAlgorithms.SolverSingleOpen
Solves a single class open model.
To read about the formulas used to solve the system, see:
E.D. Lazowska, J. Zahorjan, G.S. Graham, K. Sevcik
Quantitative System Performance,
Prentice Hall, 1984
NOT USED
To read about the formulas used to solve the system, see:
E.D. Lazowska, J. Zahorjan, G.S. Graham, K. Sevcik
Quantitative System Performance,
Prentice Hall, 1984
NOT USED
- Author:
- Federico Granata, Stefano Omini
-
Field Summary
FieldsFields inherited from class Solver
DELAY, HOL, LD, LI, name, PRS, queueLen, residenceTime, servTime, stations, throughput, totRespTime, totThroughput, totUser, type, utilization, visits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanA system is said to have sufficient capacity to process a given loadlambdaif no service center is saturated as a result of such a load.voidsolve()Solves the system, after checking that the system contains no LD station (only LI and DELAY stations are allowed).voidsolveLI()Solves the system with only LI and DELAY stations.Methods inherited from class Solver
getQueueLen, getQueueLen, getResTime, getResTime, getThroughput, getThroughput, getTotResTime, getTotThroughput, getTotUser, getUtilization, getUtilization, input, printIndices, toString
-
Field Details
-
lambda
protected double lambdaarrival rate
-
-
Constructor Details
-
SolverSingleOpen
public SolverSingleOpen(double lambda, int stations) Constructor- Parameters:
lambda- the arrival ratestations- the number of stations
-
-
Method Details
-
solve
-
solveLI
public void solveLI()Solves the system with only LI and DELAY stations. -
hasSufficientProcessingCapacity
public boolean hasSufficientProcessingCapacity()A system is said to have sufficient capacity to process a given loadlambdaif no service center is saturated as a result of such a load.
WARNING: This method should be called before solving the system.- Specified by:
hasSufficientProcessingCapacityin classSolver- Returns:
- true if sufficient capacity exists for the given workload, false otherwise
-