Package jline.api.fj
Class FJConvert
java.lang.Object
jline.api.fj.FJConvert
-
Method Summary
Modifier and TypeMethodDescriptionstatic FJArrivalconvertToFJArrival(Matrix D0, Matrix D1) Convert LINE MAP to FJ arrival formatstatic FJServiceconvertToFJService(Matrix S, Matrix s, Matrix tau) Convert LINE PH to FJ service formatstatic FJServiceConvert LINE process cell {D0, D1} to FJ service format.extractFJParams(NetworkStruct sn, FJInfo fjInfo) Extract Fork-Join parameters from network structure (port of MATLAB fj_extract_params): the arrival MAP of every class is read from the station of the Source node, the service PH from the station of the first parallel queue (all queues are homogeneous), both converted withfj_dist2fj(jline.util.matrix.MatrixCell, java.lang.String, jline.lang.NetworkStruct, int, int).static Objectfj_dist2fj(MatrixCell lineMAP, String distType, NetworkStruct sn, int ist, int r) Convert a LINE MAP representation {D0, D1} to FJ_codes format (port of MATLAB fj_dist2fj).static FJArrivalfj_dist2fj_arrival(MatrixCell lineMAP, NetworkStruct sn, int ist, int r) The "arrival" branch offj_dist2fj(jline.util.matrix.MatrixCell, java.lang.String, jline.lang.NetworkStruct, int, int).static FJServicefj_dist2fj_service(MatrixCell lineMAP, NetworkStruct sn, int ist, int r) The "service" branch offj_dist2fj(jline.util.matrix.MatrixCell, java.lang.String, jline.lang.NetworkStruct, int, int).
-
Method Details
-
extractFJParams
public static Pair<List<FJArrival>,List<FJService>> extractFJParams(NetworkStruct sn, FJInfo fjInfo) Extract Fork-Join parameters from network structure (port of MATLAB fj_extract_params): the arrival MAP of every class is read from the station of the Source node, the service PH from the station of the first parallel queue (all queues are homogeneous), both converted withfj_dist2fj(jline.util.matrix.MatrixCell, java.lang.String, jline.lang.NetworkStruct, int, int). A class whose arrival rate is not below its service rate raises a warning, as in MATLAB.- Parameters:
sn- network structure (after sn_nonmarkov_toph conversion)fjInfo- FJ topology info fromFJValidation.isHomogeneous(jline.lang.NetworkStruct)- Returns:
- the per-class arrival and service descriptors
-
fj_dist2fj
public static Object fj_dist2fj(MatrixCell lineMAP, String distType, NetworkStruct sn, int ist, int r) Convert a LINE MAP representation {D0, D1} to FJ_codes format (port of MATLAB fj_dist2fj). Supported laws are Exp, 2-phase HyperExp, 2-phase Erlang and (arrivals only) 2-state MAP; more than 2 phases or any other process type is an error. -
fj_dist2fj_arrival
The "arrival" branch offj_dist2fj(jline.util.matrix.MatrixCell, java.lang.String, jline.lang.NetworkStruct, int, int). -
fj_dist2fj_service
The "service" branch offj_dist2fj(jline.util.matrix.MatrixCell, java.lang.String, jline.lang.NetworkStruct, int, int). -
convertToFJArrival
Convert LINE MAP to FJ arrival format -
convertToFJService
Convert LINE PH to FJ service format -
convertToFJServiceFromProc
Convert LINE process cell {D0, D1} to FJ service format.
-