Package jline.api.wkflow
Object Wkflow_pattern_updater
-
- All Implemented Interfaces:
public class Wkflow_pattern_updater
Workflow pattern updater for simplifying and optimizing workflow networks.
This class is responsible for updating workflow networks after recognizing basic workflow patterns (sequence, parallel, loop, branch) by combining pattern detection with phase-type distribution convolution.
Based on AUTO_Pattern_Update.m from the MDN toolbox.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
Wkflow_pattern_updater.ServiceParameters
Data class to represent service parameters (phase-type distributions).
public final class
Wkflow_pattern_updater.UpdatedWorkflow
Data class to represent the updated workflow.
-
Field Summary
Fields Modifier and Type Field Description public final static Wkflow_pattern_updater
INSTANCE
-
Method Summary
Modifier and Type Method Description final static Wkflow_pattern_updater.UpdatedWorkflow
updatePatterns(Matrix linkMatrix, List<Integer> serviceNodes, List<Integer> forkNodes, List<Integer> joinNodes, List<Integer> routerNodes, Map<Integer, Wkflow_pattern_updater.ServiceParameters> serviceParams)
Update workflow network by simplifying detected patterns. final static Boolean
validateUpdatedWorkflow(Wkflow_pattern_updater.UpdatedWorkflow workflow)
Validate the updated workflow structure. final static Map<String, Object>
getUpdateStats(Matrix originalMatrix, Wkflow_pattern_updater.UpdatedWorkflow updatedWorkflow)
Get statistics about the pattern update process. -
-
Method Detail
-
updatePatterns
final static Wkflow_pattern_updater.UpdatedWorkflow updatePatterns(Matrix linkMatrix, List<Integer> serviceNodes, List<Integer> forkNodes, List<Integer> joinNodes, List<Integer> routerNodes, Map<Integer, Wkflow_pattern_updater.ServiceParameters> serviceParams)
Update workflow network by simplifying detected patterns.
- Parameters:
linkMatrix
- Original workflow link matrixserviceNodes
- List of service node IDsforkNodes
- List of fork node IDsjoinNodes
- List of join node IDsrouterNodes
- List of router node IDsserviceParams
- Original service parameters (PH distributions)- Returns:
Updated workflow with simplified patterns
-
validateUpdatedWorkflow
final static Boolean validateUpdatedWorkflow(Wkflow_pattern_updater.UpdatedWorkflow workflow)
Validate the updated workflow structure.
-
getUpdateStats
final static Map<String, Object> getUpdateStats(Matrix originalMatrix, Wkflow_pattern_updater.UpdatedWorkflow updatedWorkflow)
Get statistics about the pattern update process.
-
-
-
-