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 Details

    • DefaultAlgorithmManager

      public DefaultAlgorithmManager()
      Constructs a new algorithm manager.
  • Method Details

    • getAlgorithms

      public List<Algorithm> getAlgorithms()
      Description copied from interface: AlgorithmManager
      Returns a java.util.List containing all the Algorithm instances the manager contains.
      Specified by:
      getAlgorithms in interface AlgorithmManager
      Returns:
      a java.util.List containing all the Algorithm instances the manager contains.
    • addAlgorithm

      public void addAlgorithm​(Algorithm algorithm)
      Description copied from interface: AlgorithmManager
      Adds the given algorithm to the list of algorithms.
      Specified by:
      addAlgorithm in interface AlgorithmManager
      Parameters:
      algorithm - the algorithm to add to the list.
    • pluginAdded

      public void pluginAdded​(GenericPlugin plugin, PluginDescription desc)
      Description copied from interface: PluginManagerListener
      Called by the plugin manager, iff a plugin has been added.
      Specified by:
      pluginAdded in interface PluginManagerListener
      Parameters:
      plugin - the added plugin.
      desc - the description of the new plugin.