Package jline.lang
Class ClassSwitchMatrix
-
- All Implemented Interfaces:
public class ClassSwitchMatrix
Matrix representation for job class switching probabilities in queueing networks.
ClassSwitchMatrix encapsulates the class switching behavior at nodes where jobs can change their class during service. This is essential for modeling systems where jobs undergo different processing stages or priority changes during their traversal through the network.
Key features:
- Stochastic matrix representation [classes x classes]
- Entry (i,j) represents probability of switching from class i to class j
- Row sums equal 1.0 for valid probability distributions
- Support for both deterministic and probabilistic class switching
- Integration with routing matrix computations
Common applications include modeling priority upgrades/downgrades, multi-stage service processes, and feedback systems with class-dependent routing.
- Since:
1.0
-
-
Constructor Summary
Constructors Constructor Description ClassSwitchMatrix(double scalar)
ClassSwitchMatrix(int numRows, int numCols, int arrayLength)
ClassSwitchMatrix(int numRows, int numCols)
ClassSwitchMatrix(Matrix matrix)
ClassSwitchMatrix(List<Double> array)
-
Method Summary
Modifier and Type Method Description double
get(int r, int c)
Matrix
getMatrix()
Expose the raw Matrix only if callers genuinely need it int
getNumCols()
int
getNumRows()
int
length()
void
set(int jc1, int jc2, double value)
void
set(JobClass jc1, JobClass jc2, double value)
void
setTo(Matrix m1)
Array<Array<double>>
toArray2D()
-
-
Constructor Detail
-
ClassSwitchMatrix
ClassSwitchMatrix(double scalar)
-
ClassSwitchMatrix
ClassSwitchMatrix(int numRows, int numCols, int arrayLength)
-
ClassSwitchMatrix
ClassSwitchMatrix(int numRows, int numCols)
-
ClassSwitchMatrix
ClassSwitchMatrix(Matrix matrix)
-
-
Method Detail
-
get
double get(int r, int c)
-
getNumCols
int getNumCols()
-
getNumRows
int getNumRows()
-
length
int length()
-
set
void set(int jc1, int jc2, double value)
-
-
-
-