Class ConfigurationUtils

java.lang.Object
org.moeaframework.core.configuration.ConfigurationUtils

public class ConfigurationUtils extends Object
Utility methods for scanning classes to identify properties, reading the configured values, or setting new values.
  • Method Details

    • applyConfiguration

      public static void applyConfiguration(TypedProperties properties, Configurable object)
      Updates the properties in the configurable object (and all nested configurable objects recursively).
      Parameters:
      properties - the new properties
      object - the configurable object
    • applyConfiguration

      public static void applyConfiguration(TypedProperties properties, Configurable object, Problem problem)
      Updates the properties in the configurable object (and all nested configurable objects recursively).
      Parameters:
      properties - the new properties
      object - the configurable object
      problem - the problem instance, which is needed if constructing any variation or mutation operators
    • getConfiguration

      public static TypedProperties getConfiguration(Configurable object)
      Reads and returns all properties used by the configurable object.
      Parameters:
      object - the configurable object
      Returns:
      the properties