public abstract class AbstractProbabilisticReasonerComponent extends AbstractComponent implements ProbabilisticReasoner
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
AbstractProbabilisticReasonerComponent() |
AbstractProbabilisticReasonerComponent(KnowledgeSource source) |
AbstractProbabilisticReasonerComponent(Set<KnowledgeSource> sources)
Constructs a new reasoner component.
|
Modifier and Type | Method and Description |
---|---|
void |
changeSources(Set<KnowledgeSource> sources)
Method to exchange the reasoner underlying the learning problem.
|
org.semanticweb.owlapi.model.OWLOntology |
getOntology() |
abstract ProbabilisticReasonerType |
getReasonerType()
Gets the type of the underlying probabilistic reasoner.
|
Set<KnowledgeSource> |
getSources()
Gets the knowledge sources used by this reasoner.
|
void |
init()
Method to be called after the component has been configured.
|
void |
setSources(KnowledgeSource... sources) |
void |
setSources(Set<KnowledgeSource> sources) |
isInitialized
public static org.apache.log4j.Logger logger
public AbstractProbabilisticReasonerComponent()
public AbstractProbabilisticReasonerComponent(Set<KnowledgeSource> sources)
sources
- The underlying knowledge sources.public AbstractProbabilisticReasonerComponent(KnowledgeSource source)
public void init() throws ComponentInitException
Component
init
in interface Component
ComponentInitException
- This exception is thrown if any
exceptions occur within the initialisation process of this
component. As component developer, you are encouraged to
re-throw occurring exception as ComponentInitException and
giving an error message as well as the actually exception by
using the constructor ComponentInitException(String, Throwable)
.public Set<KnowledgeSource> getSources()
@Autowired public void setSources(Set<KnowledgeSource> sources)
@Autowired public void setSources(KnowledgeSource... sources)
public void changeSources(Set<KnowledgeSource> sources)
sources
- The new knowledge sources.public abstract ProbabilisticReasonerType getReasonerType()
public org.semanticweb.owlapi.model.OWLOntology getOntology()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann