Package jline.lang.workflow
Class WorkflowActivity
java.lang.Object
jline.lang.Element
jline.lang.workflow.WorkflowActivity
- All Implemented Interfaces:
Serializable,Copyable
A computational activity in a Workflow.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowActivity(Workflow workflow, String name, double meanServiceTime) WorkflowActivity(Workflow workflow, String name, Distribution hostDemand) -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubleintgetIndex()Get optional metadata (e.g., from WfCommons).getMetadataValue(String key) Get a metadata value by key.intbooleanCheck if metadata is present.voidsetHostDemand(double meanServiceTime) voidsetHostDemand(Distribution hostDemand) voidsetIndex(int index) voidsetMetadata(Map<String, Object> metadata) Set optional metadata.voidsetMetadataValue(String key, Object value) Set a metadata value.
-
Constructor Details
-
WorkflowActivity
-
WorkflowActivity
-
-
Method Details
-
setHostDemand
public void setHostDemand(double meanServiceTime) -
setHostDemand
-
getHostDemand
-
getHostDemandMean
public double getHostDemandMean() -
getHostDemandSCV
public double getHostDemandSCV() -
getWorkflow
-
getIndex
public int getIndex() -
setIndex
public void setIndex(int index) -
getPHRepresentation
-
getNumberOfPhases
public int getNumberOfPhases() -
getMetadata
Get optional metadata (e.g., from WfCommons).- Returns:
- Metadata map or null if not set
-
setMetadata
Set optional metadata.- Parameters:
metadata- Metadata map
-
hasMetadata
public boolean hasMetadata()Check if metadata is present.- Returns:
- true if metadata is set
-
getMetadataValue
Get a metadata value by key.- Parameters:
key- Metadata key- Returns:
- Value or null if not present
-
setMetadataValue
Set a metadata value.- Parameters:
key- Metadata keyvalue- Metadata value
-