Class MoMSolver
java.lang.Object
solvers.queueingnet.QNSolver
solvers.queueingnet.MoMSolver
- All Implemented Interfaces:
QNSolverInterface
This class implements the MoMSolver object, which computes the normalising
constant for a network using the MoM algorithm. This algorithm is linear
system solver agnostic.
- Author:
- Michail Makaronidis, 2010
-
Field Summary
Fields inherited from class QNSolver
G, memUsage, qnm, totalTimer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidComputes the normalising constant for the specified QNModel.voidComputes and stores the performance measures (mean throughputs and mean queue lengths for the current model.voidPrints the time needed for the solver object to evaluate the network.voidPrints a short welcome message that says which solver is used.Methods inherited from class QNSolver
getNormalisingConstant, printMemUsage
-
Constructor Details
-
MoMSolver
Creates and initialises a RECALSolver object.- Parameters:
qnm- The QNModel object that we are working onnThreads- The number of threads the MoMSolver must use for solution. If nThreads >= 2, then LinearSystem.ModularSolver is used.
-
-
Method Details
-
printWelcome
public void printWelcome()Prints a short welcome message that says which solver is used.- Specified by:
printWelcomein interfaceQNSolverInterface- Overrides:
printWelcomein classQNSolver
-
computeNormalisingConstant
Description copied from class:QNSolverComputes the normalising constant for the specified QNModel.- Specified by:
computeNormalisingConstantin interfaceQNSolverInterface- Overrides:
computeNormalisingConstantin classQNSolver- Throws:
InternalErrorException- * @throws InternalErrorException An exception is thrown if any internal error is encountered during computations.
-
computePerformanceMeasures
Description copied from class:QNSolverComputes and stores the performance measures (mean throughputs and mean queue lengths for the current model.- Specified by:
computePerformanceMeasuresin interfaceQNSolverInterface- Overrides:
computePerformanceMeasuresin classQNSolver- Throws:
InternalErrorException- Thrown when any computation fails
-
printTimeStatistics
public void printTimeStatistics()Description copied from class:QNSolverPrints the time needed for the solver object to evaluate the network.- Specified by:
printTimeStatisticsin interfaceQNSolverInterface- Overrides:
printTimeStatisticsin classQNSolver
-