Interface AlgorithmManager

  • All Known Implementing Classes:
    AlgorithmManagerImpl

    public interface AlgorithmManager
    This is the interface of a class that keeps track of all available Algorithm factories. It creates algorithms for solvers if necessary or returns already created instances..
    • Method Detail

      • addAlgorithmFactory

        void addAlgorithmFactory​(AlgorithmFactory factory)
        registers an algorithm-factory, that can be used to create an algorithm for a solver.
        Parameters:
        factory -
      • getAlgorithm

        Algorithm getAlgorithm​(Solver solver)
        must return an instance of an algorithm that uses the given solver. It should return always the same instance for the same solver instance.
        Parameters:
        solver - the solver for which to find an algorithm
        Returns:
        the algorithm