|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.core.spi.AlgorithmFactory
public class AlgorithmFactory
Factory for creating algorithm instances. See AlgorithmProvider for
details on adding new providers.
This class is thread safe.
| Constructor Summary | |
|---|---|
AlgorithmFactory()
Constructs a new algorithm factory. |
|
| Method Summary | |
|---|---|
Algorithm |
getAlgorithm(String name,
Properties properties,
Problem problem)
Searches through all discovered AlgorithmProvider instances,
returning an instance of the algorithm with the registered name. |
static AlgorithmFactory |
getInstance()
Returns the default algorithm factory. |
static void |
setInstance(AlgorithmFactory instance)
Sets the default algorithm factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlgorithmFactory()
| Method Detail |
|---|
public static AlgorithmFactory getInstance()
public static void setInstance(AlgorithmFactory instance)
instance - the default algorithm factory
public Algorithm getAlgorithm(String name,
Properties properties,
Problem problem)
AlgorithmProvider instances,
returning an instance of the algorithm with the registered name. The
algorithm is initialized using implementation-specific properties. This
method must throw an ProviderNotFoundException if no suitable
algorithm is found.
name - the name identifying the algorithmproperties - the implementation-specific propertiesproblem - the problem to be solved
ProviderNotFoundException - if no provider for the algorithm is
available
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||