Class ConfigurationUtils
java.lang.Object
org.moeaframework.core.configuration.ConfigurationUtils
Utility methods for scanning classes to identify properties, reading the configured values, or setting new values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyConfiguration
(TypedProperties properties, Configurable object) Updates the properties in the configurable object (and all nested configurable objects recursively).static void
applyConfiguration
(TypedProperties properties, Configurable object, Problem problem) Updates the properties in the configurable object (and all nested configurable objects recursively).static TypedProperties
getConfiguration
(Configurable object) Reads and returns all properties used by the configurable object.
-
Method Details
-
applyConfiguration
Updates the properties in the configurable object (and all nested configurable objects recursively).- Parameters:
properties
- the new propertiesobject
- 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 propertiesobject
- the configurable objectproblem
- the problem instance, which is needed if constructing any variation or mutation operators
-
getConfiguration
Reads and returns all properties used by the configurable object.- Parameters:
object
- the configurable object- Returns:
- the properties
-