Class FJConvertKt
-
- All Implemented Interfaces:
public final class FJConvertKt
-
-
Method Summary
Modifier and Type Method Description final static Pair<List<FJArrival>, List<FJService>>extractFJParams(NetworkStruct sn, FJInfo fjInfo)Extract Fork-Join parameters from network structureExtracts arrival and service processes for each class from the network, converting LINE distributions to FJ_codes format. final static FJArrivalconvertToFJArrival(Matrix D0, Matrix D1)Convert LINE MAP to FJ arrival formatComputes the stationary distribution of the underlying Markov chain to determine the correct arrival rate: lambda = pi * D1 * e. final static FJServiceconvertToFJService(Matrix S, Matrix s, Matrix tau)Convert LINE PH to FJ service formatUses the PH initial vector (pie from MAP representation) as the initial probability for phase selection. final static FJServiceconvertToFJServiceFromProc(MatrixCell proc)Convert LINE process cell {D0, D1} to FJ service format. -
-
Method Detail
-
extractFJParams
final static Pair<List<FJArrival>, List<FJService>> extractFJParams(NetworkStruct sn, FJInfo fjInfo)
Extract Fork-Join parameters from network structure
Extracts arrival and service processes for each class from the network, converting LINE distributions to FJ_codes format. Supports:
Exponential arrivals (single-phase MAP)
General MAP arrivals (multi-phase)
Exponential service (single-phase PH)
General PH/APH/Erlang/HyperExp/Coxian service (multi-phase)
- Parameters:
sn- Network structurefjInfo- Fork-Join topology information- Returns:
Pair of (arrivals per class, services per class)
-
convertToFJArrival
final static FJArrival convertToFJArrival(Matrix D0, Matrix D1)
Convert LINE MAP to FJ arrival format
Computes the stationary distribution of the underlying Markov chain to determine the correct arrival rate: lambda = pi * D1 * e.
- Parameters:
D0- D0 matrix (transitions without arrivals)D1- D1 matrix (transitions with arrivals)- Returns:
FJArrival
-
convertToFJService
final static FJService convertToFJService(Matrix S, Matrix s, Matrix tau)
Convert LINE PH to FJ service format
Uses the PH initial vector (pie from MAP representation) as the initial probability for phase selection. Mean service rate is computed as mu = 1 / (tau * (-S)^{-1} * e).
- Parameters:
S- Sub-generator matrix (negative diagonal = phase rates)s- Exit rate vector (s = -S * e for absorbing PH)tau- Initial probability vector- Returns:
FJService
-
convertToFJServiceFromProc
final static FJService convertToFJServiceFromProc(MatrixCell proc)
Convert LINE process cell {D0, D1} to FJ service format.
Extracts the sub-generator S=D0, exit rate vector s=-D0e (or D1e), and initial probability vector tau from the MAP/PH representation.
- Parameters:
proc- MatrixCell containing {D0, D1}- Returns:
FJService
-
-
-
-