|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.demokritos.iit.jinsect.events.ProgressEvent
public class ProgressEvent
A class describing a progress event, with a task description and a progress indicating number.
| Field Summary | |
|---|---|
double |
Progress
A number indicative of the progress. |
java.lang.String |
SubtaskName
The name of the subtask under progress. |
java.lang.String |
TaskName
The name of the task under progress. |
| Constructor Summary | |
|---|---|
ProgressEvent(java.lang.String sTaskName,
double dProgress)
Initializes a progrss evenet. |
|
| Method Summary | |
|---|---|
ProgressEvent |
increaseProgress()
Updates the progress of the object by an increase of one. |
java.lang.String |
toString()
|
ProgressEvent |
updateProgress(double dNewProgress)
Updates the progress of the object. |
ProgressEvent |
updateSubtask(java.lang.String sSubtaskName)
Updates the current subtask of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String TaskName
public double Progress
public java.lang.String SubtaskName
| Constructor Detail |
|---|
public ProgressEvent(java.lang.String sTaskName,
double dProgress)
sTaskName - The name of the task under progress.dProgress - The current progress.| Method Detail |
|---|
public final ProgressEvent updateProgress(double dNewProgress)
dNewProgress - The new value for the progress.public final ProgressEvent increaseProgress()
public final ProgressEvent updateSubtask(java.lang.String sSubtaskName)
sSubtaskName - The name of the current subtaskpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||