Class WorkflowActivity

java.lang.Object
jline.lang.Element
jline.lang.workflow.WorkflowActivity
All Implemented Interfaces:
Serializable, Copyable

public class WorkflowActivity extends Element
A computational activity in a Workflow.
See Also:
  • Constructor Details

    • WorkflowActivity

      public WorkflowActivity(Workflow workflow, String name, double meanServiceTime)
    • WorkflowActivity

      public WorkflowActivity(Workflow workflow, String name, Distribution hostDemand)
  • Method Details

    • setHostDemand

      public void setHostDemand(double meanServiceTime)
    • setHostDemand

      public void setHostDemand(Distribution hostDemand)
    • getHostDemand

      public Distribution getHostDemand()
    • getHostDemandMean

      public double getHostDemandMean()
    • getHostDemandSCV

      public double getHostDemandSCV()
    • getWorkflow

      public Workflow getWorkflow()
    • getIndex

      public int getIndex()
    • setIndex

      public void setIndex(int index)
    • getPHRepresentation

      public Pair<Matrix,Matrix> getPHRepresentation()
    • getNumberOfPhases

      public int getNumberOfPhases()
    • getMetadata

      public Map<String,Object> getMetadata()
      Get optional metadata (e.g., from WfCommons).
      Returns:
      Metadata map or null if not set
    • setMetadata

      public void setMetadata(Map<String,Object> metadata)
      Set optional metadata.
      Parameters:
      metadata - Metadata map
    • hasMetadata

      public boolean hasMetadata()
      Check if metadata is present.
      Returns:
      true if metadata is set
    • getMetadataValue

      public Object getMetadataValue(String key)
      Get a metadata value by key.
      Parameters:
      key - Metadata key
      Returns:
      Value or null if not present
    • setMetadataValue

      public void setMetadataValue(String key, Object value)
      Set a metadata value.
      Parameters:
      key - Metadata key
      value - Metadata value