Class StepStatus
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.core.workflow.StepStatus
-
public class StepStatus extends Object
This class define a step status.- Since:
- 2.0
- Author:
- Laurent Jourdren
-
-
Constructor Summary
Constructors Constructor Description StepStatus(AbstractStep step)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNote()Get the note.doublegetProgress()Get the progress of the step.intgetSubmittedTasks()Get the number of submitted tasks.StringgetTaskName(int contextId)Get the name of a task.doublegetTaskProgress(int contextId)Get the progress of a task.intgetTerminatedTasks()Get the number of terminated tasks.voidsetNote(String note)Set 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 Detail
-
StepStatus
public StepStatus(AbstractStep step)
-
-
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 valuemax- maximal valuevalue- 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 contextcontextName- name of the contextmin- minimal valuemax- maximal valuevalue- value to set
-
setTaskProgress
public void setTaskProgress(int contextId, String contextName, double progress)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
-
-