public class LaconicExplanationGenerator<E> extends Object implements ExplanationGenerator<E>, ExplanationProgressMonitor<E>
| Constructor and Description |
|---|
LaconicExplanationGenerator(Set<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms,
ExplanationGeneratorFactory<E> explanationGeneratorFactory,
ExplanationProgressMonitor<E> progressMonitor) |
| Modifier and Type | Method and Description |
|---|---|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
computeOPlus(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms) |
Set<Explanation<E>> |
computePreciseJusts(E entailment,
int limit) |
Set<Explanation<E>> |
computePreciseJustsOptimised(E entailment,
int limit) |
void |
foundExplanation(ExplanationGenerator<E> explanationGenerator,
Explanation<E> explanation,
Set<Explanation<E>> allFoundExplanations)
Called by explanation generators that support progress monitors.
|
Set<Explanation<E>> |
getExplanations(E entailment)
Gets explanations for an entailment.
|
Set<Explanation<E>> |
getExplanations(E entailment,
int limit)
Gets explanations for an entailment, with limit on the number of explanations returned.
|
uk.ac.manchester.cs.bhig.util.MutableTree<Explanation> |
getHst() |
Set<Explanation<E>> |
getLastRegularJustifications() |
List<Integer> |
getPruningDifferences() |
boolean |
isCancelled()
Determines if the process of finding laconic justifications is cancelled.
|
boolean |
isLaconic(Explanation<E> justification)
Checks to see if a justification for a given entailment is laconic.
|
public LaconicExplanationGenerator(Set<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms, ExplanationGeneratorFactory<E> explanationGeneratorFactory, ExplanationProgressMonitor<E> progressMonitor)
public Set<org.semanticweb.owlapi.model.OWLAxiom> computeOPlus(Set<org.semanticweb.owlapi.model.OWLAxiom> axioms)
public uk.ac.manchester.cs.bhig.util.MutableTree<Explanation> getHst()
public Set<Explanation<E>> computePreciseJusts(E entailment, int limit) throws org.semanticweb.owlapi.model.OWLException
org.semanticweb.owlapi.model.OWLExceptionpublic Set<Explanation<E>> getLastRegularJustifications()
public void foundExplanation(ExplanationGenerator<E> explanationGenerator, Explanation<E> explanation, Set<Explanation<E>> allFoundExplanations)
ExplanationProgressMonitorfoundExplanation in interface ExplanationProgressMonitor<E>explanationGenerator - The explanation generator that found the explanationexplanation - The explanation that was found
for the entailment or false if the explanation generator should stop finding explanations
at the next opportunity.allFoundExplanations - All of the explanations found so far for the specified entailmentpublic boolean isCancelled()
isCancelled in interface ExplanationProgressMonitor<E>true if cancelled or false if not cancelledpublic Set<Explanation<E>> computePreciseJustsOptimised(E entailment, int limit) throws org.semanticweb.owlapi.model.OWLException
org.semanticweb.owlapi.model.OWLExceptionpublic boolean isLaconic(Explanation<E> justification) throws ExplanationException
justification - The justification to be checkedtrue if the justification is laconic, otherwise falseExplanationException - If there was a problem. The details of this are implementation specific.public Set<Explanation<E>> getExplanations(E entailment) throws ExplanationException
ExplanationGeneratorgetExplanations in interface ExplanationGenerator<E>entailment - The entailment for which explanations will be generated.ExplanationException - if there was a problem generating the explanation.public Set<Explanation<E>> getExplanations(E entailment, int limit) throws ExplanationException
ExplanationGeneratorgetExplanations in interface ExplanationGenerator<E>entailment - The entailment for which explanations will be generated.limit - The maximum number of explanations to generate. This should be a positive integer.ExplanationException - if there was a problem generating the explanation.Copyright © 2014. All rights reserved.