Package org.optaplanner.benchmark.config
Class ProblemBenchmarksConfig
java.lang.Object
org.optaplanner.core.config.AbstractConfig<ProblemBenchmarksConfig>
org.optaplanner.benchmark.config.ProblemBenchmarksConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTypically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)
on it.Return the problem statistic type list, or a list containing default metrics if problemStatisticEnabled is not false.Return the single statistic type list, or an empty list if it is nullClass<? extends SolutionFileIO<?>>
inherit
(ProblemBenchmarksConfig inheritedConfig) Inherits each property of theinheritedConfig
unless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).void
setInputSolutionFileList
(List<File> inputSolutionFileList) void
setProblemStatisticEnabled
(Boolean problemStatisticEnabled) void
setProblemStatisticTypeList
(List<ProblemStatisticType> problemStatisticTypeList) void
setSingleStatisticTypeList
(List<SingleStatisticType> singleStatisticTypeList) void
setSolutionFileIOClass
(Class<? extends SolutionFileIO<?>> solutionFileIOClass) void
setWriteOutputSolutionEnabled
(Boolean writeOutputSolutionEnabled) void
visitReferencedClasses
(Consumer<Class<?>> classVisitor) Call the class visitor on each (possibly null) Class instance provided to this config by the user (including those provided in child configs).Methods inherited from class org.optaplanner.core.config.AbstractConfig
toString
-
Constructor Details
-
ProblemBenchmarksConfig
public ProblemBenchmarksConfig()
-
-
Method Details
-
getSolutionFileIOClass
-
setSolutionFileIOClass
-
getWriteOutputSolutionEnabled
-
setWriteOutputSolutionEnabled
-
getInputSolutionFileList
-
setInputSolutionFileList
-
getProblemStatisticEnabled
-
setProblemStatisticEnabled
-
getProblemStatisticTypeList
-
setProblemStatisticTypeList
-
getSingleStatisticTypeList
-
setSingleStatisticTypeList
-
determineProblemStatisticTypeList
Return the problem statistic type list, or a list containing default metrics if problemStatisticEnabled is not false. If problemStatisticEnabled is false, an empty list is returned.- Returns:
- never null
-
determineSingleStatisticTypeList
Return the single statistic type list, or an empty list if it is null- Returns:
- never null
-
inherit
Description copied from class:AbstractConfig
Inherits each property of theinheritedConfig
unless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).After the inheritance, if a property on this
AbstractConfig
composition is replaced, it should not affect the inherited composition instance.- Specified by:
inherit
in classAbstractConfig<ProblemBenchmarksConfig>
- Parameters:
inheritedConfig
- never null- Returns:
- this
-
copyConfig
Description copied from class:AbstractConfig
Typically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)
on it.- Specified by:
copyConfig
in classAbstractConfig<ProblemBenchmarksConfig>
- Returns:
- new instance
-
visitReferencedClasses
Description copied from class:AbstractConfig
Call the class visitor on each (possibly null) Class instance provided to this config by the user (including those provided in child configs). Required to create the bean factory in Quarkus.- Specified by:
visitReferencedClasses
in classAbstractConfig<ProblemBenchmarksConfig>
- Parameters:
classVisitor
- The visitor of classes, never null. Can accept null instances of Class.
-