Class AlgorithmManagerImpl
- java.lang.Object
-
- cern.accsoft.steering.aloha.calc.algorithm.AlgorithmManagerImpl
-
- All Implemented Interfaces:
AlgorithmManager
public class AlgorithmManagerImpl extends java.lang.Object implements AlgorithmManager
The implementation of anAlgorithmManager.
-
-
Constructor Summary
Constructors Constructor Description AlgorithmManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAlgorithmFactory(AlgorithmFactory factory)registers an algorithm-factory, that can be used to create an algorithm for a solver.AlgorithmgetAlgorithm(Solver solver)must return an instance of an algorithm that uses the given solver.
-
-
-
Method Detail
-
addAlgorithmFactory
public void addAlgorithmFactory(AlgorithmFactory factory)
Description copied from interface:AlgorithmManagerregisters an algorithm-factory, that can be used to create an algorithm for a solver.- Specified by:
addAlgorithmFactoryin interfaceAlgorithmManager
-
getAlgorithm
public Algorithm getAlgorithm(Solver solver)
Description copied from interface:AlgorithmManagermust return an instance of an algorithm that uses the given solver. It should return always the same instance for the same solver instance.- Specified by:
getAlgorithmin interfaceAlgorithmManager- Parameters:
solver- the solver for which to find an algorithm- Returns:
- the algorithm
-
-