Class ProgressBarImpl

    • Constructor Detail

      • ProgressBarImpl

        public ProgressBarImpl​(ExecutionStatus executionStatus)
    • Method Detail

      • isValid

        public boolean isValid()
        Description copied from interface: ProgressBar
        Returns true iff the ave time is > 0
        Specified by:
        isValid in interface ProgressBar
        Returns:
      • isUnderAverageTime

        public boolean isUnderAverageTime()
        Description copied from interface: ProgressBar
        Returns true if elapse time < ave time
        Specified by:
        isUnderAverageTime in interface ProgressBar
        Returns:
        true if elapse time < ave time
      • getPercentageCompleted

        public double getPercentageCompleted()
        Description copied from interface: ProgressBar
        Elapsed time / total time
        Specified by:
        getPercentageCompleted in interface ProgressBar
        Returns:
        Elapsed time / total time
      • getPrettyTimeRemaining

        public String getPrettyTimeRemaining​(boolean isLong)
        Specified by:
        getPrettyTimeRemaining in interface ProgressBar
        Parameters:
        isLong - true if you want the long-winded version, false if you want the short version
        Returns:
        Returns the approximate amount of time remaining
      • getTotalTimeWidth

        public int getTotalTimeWidth()
        Description copied from interface: ProgressBar
        Return the width of the "total time" progress bar
        Specified by:
        getTotalTimeWidth in interface ProgressBar
        Returns:
        width of bar
      • getTimeElapsedWidth

        public int getTimeElapsedWidth()
        Description copied from interface: ProgressBar
        Return the width of the "elapsed time" progress bar
        Specified by:
        getTimeElapsedWidth in interface ProgressBar
        Returns:
      • getEstimatedDuration

        public long getEstimatedDuration()
        Description copied from interface: ProgressBar
        Returns prospected duration of a task.
        Specified by:
        getEstimatedDuration in interface ProgressBar
        Returns:
        estimated execution total time in milliseconds