|
Joutsen
v0.4.1
|
This class can be used to inform various listeners about the progress of a process. More...
Public Member Functions | |
| Progress (double total) | |
| Creates a new instance for a predefined total value. More... | |
| virtual void | Update (double completed) |
| Advances the progress to the value represented by completed. More... | |
| virtual void | Reset () |
| Resets the progress state for a restart. More... | |
| void | Dispose () |
| Frees bound resources. More... | |
Protected Member Functions | |
| void | FireProgressChanged (double completed, double total, double progress) |
| Informs the registered listeners about a change in progress. More... | |
| void | FireDescriptionChanged (string description) |
| Informs the registered listeners about a change in the description. More... | |
Protected Attributes | |
| double | total |
| The total value that the process can reach. More... | |
| double | completed |
| The completed amount or current progress. More... | |
| String | description |
| The description of progress. More... | |
Properties | |
| String | Description [get, set] |
| The description of progress. More... | |
Events | |
| Action< double, double, double > | ProgressChanged |
| An event that informs listeners about a change in the progress. More... | |
| Action< String > | DescriptionChanged |
| An event that informs listeners about a change in the description. More... | |
This class can be used to inform various listeners about the progress of a process.
| Joutsen.System.Progress.Progress | ( | double | total | ) |
Creates a new instance for a predefined total value.
| ArgumentOutOfBoundsException | if total is smaller then zero |
| void Joutsen.System.Progress.Dispose | ( | ) |
Frees bound resources.
|
protected |
Informs the registered listeners about a change in the description.
| description | the new description |
|
protected |
Informs the registered listeners about a change in progress.
| progress | the percentage of completion |
|
virtual |
Resets the progress state for a restart.
|
virtual |
Advances the progress to the value represented by completed.
| completed | the current state of progress represented by a part of the total |
|
protected |
The completed amount or current progress.
|
protected |
The description of progress.
|
protected |
The total value that the process can reach.
This value represents 100%.
|
getset |
The description of progress.
This is often used to describe the current step in the progress.
| Action<String> Joutsen.System.Progress.DescriptionChanged |
An event that informs listeners about a change in the description.
| Action<double,double,double> Joutsen.System.Progress.ProgressChanged |
An event that informs listeners about a change in the progress.
1.8.13