Class JustificationComputation
java.lang.Object
org.liveontologies.protege.explanation.justification.service.JustificationComputation
An object using which justification can be computed
- Author:
- Yevgeny Kazakov
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJustificationComputation(JustificationListener listener, JustificationComputation.InterruptMonitor monitor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidnotifyJustificationFound(Set<org.semanticweb.owlapi.model.OWLAxiom> justification) Should be called each time a new justification is found<P> booleansetPrefferredPriority(JustificationPriorityComparator<P> comparator) Sets the preferred priority for returning of justificationsabstract voidInitiate the computation of justifications;
-
Constructor Details
-
JustificationComputation
public JustificationComputation(JustificationListener listener, JustificationComputation.InterruptMonitor monitor)
-
-
Method Details
-
setPrefferredPriority
Sets the preferred priority for returning of justifications- Type Parameters:
P- the type of objects used to compare justifications- Parameters:
comparator-JustificationPriorityComparatorthat defines the order in which the justifications should be reported by the computation: justification with the smaller values ofJustificationPriorityComparator.getPriority(java.util.Set<org.semanticweb.owlapi.model.OWLAxiom>)under the comparator should be returned first- Returns:
trueif the value has been set and will be used in the computation andfalseotherwise
-
startComputation
public abstract void startComputation()Initiate the computation of justifications; -
notifyJustificationFound
Should be called each time a new justification is found- Parameters:
justification- a new justification found by this computation
-
isInterrupted
public boolean isInterrupted()- Returns:
trueif the computation has been interrupted andfalseotherwise
-