public class JIPipeProgressInfoETA extends Object
Constructor and Description |
---|
JIPipeProgressInfoETA() |
Modifier and Type | Method and Description |
---|---|
int |
getAverageWindow()
Gets the window size for the ETA calculation
|
long |
getLogInterval()
Gets the log interval (milliseconds)
|
void |
setAverageWindow(int averageWindow)
Sets the window size for the ETA calculation
|
void |
setLogInterval(long logInterval)
Sets the log interval (milliseconds)
|
void |
update(int currentIndex,
int totalItems,
JIPipeProgressInfo progressInfo)
Updates the ETA and logs it if needed
|
public int getAverageWindow()
public void setAverageWindow(int averageWindow)
averageWindow
- the window sizepublic long getLogInterval()
public void setLogInterval(long logInterval)
logInterval
- the log interval (milliseconds)public void update(int currentIndex, int totalItems, JIPipeProgressInfo progressInfo)
currentIndex
- the current indextotalItems
- the total number of itemsprogressInfo
- the progress infoCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.