at.tuwien.ifs.somtoolbox.util
Class AdaptiveStdErrProgressWriter
java.lang.Object
at.tuwien.ifs.somtoolbox.util.StdErrProgressWriter
at.tuwien.ifs.somtoolbox.util.AdaptiveStdErrProgressWriter
- All Implemented Interfaces:
- ProgressListener
public class AdaptiveStdErrProgressWriter
- extends StdErrProgressWriter
- Version:
- $Id: AdaptiveStdErrProgressWriter.java 3587 2010-05-21 10:35:33Z mayer $
- Author:
- Jakob Frank
- See Also:
StdErrProgressWriter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
backtraceList
private LinkedList<Long> backtraceList
backtraceSteps
private int backtraceSteps
AdaptiveStdErrProgressWriter
public AdaptiveStdErrProgressWriter(int totalSteps,
String message)
- Parameters:
totalSteps
- the number of Stepsmessage
- message to display
AdaptiveStdErrProgressWriter
public AdaptiveStdErrProgressWriter(int totalSteps,
String message,
int stepWidth)
- Parameters:
totalSteps
- the number of Stepsmessage
- message to displaystepWidth
- How often the message should be updated. Use a bigger stepWidth to improve the performance. The
first and last step are printed regardless of the value of the stepWith.
AdaptiveStdErrProgressWriter
public AdaptiveStdErrProgressWriter(int totalSteps,
String message,
int stepWidth,
int newLineWidth)
- Parameters:
totalSteps
- the number of Stepsmessage
- message to displaystepWidth
- How often the message should be updated. Use a bigger stepWidth to improve the performance. The
first and last step are printed regardless of the value of the stepWith.newLineWidth
- add a newline every
progress
public void progress(int currentStep)
- Description copied from interface:
ProgressListener
- Progress by the given steps.
- Specified by:
progress
in interface ProgressListener
- Overrides:
progress
in class StdErrProgressWriter
setBacktraceWindow
public void setBacktraceWindow(int steps)
setBacktraceWindow
public void setBacktraceWindow(double window)