Package jline.io
Class WfCommonsOptions
java.lang.Object
jline.io.WfCommonsOptions
Options for loading WfCommons workflow files.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDistribution type to use for task service times. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WfCommonsOptionsCreate options with deterministic service times.static WfCommonsOptionsCreate options with exponential distribution.doubleGet the default runtime when execution data is missing.doubleGet the default SCV for APH/HyperExp distributions.Get the distribution type.booleanCheck if metadata should be stored.booleanCheck if execution data should be used.setDefaultRuntime(double defaultRuntime) Set the default runtime when execution data is missing.setDefaultSCV(double defaultSCV) Set the default SCV for APH/HyperExp distributions.setDistributionType(WfCommonsOptions.DistributionType distributionType) Set the distribution type for task service times.setStoreMetadata(boolean storeMetadata) Set whether to store WfCommons metadata in activities.setUseExecutionData(boolean useExecutionData) Set whether to use execution data if available.
-
Constructor Details
-
WfCommonsOptions
public WfCommonsOptions()Create options with default values.
-
-
Method Details
-
getDistributionType
Get the distribution type.- Returns:
- Distribution type
-
setDistributionType
Set the distribution type for task service times.- Parameters:
distributionType- Distribution type- Returns:
- this for chaining
-
getDefaultSCV
public double getDefaultSCV()Get the default SCV for APH/HyperExp distributions.- Returns:
- Default SCV
-
setDefaultSCV
Set the default SCV for APH/HyperExp distributions.- Parameters:
defaultSCV- Default SCV value- Returns:
- this for chaining
-
getDefaultRuntime
public double getDefaultRuntime()Get the default runtime when execution data is missing.- Returns:
- Default runtime in seconds
-
setDefaultRuntime
Set the default runtime when execution data is missing.- Parameters:
defaultRuntime- Default runtime in seconds- Returns:
- this for chaining
-
isUseExecutionData
public boolean isUseExecutionData()Check if execution data should be used.- Returns:
- true if execution data is used
-
setUseExecutionData
Set whether to use execution data if available.- Parameters:
useExecutionData- true to use execution data- Returns:
- this for chaining
-
isStoreMetadata
public boolean isStoreMetadata()Check if metadata should be stored.- Returns:
- true if metadata is stored
-
setStoreMetadata
Set whether to store WfCommons metadata in activities.- Parameters:
storeMetadata- true to store metadata- Returns:
- this for chaining
-
exponential
Create options with exponential distribution.- Returns:
- Options configured for exponential distribution
-
deterministic
Create options with deterministic service times.- Returns:
- Options configured for deterministic distribution
-