Class EclipseProgressObserver.Task
- java.lang.Object
-
- net.ssehub.easy.producer.eclipse.observer.EclipseProgressObserver.Task
-
- All Implemented Interfaces:
ProgressObserver.ISubtask,ProgressObserver.ITask
- Enclosing class:
- EclipseProgressObserver
private static class EclipseProgressObserver.Task extends java.lang.Object implements ProgressObserver.ITask, ProgressObserver.ISubtask
Rerpesentation of a task, which will be observed by theEclipseProgressObserver.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Constructor Description Task(java.lang.String name)Sole constructor of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Getter for the name.intgetRemainder()Returns the progress of the current task.intsetCurrent(int current)Sets the current progress of the current task.voidsetMax(int max)Setter for the maximum of the task.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Getter for the name.- Returns:
- The name of this task.
-
setMax
public void setMax(int max)
Setter for the maximum of the task.- Parameters:
max- An integer value greater than 0.
-
setCurrent
public int setCurrent(int current)
Sets the current progress of the current task.- Parameters:
current- The number of already completed steps.- Returns:
- How many steps are still open to fulfill the current task.
- See Also:
getRemainder()
-
getRemainder
public int getRemainder()
Returns the progress of the current task.- Returns:
- How many steps are still open to fulfill the current task.
-
-