From: <Jen...@us...> - 2008-08-19 14:20:43
|
Revision: 1099 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1099&view=rev Author: JensLehmann Date: 2008-08-19 14:20:39 +0000 (Tue, 19 Aug 2008) Log Message: ----------- fix for #1931147 Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/algorithms/refexamples/ExampleBasedROLComponent.java Modified: trunk/src/dl-learner/org/dllearner/algorithms/refexamples/ExampleBasedROLComponent.java =================================================================== --- trunk/src/dl-learner/org/dllearner/algorithms/refexamples/ExampleBasedROLComponent.java 2008-08-19 09:58:22 UTC (rev 1098) +++ trunk/src/dl-learner/org/dllearner/algorithms/refexamples/ExampleBasedROLComponent.java 2008-08-19 14:20:39 UTC (rev 1099) @@ -29,6 +29,7 @@ import org.apache.log4j.Level; import org.apache.log4j.Logger; +import org.dllearner.core.ComponentInitException; import org.dllearner.core.EvaluatedDescription; import org.dllearner.core.LearningAlgorithm; import org.dllearner.core.LearningProblem; @@ -52,6 +53,7 @@ import org.dllearner.refinementoperators.RhoDRDown; import org.dllearner.utilities.Files; import org.dllearner.utilities.Helper; +import org.dllearner.reasoning.ReasonerType; /** * The DL-Learner learning algorithm component for the example @@ -271,8 +273,12 @@ * @see org.dllearner.core.Component#init() */ @Override - public void init() { + public void init() throws ComponentInitException { + if(rs.getReasonerType() == ReasonerType.DIG) { + throw new ComponentInitException("DIG does not support the inferences needed in the selected learning algorithm component: " + getName()); + } + logger.setLevel(Level.toLevel(logLevel,Level.toLevel(CommonConfigOptions.logLevelDefault))); if(searchTreeFile == null) searchTreeFile = new File(defaultSearchTreeFile); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |