at.tuwien.ifs.somtoolbox.util
Class AdaptiveStdErrProgressWriter

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.util.StdErrProgressWriter
      extended by 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

Field Summary
private  LinkedList<Long> backtraceList
           
private  int backtraceSteps
           
 
Fields inherited from class at.tuwien.ifs.somtoolbox.util.StdErrProgressWriter
currentStep, finished, format, message, messageLength, newLineWidth, screenWidth, startDate, stepWidth, totalSteps
 
Constructor Summary
AdaptiveStdErrProgressWriter(int totalSteps, String message)
           
AdaptiveStdErrProgressWriter(int totalSteps, String message, int stepWidth)
           
AdaptiveStdErrProgressWriter(int totalSteps, String message, int stepWidth, int newLineWidth)
           
 
Method Summary
 void progress(int currentStep)
          Progress by the given steps.
 void setBacktraceWindow(double window)
           
 void setBacktraceWindow(int steps)
           
 
Methods inherited from class at.tuwien.ifs.somtoolbox.util.StdErrProgressWriter
getCurrentStep, getMessage, getSteps, insertColumn, insertRow, progress, progress, progress, setCurrentStep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

backtraceList

private LinkedList<Long> backtraceList

backtraceSteps

private int backtraceSteps
Constructor Detail

AdaptiveStdErrProgressWriter

public AdaptiveStdErrProgressWriter(int totalSteps,
                                    String message)
Parameters:
totalSteps - the number of Steps
message - message to display

AdaptiveStdErrProgressWriter

public AdaptiveStdErrProgressWriter(int totalSteps,
                                    String message,
                                    int stepWidth)
Parameters:
totalSteps - the number of Steps
message - message to display
stepWidth - 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 Steps
message - message to display
stepWidth - 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
Method Detail

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)