MOEA Framework 2.12
API Specification

org.moeaframework.problem
Class PropertiesProblems

java.lang.Object
  extended by org.moeaframework.core.spi.ProblemProvider
      extended by org.moeaframework.problem.PropertiesProblems

public class PropertiesProblems
extends ProblemProvider

Problem provider for problems enumerated in global.properties. The problems are identified by name as listed in the org.moeaframework.problem.problems property, with the class and optional reference set defined by the org.moeaframework.problem.NAME.class and org.moeaframework.problem.NAME.referenceSet properties. Problems instantiated this way must provide an empty constructor.


Constructor Summary
PropertiesProblems()
          Constructs the problem provider for problems enumerated in global.properties.
 
Method Summary
protected  String getCaseSensitiveProblemName(String name)
          Returns the case-sensitive version of the problem name.
 Problem getProblem(String name)
          Returns the problem with the specified name, or null if this provider does not support the problem.
 NondominatedPopulation getReferenceSet(String 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesProblems

public PropertiesProblems()
Constructs the problem provider for problems enumerated in global.properties.

Method Detail

getCaseSensitiveProblemName

protected String getCaseSensitiveProblemName(String name)
Returns the case-sensitive version of the problem name. If the problem name was not specifically listed in the org.moeaframework.problem.problems property, name is returned unchanged.

Parameters:
name - the case-insensitive name
Returns:
the case-sensitive name

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

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!