Class ClosedMultiToSingleSolverWrapper
java.lang.Object
solvers.Solver
solvers.dispatchers.wrappers.ClosedMultiToSingleSolverWrapper
- Direct Known Subclasses:
IterativeClosedMultiToSingleSolverWrapper
Wrapper class for single-class queueing models
Uses multi-class algorithm classes for solving the models
For iterative algorithms use IterativeClosedMultiToSingleSolverWrapper
- Author:
- Abhimanyu Chugh Modified by Ben Pahnke
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SolverAlgorithmprotected intprotected double[][]static final booleanprotected double[][][]protected SolverMultiFields 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.booleanInitializes the solver with the model parameters.voidsolve()Must be implemented to create a single class model solver.Methods inherited from class Solver
getQueueLen, getQueueLen, getResTime, getResTime, getThroughput, getThroughput, getTotResTime, getTotThroughput, getTotUser, getUtilization, getUtilization, printIndices, toString
-
Field Details
-
algorithm
-
solver
-
DEBUG
public static final boolean DEBUG- See Also:
-
customers
protected int customers -
serviceTimes
protected double[][][] serviceTimes -
custVisits
protected double[][] custVisits
-
-
Constructor Details
-
ClosedMultiToSingleSolverWrapper
public ClosedMultiToSingleSolverWrapper(SolverAlgorithm alg, ExactModel model) throws SolverException, InternalErrorException
-
-
Method Details
-
input
Description copied from class:SolverInitializes the solver with the model parameters. It must be called before trying to solve the model. -
solve
-
hasSufficientProcessingCapacity
public boolean hasSufficientProcessingCapacity()Description copied from class:SolverA 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
-