Package org.semanticweb.owlapi.reasoner
Interface ReasonerProgressMonitor
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ConsoleProgressMonitor
,NullReasonerProgressMonitor
,TimedConsoleProgressMonitor
The ReasonerProgressMonitor interface should be implemented by objects that wish to monitor the
progress of a reasoner. The reasoner whose progress is being monitored will call the methods on
this interface. The progress monitor is designed to monitor long running reasoner tasks such as
loading, preprocessing, consistency checking, classification and realisation.
Tasks are executed sequentially. Nested tasks are not supported.
The general contract is that the reasoner will call
Tasks are executed sequentially. Nested tasks are not supported.
The general contract is that the reasoner will call
reasonerTaskStarted(String)
, then
call either reasonerTaskBusy()
or reasonerTaskProgressChanged(int, int)
any
number of times and finally call reasonerTaskStopped()
when the task ends or has been
interrupted. This cycle may then be repeated.- Since:
- 3.0.0
- Author:
- Matthew Horridge, The University of Manchester, Information Management Group
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
A standard name for the task of computing the class hierarchy.static final String
A standard name for the task of classifying and realising at the same time.static final String
A standard name for the task of loading a reasoner with axioms.static final String
A standard name for the task of computing the types of individual. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
Indicates that the reasoner is busy performing a task whose size cannot be determined.default void
reasonerTaskProgressChanged
(int value, int max) Indicates that the reasoner is part way through a particular task, for example consistency checking, classification or realisation.default void
reasonerTaskStarted
(String taskName) Indicates that some reasoner task, for example, loading, consistency checking, classification, realisation etc.default void
Indicates that a previously started task has now stopped.
-
Field Details
-
LOADING
A standard name for the task of loading a reasoner with axioms. Note that there is no guarantee that the reasoner will use this name for loading.- See Also:
-
CLASSIFYING
A standard name for the task of computing the class hierarchy. Note that there is no guarantee that the reasoner will use this name for the task of computing the class hierarchy.- See Also:
-
REALIZING
A standard name for the task of computing the types of individual. Note that there is no guarantee that the reasoner will use this name for the task of realising.- See Also:
-
CLASSIFYING_AND_REALIZING
A standard name for the task of classifying and realising at the same time. Note that there is no guarantee that the reasoner will use this name for the task of classifying.- See Also:
-
-
Method Details
-
reasonerTaskStarted
Indicates that some reasoner task, for example, loading, consistency checking, classification, realisation etc. has started. When the task has finished thereasonerTaskStopped()
method will be called. Once this method has been called it will not be called again unless thereasonerTaskStopped()
method has been called. The notion of subtasks is not supported.
Note that this method may be called from a thread that is not the event dispatch thread.- Parameters:
taskName
- The name of the task
-
reasonerTaskStopped
default void reasonerTaskStopped()Indicates that a previously started task has now stopped. This method will only be called after thereasonerTaskStarted(String)
method has been called. The notion of subtasks is not supported.
Note that this method may be called from a thread that is not the event dispatch thread. -
reasonerTaskProgressChanged
default void reasonerTaskProgressChanged(int value, int max) Indicates that the reasoner is part way through a particular task, for example consistency checking, classification or realisation. This method will only be called after thereasonerTaskStarted(String)
method has been called. It will not be called after thereasonerTaskStopped()
method has been called.
Note that this method may be called from a thread that is not the event dispatch thread.- Parameters:
value
- The value or portion of the task completedmax
- The total size of the task
-
reasonerTaskBusy
default void reasonerTaskBusy()Indicates that the reasoner is busy performing a task whose size cannot be determined. This method will only be called after thereasonerTaskStarted(String)
method has been called. It will not be called after thereasonerTaskStopped()
method has been called.
Note that this method may be called from a thread that is not the event dispatch thread.
-