Package org.moeaframework.problem
Class ClassLoaderProblems
java.lang.Object
org.moeaframework.core.spi.ProblemProvider
org.moeaframework.problem.ClassLoaderProblems
Legacy problem provider that locates problems using their fully-qualified class name. For example:
ProblemFactory.getInstance().getProblem("org.moeaframework.problem.LZ.LZ1");There are a few limitations of this provider, including:
- Problems must provide an empty constructor; and
- A reference set can not be defined, so any analysis will need an explicit reference set
RegisteredProblemProvider
to register new problems with this framework.-
Constructor Summary
ConstructorDescriptionConstructs the problem provider that locates problems using their fully-qualified class name. -
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
-
ClassLoaderProblems
public ClassLoaderProblems()Constructs the problem provider that locates problems using their fully-qualified class name.
-
-
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
-