Class CoMoMBasis
java.lang.Object
solvers.basis.Basis
solvers.basis.CoMoMBasis
- Direct Known Subclasses:
BTFCoMoMBasis
A class to encapsulate the Basis of CoMoM
The basis is intialised according to the initial conditions of CoMoM.
An ordered list of PopulationChangeVectors is generated to provide the indexOf() functionality
i.e. to return the index of a normalising constant in the basis.
Subclasses can specify a Comparator to sort this list as they choose.
Subclasses can specify a Comparator to sort this list as they choose.
- Author:
- Jack Bradshaw
-
Field Summary
Fields inherited from class Basis
basis, current_class, current_class_population, M, order, previous_basis, qnm, R, size, uncomputables -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidComputes Mean Throughput and Mean Queue Length performance indices and stores them in the queueing network model object, qnmReturns the Normalising Constant for the current computed populationgetOrder()getPopulationChangeVector(int index) Returns the population change vector.intindexOf(PopulationChangeVector n, int m) Finds the index of Normalising Constant G(N-n, m) as determined by n and mintFinds the index of Normalising Constant G(N-n, m) as determined by n and mvoidInitialises the basis for population (0,...0)voidprint()Prints the vectors in the 'order' vectorvoidvoidsetSize()Calculates the size of the basis to be store in variable sizeMethods inherited from class Basis
computatble, getCurrentClass, getCurrentClassPopulation, getNewValue, getOldValue, getSize, getUncomputables, initialiseForClass, reset_uncomputables, setComparator, setCurrentClassPopulation, setValue, sort, startBasisComputation
-
Constructor Details
-
CoMoMBasis
-
-
Method Details
-
indexOf
Finds the index of Normalising Constant G(N-n, m) as determined by n and m- Parameters:
n- Change in population vectorm- Multiplicity vector- Returns:
- Index of G(N-n, m) in basis
- Throws:
InternalErrorException
-
indexOf
Finds the index of Normalising Constant G(N-n, m) as determined by n and m- Parameters:
n- Change in population vectorm- index of queue added (0 for no queue added)- Returns:
- Index of G(N-n, m) in basis
- Throws:
InternalErrorException
-
getPopulationChangeVector
Returns the population change vector.- Parameters:
index- index in order- Returns:
- Vector store in 'order' at 'index'
-
print
public void print()Prints the vectors in the 'order' vector -
initialiseBasis
Initialises the basis for population (0,...0)- Specified by:
initialiseBasisin classBasis- Throws:
InternalErrorException
-
setSize
-
computePerformanceMeasures
Computes Mean Throughput and Mean Queue Length performance indices and stores them in the queueing network model object, qnm- Specified by:
computePerformanceMeasuresin classBasis- Throws:
InternalErrorException
-
getNormalisingConstant
Returns the Normalising Constant for the current computed population- Specified by:
getNormalisingConstantin classBasis- Returns:
- the resulting big rational
- Throws:
InternalErrorException
-
print_values
public void print_values() -
getOrder
-