Package org.semanticweb.owlapi.util
Interface Monitorable
public interface Monitorable
Certain tasks or algorithms may take some time to accomplish. For example
parsing, saving etc. In some situations, it is desirable to monitor the
progress of such tasks, for example to provide feedback in user interfaces.
Interfaces which represent long tasks can implement this progress monitor
interface to provide a hook for a progress monitor.
- Since:
- 2.0.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
Interrupts the long running task (if possible).void
setProgressMonitor
(ProgressMonitor progressMonitor) Sets the progress monitor which receives information about the progress of the this object which represents a long running task.
-
Method Details
-
setProgressMonitor
Sets the progress monitor which receives information about the progress of the this object which represents a long running task.- Parameters:
progressMonitor
- progress monitor
-
interrupt
Interrupts the long running task (if possible).- Throws:
InterruptedException
- interrupted exception
-
canInterrupt
boolean canInterrupt()- Returns:
- true if this long running task can be cancelled.
-