Package org.moeaframework.problem
Class PropertiesProblems
java.lang.Object
org.moeaframework.core.spi.ProblemProvider
org.moeaframework.problem.PropertiesProblems
Legacy problem provider that loads problems defined in "moeaframework.properties".
For example, we could add the following to the properties file:
org.moeaframework.problem.TestLZ1.class = org.moeaframework.problem.LZ.LZ1 org.moeaframework.problem.TestLZ1.referenceSet = ./pf/LZ09_F1.pfAnd then instantiate the problem with:
ProblemFactory.getInstance().getProblem("TestLZ1");Defining problems this way is no longer recommended. Instead, we recommend using a
RegisteredProblemProvider
to register new problems with this framework.-
Constructor Summary
ConstructorDescriptionConstructs the problem provider for problems enumerated in "moeaframework.properties". -
Method Summary
Modifier and TypeMethodDescriptiongetProblem
(String name) Returns the problem with the specified name, ornull
if this provider does not support the problem.getReferenceSet
(String name) Returns the reference set for the specified problem, ornull
if this provider does not support the problem or no reference set is available.Methods inherited from class org.moeaframework.core.spi.ProblemProvider
getDiagnosticToolProblems, getEpsilons
-
Constructor Details
-
PropertiesProblems
public PropertiesProblems()Constructs the problem provider for problems enumerated in "moeaframework.properties".
-
-
Method Details
-
getProblem
Description copied from class:ProblemProvider
Returns the problem with the specified name, ornull
if this provider does not support the problem.- Specified by:
getProblem
in classProblemProvider
- Parameters:
name
- the problem name- Returns:
- the problem with the specified name, or
null
if this provider does not support the problem
-
getReferenceSet
Description copied from class:ProblemProvider
Returns the reference set for the specified problem, ornull
if this provider does not support the problem or no reference set is available.- Specified by:
getReferenceSet
in classProblemProvider
- Parameters:
name
- the problem name- Returns:
- the reference set for the specified problem, or
null
if this provider does not support the problem or no reference set is available
-