From: <Jen...@us...> - 2008-07-15 10:25:36
|
Revision: 1008 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1008&view=rev Author: JensLehmann Date: 2008-07-15 03:25:32 -0700 (Tue, 15 Jul 2008) Log Message: ----------- added log4j to Helper class Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/utilities/Helper.java Modified: trunk/src/dl-learner/org/dllearner/utilities/Helper.java =================================================================== --- trunk/src/dl-learner/org/dllearner/utilities/Helper.java 2008-07-10 16:37:43 UTC (rev 1007) +++ trunk/src/dl-learner/org/dllearner/utilities/Helper.java 2008-07-15 10:25:32 UTC (rev 1008) @@ -1,3 +1,22 @@ +/** + * Copyright (C) 2007-2008, Jens Lehmann + * + * This file is part of DL-Learner. + * + * DL-Learner is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * DL-Learner is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ package org.dllearner.utilities; import java.util.Iterator; @@ -10,6 +29,7 @@ import java.util.TreeSet; import java.util.Map.Entry; +import org.apache.log4j.Logger; import org.dllearner.core.ReasoningMethodUnsupportedException; import org.dllearner.core.ReasoningService; import org.dllearner.core.owl.AssertionalAxiom; @@ -27,14 +47,15 @@ import org.dllearner.utilities.datastructures.SortedSetTuple; /** - * Die Hilfsmethoden benutzen alle SortedSet, da die Operationen damit schneller - * sind. + * TODO: JavaDoc * - * @author jl + * @author Jens Lehmann * */ public class Helper { + private static Logger logger = Logger.getLogger(Helper.class); + // findet alle atomaren Konzepte in einem Konzept public static List<NamedClass> getAtomicConcepts(Description concept) { List<NamedClass> ret = new LinkedList<NamedClass>(); @@ -461,11 +482,8 @@ Helper.removeUninterestingConcepts(concepts); for (NamedClass ac : ignoredConcepts) { boolean success = concepts.remove(ac); - if (!success) { - System.out.println("Warning: Ignored concept " + ac - + " does not exist in knowledge base."); - System.exit(0); - } + if (!success) + logger.warn("Warning: Ignored concept " + ac + " does not exist in knowledge base."); } return concepts; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |