Class ProgressExtension.ProgressEvent
java.lang.Object
org.moeaframework.algorithm.extension.ProgressExtension.ProgressEvent
- Enclosing class:
- ProgressExtension
A progress event, including the percent complete, elapsed time, and estimated remaining time.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the algorithm that is currently running.Returns the elapsed time.double
Returns the percent complete as a value between0.0
and100.0
.Returns the estimated remaining time.toString()
toString
(int progressWidth) Returns a string representation of this progress event including a progress bar.
-
Method Details
-
getAlgorithm
Returns the algorithm that is currently running.- Returns:
- the algorithm currently running
-
getPercentComplete
public double getPercentComplete()Returns the percent complete as a value between0.0
and100.0
.- Returns:
- the percent complete as a fraction between
0.0
and100.0
-
getElapsedTime
Returns the elapsed time.- Returns:
- the elapsed time
-
getRemainingTime
Returns the estimated remaining time. A value ofnull
indicates the remaining time could not be determined.- Returns:
- the estimated remaining time or
null
-
toString
-
toString
Returns a string representation of this progress event including a progress bar.- Parameters:
progressWidth
- the width of the progress bar in characters- Returns:
- the string representation
-