org.semanticweb.elk.reasoner
Class DummyProgressMonitor

java.lang.Object
  extended by org.semanticweb.elk.reasoner.DummyProgressMonitor
All Implemented Interfaces:
ProgressMonitor

public class DummyProgressMonitor
extends Object
implements ProgressMonitor

A progress monitor that does nothing.

Author:
Yevgeny Kazakov

Constructor Summary
DummyProgressMonitor()
           
 
Method Summary
 void finish()
          Indicates that the process is finished.
 void report(int state, int maxState)
          Reports the current progress.
 void start(String message)
          This method should be called in the beginning of the process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyProgressMonitor

public DummyProgressMonitor()
Method Detail

start

public void start(String message)
Description copied from interface: ProgressMonitor
This method should be called in the beginning of the process. It should be called only once until the method ProgressMonitor.finish() is called.

Specified by:
start in interface ProgressMonitor
Parameters:
message - the description of the process.

report

public void report(int state,
                   int maxState)
Description copied from interface: ProgressMonitor
Reports the current progress.

Specified by:
report in interface ProgressMonitor
Parameters:
state - the current value of the progress. Must not be larger then maxState.
maxState - the maximal (estimated) value of the progress.

finish

public void finish()
Description copied from interface: ProgressMonitor
Indicates that the process is finished. Should be called only if the method ProgressMonitor.start(String) was called before.

Specified by:
finish in interface ProgressMonitor


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.