Class JustificationComputationManager
java.lang.Object
org.liveontologies.protege.explanation.justification.service.JustificationComputationManager
Manages computation of justifications for a given
OWLAxiom- Author:
- Alexander Stupnikov Date: 08-02-2017, Yevgeny Kazakov
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJustificationComputationManager(org.semanticweb.owlapi.model.OWLAxiom entailment, JustificationListener listener, JustificationComputation.InterruptMonitor monitor) Constructs a computation object -
Method Summary
Modifier and TypeMethodDescriptionvoidabstract JustificationComputationorg.semanticweb.owlapi.model.OWLAxiomCollection<? extends Set<org.semanticweb.owlapi.model.OWLAxiom>> protected voidshould be called each time the previously returned justifications bay become incorrectvoid
-
Constructor Details
-
JustificationComputationManager
public JustificationComputationManager(org.semanticweb.owlapi.model.OWLAxiom entailment, JustificationListener listener, JustificationComputation.InterruptMonitor monitor) Constructs a computation object- Parameters:
entailment- an axiom to compute justifications forlistener- theJustificationListenerusing which new justifications are reportedmonitor- theJustificationComputation.InterruptMonitorthat is used to check if the computation has been interrupted
-
-
Method Details
-
getEntailment
public org.semanticweb.owlapi.model.OWLAxiom getEntailment()- Returns:
- an axiom to compute justifications for
-
getJustificationListener
-
getInterruptMonitor
-
addListener
-
removeListener
-
getSettingsPanel
- Returns:
- the
JPanelthat can display settings for the computation of the justification ornullif no setting panel is required.
-
getInitialJustifications
- Returns:
- some initial justifications for
getEntailment(); if the result is non-empty, these justifications will be initially shown in the explanation window. The returned collections of justifications may be not complete but each justification should be correct. There should not be a considerable delay for returning the justifications. This method is mainly intended when the previously computed justifications are cached.
-
getComputation
- Returns:
- the
JustificationComputationthat can be used for computing justification; this computation should use thegetJustificationListener()for reporting justifications andgetInterruptMonitor()for monitoring when interrupt has been requested
-
notifyJustificationsOutdated
protected void notifyJustificationsOutdated()should be called each time the previously returned justifications bay become incorrect
-