Package org.graffiti.managers
Class DefaultAlgorithmManager
java.lang.Object
org.graffiti.managers.DefaultAlgorithmManager
- All Implemented Interfaces:
AlgorithmManager
,PluginManagerListener
public class DefaultAlgorithmManager extends Object implements AlgorithmManager
Manages the map of available algorithms: key = algorithm class names, value =
algorithm
- Version:
- $Revision: 1.6 $
-
Constructor Summary
Constructors Constructor Description DefaultAlgorithmManager()
Constructs a new algorithm manager. -
Method Summary
Modifier and Type Method Description void
addAlgorithm(Algorithm algorithm)
Adds the given algorithm to the list of algorithms.List<Algorithm>
getAlgorithms()
Returns ajava.util.List
containing all theAlgorithm
instances the manager contains.void
pluginAdded(GenericPlugin plugin, PluginDescription desc)
Called by the plugin manager, iff a plugin has been added.
-
Constructor Details
-
DefaultAlgorithmManager
public DefaultAlgorithmManager()Constructs a new algorithm manager.
-
-
Method Details
-
getAlgorithms
Description copied from interface:AlgorithmManager
Returns ajava.util.List
containing all theAlgorithm
instances the manager contains.- Specified by:
getAlgorithms
in interfaceAlgorithmManager
- Returns:
- a
java.util.List
containing all theAlgorithm
instances the manager contains.
-
addAlgorithm
Description copied from interface:AlgorithmManager
Adds the given algorithm to the list of algorithms.- Specified by:
addAlgorithm
in interfaceAlgorithmManager
- Parameters:
algorithm
- the algorithm to add to the list.
-
pluginAdded
Description copied from interface:PluginManagerListener
Called by the plugin manager, iff a plugin has been added.- Specified by:
pluginAdded
in interfacePluginManagerListener
- Parameters:
plugin
- the added plugin.desc
- the description of the new plugin.
-