org.dllearner.core
Class ComponentPool

java.lang.Object
  extended by 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

Constructor Summary
ComponentPool()
           
 
Method Summary
 List<AbstractComponent> getComponents()
           
 void registerComponent(AbstractComponent component)
          Registers a component instance in the pool.
 void unregisterComponent(AbstractComponent component)
          Unregisters a component instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentPool

public ComponentPool()
Method Detail

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.


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