org.dllearner.core
Class AbstractComponent

java.lang.Object
  extended by org.dllearner.core.AbstractComponent
All Implemented Interfaces:
Component
Direct Known Subclasses:
AbstractAxiomLearningAlgorithm, AbstractCELA, AbstractKnowledgeSource, AbstractLearningProblem, AbstractReasonerComponent

public abstract class AbstractComponent
extends Object
implements Component

Base class of all components. See also http://dl-learner.org/wiki/Architecture.

Author:
Jens Lehmann

Constructor Summary
AbstractComponent()
           
 
Method Summary
static Collection<ConfigOption<?>> createConfigOptions()
          Returns all configuration options supported by this component.
abstract  Configurator getConfigurator()
          For each component, a configurator class is generated in package org.dllearner.core.configurators using the script { org.dllearner.scripts.ConfigJavaGenerator}.
static String getName()
          Deprecated. 
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.dllearner.core.Component
init
 

Constructor Detail

AbstractComponent

public AbstractComponent()
Method Detail

getConfigurator

public abstract Configurator getConfigurator()
For each component, a configurator class is generated in package org.dllearner.core.configurators using the script { org.dllearner.scripts.ConfigJavaGenerator}. The configurator provides set and get methods for the configuration options of a component.

Returns:
An object allowing to configure this component.

getName

@Deprecated
public static String getName()
Deprecated. 

Returns the name of this component. By default, "unnamed component" is returned, but all implementations of components are strongly encouraged to provide a static method returning the name. Use the DLComponent annotation instead of setting a name through this method.

Returns:
The name of this component.

createConfigOptions

public static Collection<ConfigOption<?>> createConfigOptions()
Returns all configuration options supported by this component.

Returns:
A list of supported configuration options for this component.


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann