public interface ITrackCalculationProgress
Modifier and Type | Method and Description |
---|---|
boolean |
getCancellationPending()
Gets a value indicating whether cancellation of the calculation is requested.
|
void |
reportProgress(int percentProgress,
Object additionalInformation)
Called periodically by the calculation to indicate its progress.
|
void reportProgress(int percentProgress, Object additionalInformation)
This method will not necessarily be called in the same thread that initiated the calculation, nor is it guaranteed to be called in the same thread each time it is called. However, a single calculation will not call this method in multiple threads simultaneously.
percentProgress
- A value between 0 and 100 indicating the progress of the calculation.
A value of -1 indicates that the percentage of the progress is unknown.additionalInformation
- Additional information about the progress of the calculation.
The type of this object depends on the specific calculation.boolean getCancellationPending()
This method will not necessarily be called in the same thread that initiated the calculation, nor is it guaranteed to be called in the same thread each time it is called. However, a single calculation will not call this method in multiple threads simultaneously.