net.sf.myjaut.cmd
Class MonitorableCommand<E extends java.lang.Exception>

java.lang.Object
  extended by net.sf.myjaut.cmd.MonitorableCommand<E>
All Implemented Interfaces:
Command<E>
Direct Known Subclasses:
PuzzleGenerator

public abstract class MonitorableCommand<E extends java.lang.Exception>
extends java.lang.Object
implements Command<E>


Constructor Summary
MonitorableCommand(CommandMonitor cm)
           
 
Method Summary
 double getProgress()
           
 boolean hasIndeterminateProgress()
           
 boolean isFinished()
           
protected  long profileElapsedTime(java.lang.String text)
           
protected  long profileNbCalls(java.lang.String text)
           
protected  void setProgress(double progress)
           
protected  void signalFinished()
           
protected  void signalProgressAttempt(double expectedNbAttempts, double goal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.myjaut.cmd.Command
execute
 

Constructor Detail

MonitorableCommand

public MonitorableCommand(CommandMonitor cm)
Method Detail

getProgress

public double getProgress()

hasIndeterminateProgress

public boolean hasIndeterminateProgress()

isFinished

public boolean isFinished()

profileElapsedTime

protected long profileElapsedTime(java.lang.String text)

profileNbCalls

protected long profileNbCalls(java.lang.String text)

setProgress

protected void setProgress(double progress)

signalFinished

protected void signalFinished()

signalProgressAttempt

protected void signalProgressAttempt(double expectedNbAttempts,
                                     double goal)


This code documentation is disclosed as part of Kagiru Sudoku. It is licensed under the GNU General Public License (GPL) and comes with NO WARRANTY. See file license.txt for more info.