Class ClassLoaderProblems

java.lang.Object
org.moeaframework.core.spi.ProblemProvider
org.moeaframework.problem.ClassLoaderProblems

public class ClassLoaderProblems extends ProblemProvider
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:
  1. Problems must provide an empty constructor; and
  2. A reference set can not be defined, so any analysis will need an explicit reference set
Defining problems this way is no longer recommended. Instead, we recommend using a RegisteredProblemProvider to register new problems with this framework.
  • Constructor Details

    • ClassLoaderProblems

      public ClassLoaderProblems()
      Constructs the problem provider that locates problems using their fully-qualified class name.
  • Method Details

    • getProblem

      public Problem getProblem(String name)
      Description copied from class: ProblemProvider
      Returns the problem with the specified name, or null if this provider does not support the problem.
      Specified by:
      getProblem in class ProblemProvider
      Parameters:
      name - the problem name
      Returns:
      the problem with the specified name, or null if this provider does not support the problem
    • getReferenceSet

      public NondominatedPopulation getReferenceSet(String name)
      Description copied from class: ProblemProvider
      Returns the reference set for the specified problem, or null if this provider does not support the problem or no reference set is available.
      Specified by:
      getReferenceSet in class ProblemProvider
      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