|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.semanticweb.owlapi.inference.OWLReasonerManagerImpl
public class OWLReasonerManagerImpl
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 02-Jun-2008
Constructor Summary | |
---|---|
OWLReasonerManagerImpl(OWLOntologyManager man)
|
Method Summary | |
---|---|
void |
addListener(OWLReasonerManagerListener listener)
Adds a listener to this reasoner manager. |
OWLReasoner |
createReasoner(java.util.Set<OWLOntology> ontologies)
Creates a new instance of a reasoner using the current reasoner factory. |
protected void |
fireReasonerFactoryAdded()
|
protected void |
fireReasonerFactoryChanged()
|
protected void |
fireReasonerFactoryRemoved()
|
OWLReasoner |
getReasoner(java.util.Set<OWLOntology> ontologies)
Gets the currently cached reasoner. |
OWLReasonerFactory |
getReasonerFactory()
Gets the current reasoner factory. |
java.util.List<OWLReasonerFactory> |
getRegisteredReasonerFactories()
Gets a list of currently registered reasoner factories. |
void |
registerReasonerFactory(OWLReasonerFactory factory)
Registers (adds) a new reasoner factory. |
void |
removeListener(OWLReasonerManagerListener listener)
Removes a previously added listener to this manager. |
void |
setReasonerFactory(OWLReasonerFactory factory)
Sets the current reasoner factory. |
void |
unregisterReasonerFactory(OWLReasonerFactory factory)
Unregisters (removes) a previously registerd reasoner factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OWLReasonerManagerImpl(OWLOntologyManager man)
Method Detail |
---|
public void addListener(OWLReasonerManagerListener listener)
OWLReasonerManager
addListener
in interface OWLReasonerManager
listener
- The listener to be added.public void removeListener(OWLReasonerManagerListener listener)
OWLReasonerManager
removeListener
in interface OWLReasonerManager
listener
- The listener to be removed.public java.util.List<OWLReasonerFactory> getRegisteredReasonerFactories()
OWLReasonerManager
getRegisteredReasonerFactories
in interface OWLReasonerManager
public void registerReasonerFactory(OWLReasonerFactory factory)
OWLReasonerManager
registerReasonerFactory
in interface OWLReasonerManager
factory
- The factory to be registered.public void unregisterReasonerFactory(OWLReasonerFactory factory)
OWLReasonerManager
unregisterReasonerFactory
in interface OWLReasonerManager
factory
- The factory to be unregisterd.public void setReasonerFactory(OWLReasonerFactory factory) throws OWLReasonerException
OWLReasonerManager
setReasonerFactory
in interface OWLReasonerManager
factory
- The reasoner factory that should be set
as the current factory. Note that a runtime exception will be
thrown if the specified reasoner factory is not a registered
reasoner factory.
OWLReasonerException
- if there was a problem in
disposing of the currently cached reasoner.public OWLReasonerFactory getReasonerFactory()
OWLReasonerManager
getReasonerFactory
in interface OWLReasonerManager
null
public OWLReasoner getReasoner(java.util.Set<OWLOntology> ontologies)
OWLReasonerManager
getReasoner
in interface OWLReasonerManager
null
.public OWLReasoner createReasoner(java.util.Set<OWLOntology> ontologies)
OWLReasonerManager
createReasoner
in interface OWLReasonerManager
protected void fireReasonerFactoryAdded()
protected void fireReasonerFactoryRemoved()
protected void fireReasonerFactoryChanged()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |