Class StepStatus
java.lang.Object
fr.ens.biologie.genomique.eoulsan.core.workflow.StepStatus
This class define a step status.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNote()Get the note.doubleGet the progress of the step.intGet the number of submitted tasks.getTaskName(int contextId) Get the name of a task.doublegetTaskProgress(int contextId) Get the progress of a task.intGet the number of terminated tasks.voidSet the note.voidsetProgress(double progress) Set the progress of a step.voidsetProgress(int min, int max, int value) Set the progress of a step.voidsetTaskDone(int contextId) Set task done.voidsetTaskProgress(int contextId, String contextName, double progress) Set the progress of a task.voidsetTaskProgress(int contextId, String contextName, int min, int max, int value) Set the progress of a task.voidsetTaskRunning(int contextId) Set task running.voidsetTaskSubmitted(int contextId) Set task submitted.
-
Constructor Details
-
StepStatus
-
-
Method Details
-
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
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
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 valuemax- maximal valuevalue- value to set
-
setProgress
public void setProgress(double progress) Set the progress of a step.- Parameters:
progress- value to set
-
setTaskProgress
Set the progress of a task.- Parameters:
contextId- id of the contextcontextName- name of the contextmin- minimal valuemax- maximal valuevalue- value to set
-
setTaskProgress
Set the progress of a task.- Parameters:
contextId- id of the contextcontextName- name of the contextprogress- 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
-