Interface QNSolverInterface
- All Known Implementing Classes:
CoMoMBTFSolver, CoMoMSimpleSolver, CoMoMSolver, ConvolutionSolver, MoMSolver, MonteCarloLogisticSolver, MonteCarloSolver, QNSolver, RECALNonRecursiveSolver, RECALSolver, RecursiveSolver, RGFSolver, TreeConvolutionSolver, TreeMVASolver
public interface QNSolverInterface
Interface which every solver must implement, as it defines a common way of
performing the same operations, such as initialisation, evaluation and
returning the results.
- Author:
- Michail Makaronidis, 2010
-
Method Summary
Modifier and TypeMethodDescriptionvoidComputes and stores the normalising constant.voidComputes and stores the performance measures (mean throughputs and mean queue lengths for the current model.Returns a string representing the normalising constant.voidPrints the highest actual memory usage during the network's evaluation.voidPrints the time needed for the solver object to evaluate the network.voidPrints a short welcome message that says which solver is used.
-
Method Details
-
computeNormalisingConstant
void computeNormalisingConstant() throws InternalErrorException, OperationNotSupportedException, InconsistentLinearSystemException, BTFMatrixErrorExceptionComputes and stores the normalising constant.- Throws:
InternalErrorException- An exception is thrown if any internal error is encountered during computations.BTFMatrixErrorExceptionInconsistentLinearSystemExceptionOperationNotSupportedException
-
getNormalisingConstant
String getNormalisingConstant()Returns a string representing the normalising constant.- Returns:
- String representing the normalising constant
-
printWelcome
void printWelcome()Prints a short welcome message that says which solver is used. -
computePerformanceMeasures
Computes and stores the performance measures (mean throughputs and mean queue lengths for the current model.- Throws:
InternalErrorException- Thrown when any computation fails
-
printTimeStatistics
void printTimeStatistics()Prints the time needed for the solver object to evaluate the network. May print a more detailed time break-down. -
printMemUsage
void printMemUsage()Prints the highest actual memory usage during the network's evaluation.
-