org.dllearner.core
Class ComponentPool
java.lang.Object
org.dllearner.core.ComponentPool
public final class ComponentPool
- extends Object
Stores all live components and the configuration options, which were applied
to them. This allows to detect, which components are currently active, which
values are assigned to specific options, and to collect statistics (e.g. in
a web service scenario).
- Author:
- Jens Lehmann
ComponentPool
public ComponentPool()
registerComponent
public void registerComponent(AbstractComponent component)
- Registers a component instance in the pool.
- Parameters:
component - The component to add to the pool.
unregisterComponent
public void unregisterComponent(AbstractComponent component)
- Unregisters a component instance. This method should be used if the
component will not be used anymore. It frees the memory for
storing the component and its configuration options.
- Parameters:
component - The component to remove from the pool.
getComponents
public List<AbstractComponent> getComponents()
- Returns:
- The components in this pool.
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann