Package jline.lang

Class ClassSwitchMatrix

java.lang.Object
jline.lang.ClassSwitchMatrix

public class ClassSwitchMatrix extends Object
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 Details

    • ClassSwitchMatrix

      public ClassSwitchMatrix(double scalar)
    • ClassSwitchMatrix

      public ClassSwitchMatrix(int numRows, int numCols, int arrayLength)
    • ClassSwitchMatrix

      public ClassSwitchMatrix(int numRows, int numCols)
    • ClassSwitchMatrix

      public ClassSwitchMatrix(Matrix matrix)
    • ClassSwitchMatrix

      public ClassSwitchMatrix(List<Double> array)
  • Method Details

    • get

      public double get(int r, int c)
    • getMatrix

      public Matrix 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

      public void set(JobClass jc1, JobClass jc2, double value)
    • setTo

      public void setTo(Matrix m1)
    • toArray2D

      public double[][] toArray2D()