|
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.ProblemFactory
public class ProblemFactory
Factory for creating optimization problem instances and their corresponding
reference sets, if known. See ProblemProvider for details on adding
new providers.
This class is thread safe.
| Constructor Summary | |
|---|---|
ProblemFactory()
Constructs a new problem factory. |
|
| Method Summary | |
|---|---|
static ProblemFactory |
getInstance()
Returns the default problem factory. |
Problem |
getProblem(String name)
Searches through all discovered ProblemProvider instances,
returning an instance of the problem with the registered name. |
NondominatedPopulation |
getReferenceSet(String name)
Searches through all discovered ProblemProvider instances,
returning the reference set of the problem with the registered name. |
static void |
setInstance(ProblemFactory instance)
Sets the default problem factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProblemFactory()
| Method Detail |
|---|
public static ProblemFactory getInstance()
public static void setInstance(ProblemFactory instance)
instance - the default problem factorypublic Problem getProblem(String name)
ProblemProvider instances,
returning an instance of the problem with the registered name. This
method must throw an ProviderNotFoundException if no matching
problem is found.
name - the name identifying the problem
ProviderNotFoundException - if no provider for the problem is
availablepublic NondominatedPopulation getReferenceSet(String name)
ProblemProvider instances,
returning the reference set of the problem with the registered name.
Returns null if no reference set is available for the specified
problem.
name - the name identifying the problem
null if no reference set is available
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||