Package jline.api.wkflow
Object Wkflow_branch_detector
-
- All Implemented Interfaces:
public class Wkflow_branch_detectorAutomatic branch structure detector for workflow networks.
This detector identifies branch patterns in workflow networks where execution splits into multiple paths with different probabilities and later converges at join points.
Based on AUTO_Branch_Detector.m from the MDN toolbox.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWkflow_branch_detector.BranchPatternData class to represent a branch pattern with probabilities.
-
Field Summary
Fields Modifier and Type Field Description public final static Wkflow_branch_detectorINSTANCE
-
Method Summary
Modifier and Type Method Description final static List<Wkflow_branch_detector.BranchPattern>detectBranches(Matrix linkMatrix, List<Integer> serviceNodes, List<Integer> joinNodes)Detect branch patterns in a workflow network. final static BooleanvalidateBranchPattern(Wkflow_branch_detector.BranchPattern pattern, Matrix linkMatrix)Validate branch pattern structure. final static Map<String, Double>calculateBranchDiversity(Wkflow_branch_detector.BranchPattern pattern)Calculate branch diversity metrics. final static Map<String, Object>getBranchStats(List<Wkflow_branch_detector.BranchPattern> patterns)Get branch pattern statistics. final static Pair<Integer, Double>findMostProbableBranch(Wkflow_branch_detector.BranchPattern pattern)Find the most probable branch in a pattern. final static Pair<Integer, Double>findLeastProbableBranch(Wkflow_branch_detector.BranchPattern pattern)Find the least probable branch in a pattern. -
-
Method Detail
-
detectBranches
final static List<Wkflow_branch_detector.BranchPattern> detectBranches(Matrix linkMatrix, List<Integer> serviceNodes, List<Integer> joinNodes)
Detect branch patterns in a workflow network.
- Parameters:
linkMatrix- Matrix containing workflow link information: - Column 1: start node IDs - Column 2: end node IDs - Column 3: transition probabilitiesserviceNodes- List of service node IDsjoinNodes- List of join node IDs- Returns:
List of branch patterns with their associated probabilities
-
validateBranchPattern
final static Boolean validateBranchPattern(Wkflow_branch_detector.BranchPattern pattern, Matrix linkMatrix)
Validate branch pattern structure.
-
calculateBranchDiversity
final static Map<String, Double> calculateBranchDiversity(Wkflow_branch_detector.BranchPattern pattern)
Calculate branch diversity metrics.
-
getBranchStats
final static Map<String, Object> getBranchStats(List<Wkflow_branch_detector.BranchPattern> patterns)
Get branch pattern statistics.
-
findMostProbableBranch
final static Pair<Integer, Double> findMostProbableBranch(Wkflow_branch_detector.BranchPattern pattern)
Find the most probable branch in a pattern.
-
findLeastProbableBranch
final static Pair<Integer, Double> findLeastProbableBranch(Wkflow_branch_detector.BranchPattern pattern)
Find the least probable branch in a pattern.
-
-
-
-