Interface ReasonerProgressMonitor

All Superinterfaces:
Serializable
All Known Implementing Classes:
ConsoleProgressMonitor, NullReasonerProgressMonitor, TimedConsoleProgressMonitor

public interface ReasonerProgressMonitor extends Serializable
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 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

    Fields
    Modifier and Type
    Field
    Description
    static 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 Type
    Method
    Description
    default 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
    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

      static final String 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

      static final String 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

      static final String 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

      static final String 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

      default void reasonerTaskStarted(String taskName)
      Indicates that some reasoner task, for example, loading, consistency checking, classification, realisation etc. has started. When the task has finished the reasonerTaskStopped() method will be called. Once this method has been called it will not be called again unless the reasonerTaskStopped() 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 the reasonerTaskStarted(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 the reasonerTaskStarted(String) method has been called. It will not be called after the reasonerTaskStopped() 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 completed
      max - 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 the reasonerTaskStarted(String) method has been called. It will not be called after the reasonerTaskStopped() method has been called.
      Note that this method may be called from a thread that is not the event dispatch thread.