Class StepStatus


  • public class StepStatus
    extends Object
    This class define a step status.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Constructor Detail

    • Method Detail

      • getNote

        public String getNote()
        Get the note.
        Returns:
        the note
      • getProgress

        public double getProgress()
        Get the progress of the step.
        Returns:
        a double between O and 1
      • getTaskName

        public String getTaskName​(int contextId)
        Get the name of a task.
        Parameters:
        contextId - the id of the task
        Returns:
        a String with the name of the context or null if the context not exists
      • getTaskProgress

        public double getTaskProgress​(int contextId)
        Get the progress of a task.
        Parameters:
        contextId - the id of the task
        Returns:
        a double between O and 1
      • getSubmittedTasks

        public int getSubmittedTasks()
        Get the number of submitted tasks.
        Returns:
        the number of submitted tasks
      • getTerminatedTasks

        public int getTerminatedTasks()
        Get the number of terminated tasks.
        Returns:
        the number of terminated tasks
      • setNote

        public void setNote​(String note)
        Set the note.
        Parameters:
        note - the note to set
      • setProgress

        public void setProgress​(int min,
                                int max,
                                int value)
        Set the progress of a step.
        Parameters:
        min - minimal value
        max - maximal value
        value - value to set
      • setProgress

        public void setProgress​(double progress)
        Set the progress of a step.
        Parameters:
        progress - value to set
      • setTaskProgress

        public void setTaskProgress​(int contextId,
                                    String contextName,
                                    int min,
                                    int max,
                                    int value)
        Set the progress of a task.
        Parameters:
        contextId - id of the context
        contextName - name of the context
        min - minimal value
        max - maximal value
        value - value to set
      • setTaskProgress

        public void setTaskProgress​(int contextId,
                                    String contextName,
                                    double progress)
        Set the progress of a task.
        Parameters:
        contextId - id of the context
        contextName - name of the context
        progress - progress value to set
      • setTaskSubmitted

        public void setTaskSubmitted​(int contextId)
        Set task submitted.
        Parameters:
        contextId - id of the context
      • setTaskRunning

        public void setTaskRunning​(int contextId)
        Set task running.
        Parameters:
        contextId - id of the context
      • setTaskDone

        public void setTaskDone​(int contextId)
        Set task done.
        Parameters:
        contextId - id of the context