Package jline.lang.workflow
Class WorkflowActivity
-
- All Implemented Interfaces:
-
java.io.Serializable,jline.lang.Copyable
public class WorkflowActivity extends Element
A computational activity in a Workflow.
-
-
Field Summary
Fields Modifier and Type Field Description public DistributionhostDemandpublic doublehostDemandMeanpublic doublehostDemandSCVpublic Workflowworkflowpublic intindexpublic Map<String, Object>metadataprotected Stringname
-
Constructor Summary
Constructors Constructor Description WorkflowActivity(Workflow workflow, String name, double meanServiceTime)WorkflowActivity(Workflow workflow, String name, Distribution hostDemand)
-
Method Summary
Modifier and Type Method Description DistributiongetHostDemand()voidsetHostDemand(Distribution hostDemand)doublegetHostDemandMean()doublegetHostDemandSCV()WorkflowgetWorkflow()intgetIndex()voidsetIndex(int index)Map<String, Object>getMetadata()Get optional metadata (e.g., from WfCommons). voidsetMetadata(Map<String, Object> metadata)Set optional metadata. voidsetHostDemand(double meanServiceTime)Pair<Matrix, Matrix>getPHRepresentation()intgetNumberOfPhases()booleanhasMetadata()Check if metadata is present. ObjectgetMetadataValue(String key)Get a metadata value by key. voidsetMetadataValue(String key, Object value)Set a metadata value. -
-
Constructor Detail
-
WorkflowActivity
WorkflowActivity(Workflow workflow, String name, Distribution hostDemand)
-
-
Method Detail
-
getHostDemand
Distribution getHostDemand()
-
setHostDemand
void setHostDemand(Distribution hostDemand)
-
getHostDemandMean
double getHostDemandMean()
-
getHostDemandSCV
double getHostDemandSCV()
-
getWorkflow
Workflow getWorkflow()
-
getIndex
int getIndex()
-
setIndex
void setIndex(int index)
-
getMetadata
Map<String, Object> getMetadata()
Get optional metadata (e.g., from WfCommons).
- Returns:
Metadata map or null if not set
-
setMetadata
void setMetadata(Map<String, Object> metadata)
Set optional metadata.
- Parameters:
metadata- Metadata map
-
setHostDemand
void setHostDemand(double meanServiceTime)
-
getPHRepresentation
Pair<Matrix, Matrix> getPHRepresentation()
-
getNumberOfPhases
int getNumberOfPhases()
-
hasMetadata
boolean hasMetadata()
Check if metadata is present.
- Returns:
true if metadata is set
-
getMetadataValue
Object getMetadataValue(String key)
Get a metadata value by key.
- Parameters:
key- Metadata key- Returns:
Value or null if not present
-
setMetadataValue
void setMetadataValue(String key, Object value)
Set a metadata value.
- Parameters:
key- Metadata keyvalue- Metadata value
-
-
-
-