|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.clarkparsia.explanation.SingleExplanationGeneratorImpl
public abstract class SingleExplanationGeneratorImpl
Title: SingleExplanationGeneratorImpl Description: An abstract implementation of SingleExplanationGenerator that can be used as the basis for different explanation generator techniques. Copyright: Copyright (c) 2007 Company: Clark & Parsia, LLC.
Field Summary | |
---|---|
protected OWLClassReasoner |
altReasoner
|
protected DefinitionTracker |
definitionTracker
|
protected OWLOntologyManager |
owlOntologyManager
|
protected OWLClassReasoner |
reasoner
|
protected OWLReasonerFactory |
reasonerFactory
|
Constructor Summary | |
---|---|
SingleExplanationGeneratorImpl(OWLOntologyManager manager)
|
Method Summary | |
---|---|
void |
beginTransaction()
Indicates to the explanation generator that a transaction which may modify the ontology state is starting. |
void |
endTransaction()
End a transaction. |
OWLClassReasoner |
getAltReasoner()
|
java.util.Set<OWLOntology> |
getOntologies()
Returns the set of ontologies according to which the explanations are generated. |
OWLOntology |
getOntology()
|
OWLOntologyManager |
getOntologyManager()
Get the ontology manager for this explanation generator. |
OWLClassReasoner |
getReasoner()
Returns the reasoner associated with this generator. |
OWLReasonerFactory |
getReasonerFactory()
Returns the reasoner factory used to generate reasoners. |
protected boolean |
isFirstExplanation()
|
void |
setOntologies(java.util.Set<OWLOntology> ontologies)
Sets the set of ontologies according to which the explanations are generated. |
void |
setOntology(OWLOntology ontology)
Sets the set of ontologies according to which the explanations are generated to the import closure of the given ontologies. |
void |
setReasoner(OWLClassReasoner reasoner)
Sets the reasoner that will be used to generate explanations. |
void |
setReasonerFactory(OWLReasonerFactory reasonerFactory)
Sets the reasoner factory that will be used to generate fresh reasoners. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.clarkparsia.explanation.SingleExplanationGenerator |
---|
getExplanation |
Field Detail |
---|
protected OWLOntologyManager owlOntologyManager
protected OWLClassReasoner reasoner
protected OWLReasonerFactory reasonerFactory
protected DefinitionTracker definitionTracker
protected OWLClassReasoner altReasoner
Constructor Detail |
---|
public SingleExplanationGeneratorImpl(OWLOntologyManager manager)
Method Detail |
---|
public OWLOntologyManager getOntologyManager()
SingleExplanationGenerator
getOntologyManager
in interface SingleExplanationGenerator
public void setOntology(OWLOntology ontology)
SingleExplanationGenerator
setOntology
in interface SingleExplanationGenerator
public void setOntologies(java.util.Set<OWLOntology> ontologies)
SingleExplanationGenerator
setOntologies
in interface SingleExplanationGenerator
public OWLClassReasoner getReasoner()
SingleExplanationGenerator
getReasoner
in interface SingleExplanationGenerator
public void setReasoner(OWLClassReasoner reasoner)
SingleExplanationGenerator
SingleExplanationGenerator.setReasonerFactory(OWLReasonerFactory)
because the reasoning
results already computed by the given reasoner can be reused. It is
guaranteed that the state of this reasoner will not be invalidated by
explanation generation, i.e. if the reasoner was in classified state it
will stay in classified state.
setReasoner
in interface SingleExplanationGenerator
public OWLOntology getOntology()
getOntology
in interface SingleExplanationGenerator
public java.util.Set<OWLOntology> getOntologies()
SingleExplanationGenerator
getOntologies
in interface SingleExplanationGenerator
public OWLReasonerFactory getReasonerFactory()
SingleExplanationGenerator
getReasonerFactory
in interface SingleExplanationGenerator
public void setReasonerFactory(OWLReasonerFactory reasonerFactory)
SingleExplanationGenerator
setReasonerFactory
in interface SingleExplanationGenerator
public OWLClassReasoner getAltReasoner()
protected boolean isFirstExplanation()
public void beginTransaction()
TransactionAwareSingleExpGen
HSTExplanationGenerator
.
beginTransaction
in interface TransactionAwareSingleExpGen
public void endTransaction()
TransactionAwareSingleExpGen
TransactionAwareSingleExpGen.beginTransaction()
endTransaction
in interface TransactionAwareSingleExpGen
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |