randoop.util
Class ProgressDisplay

Object
  extended by Thread
      extended by ProgressDisplay
All Implemented Interfaces:
Runnable

public class ProgressDisplay
extends Thread

Modified from Daikon.FileIOProgress.


Nested Class Summary
Modifier and Type Class and Description
static class ProgressDisplay.Mode
           
 
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
Modifier and Type Field and Description
 long lastCovIncrease
           
static Object print_synchro
          Lock so that unfortunate interleaving of this printing can be avoided
 boolean shouldStop
          Clients should set this variable instead of calling Thread.stop(), which is deprecated.
 
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Constructor and Description
ProgressDisplay(AbstractGenerator generator, RandoopListenerManager listenerMgr, ProgressDisplay.Mode outputMode, int progressWidth)
           
 
Method Summary
Modifier and Type Method and Description
 void clear()
          Clear the display; good to do before printing to System.out.
 void display()
          Displays the current status.
 void display(String message)
          Displays the given message.
 String message()
           
 void run()
           
 
Methods inherited from class Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

print_synchro

public static Object print_synchro
Lock so that unfortunate interleaving of this printing can be avoided


shouldStop

public boolean shouldStop
Clients should set this variable instead of calling Thread.stop(), which is deprecated. Typically a client calls "display()" before setting this.


lastCovIncrease

public long lastCovIncrease
Constructor Detail

ProgressDisplay

public ProgressDisplay(AbstractGenerator generator,
                       RandoopListenerManager listenerMgr,
                       ProgressDisplay.Mode outputMode,
                       int progressWidth)
Method Detail

message

public String message()

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

clear

public void clear()
Clear the display; good to do before printing to System.out. *


display

public void display()
Displays the current status. Call this if you don't want to wait until the next automatic display.


display

public void display(String message)
Displays the given message. *