Package jline.lang
Class ClassSwitchMatrix
java.lang.Object
jline.lang.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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClassSwitchMatrix(double scalar) ClassSwitchMatrix(int numRows, int numCols) ClassSwitchMatrix(int numRows, int numCols, int arrayLength) ClassSwitchMatrix(List<Double> array) ClassSwitchMatrix(Matrix matrix) -
Method Summary
-
Constructor Details
-
ClassSwitchMatrix
public ClassSwitchMatrix(double scalar) -
ClassSwitchMatrix
public ClassSwitchMatrix(int numRows, int numCols, int arrayLength) -
ClassSwitchMatrix
public ClassSwitchMatrix(int numRows, int numCols) -
ClassSwitchMatrix
-
ClassSwitchMatrix
-
-
Method Details
-
get
public double get(int r, int c) -
getMatrix
Expose the raw Matrix only if callers genuinely need it -
getNumCols
public int getNumCols() -
getNumRows
public int getNumRows() -
length
public int length() -
set
public void set(int jc1, int jc2, double value) -
set
-
setTo
-
toArray2D
public double[][] toArray2D()
-