Package jline.lang.workflow
Class Workflow
java.lang.Object
jline.lang.Model
jline.lang.workflow.Workflow
- All Implemented Interfaces:
Serializable
A computational workflow that can be converted to a phase-type distribution.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddActivity(String name, double meanServiceTime) addActivity(String name, Distribution hostDemand) voidvoidaddPrecedence(ActivityPrecedence[] precs) static ActivityPrecedenceAndFork(WorkflowActivity preAct, List<WorkflowActivity> postActs) static ActivityPrecedenceAndJoin(List<WorkflowActivity> preActs, WorkflowActivity postAct) composeParallel(Matrix alpha1, Matrix T1, Matrix alpha2, Matrix T2) composeRepeat(Matrix alpha, Matrix T, int count) composeSerial(Matrix alpha1, Matrix T1, Matrix alpha2, Matrix T2) static WorkflowfromWfCommons(String jsonFile) Load a workflow from a WfCommons JSON file.static WorkflowfromWfCommons(String jsonFile, WfCommonsOptions options) Load a workflow from a WfCommons JSON file with options.getActivity(String name) static ActivityPrecedenceLoop(WorkflowActivity preAct, List<WorkflowActivity> postActs, double count) static ActivityPrecedenceOrFork(WorkflowActivity preAct, List<WorkflowActivity> postActs, double[] probs) static ActivityPrecedenceOrJoin(List<WorkflowActivity> preActs, WorkflowActivity postAct) static ActivityPrecedence[]Serial(WorkflowActivity... activities) toPH()validate()Methods inherited from class jline.lang.Model
getName, getVersion, setName, setVersion
-
Constructor Details
-
Workflow
-
-
Method Details
-
addActivity
-
addActivity
-
addPrecedence
-
addPrecedence
-
getActivity
-
getActivities
-
getPrecedences
-
validate
-
toPH
-
composeSerial
-
composeParallel
-
composeRepeat
-
Serial
-
AndFork
-
AndJoin
-
OrFork
public static ActivityPrecedence OrFork(WorkflowActivity preAct, List<WorkflowActivity> postActs, double[] probs) -
OrJoin
-
Loop
public static ActivityPrecedence Loop(WorkflowActivity preAct, List<WorkflowActivity> postActs, double count) -
fromWfCommons
Load a workflow from a WfCommons JSON file.WfCommons (https://github.com/wfcommons/workflow-schema) is a standard format for representing scientific workflow traces.
- Parameters:
jsonFile- Path to the WfCommons JSON file- Returns:
- Workflow object
- Throws:
IOException- If the file cannot be read
-
fromWfCommons
Load a workflow from a WfCommons JSON file with options.- Parameters:
jsonFile- Path to the WfCommons JSON fileoptions- Loader options- Returns:
- Workflow object
- Throws:
IOException- If the file cannot be read
-