Package org.optaplanner.benchmark.config
Class ProblemBenchmarksConfig
java.lang.Object
org.optaplanner.core.config.AbstractConfig<ProblemBenchmarksConfig>
org.optaplanner.benchmark.config.ProblemBenchmarksConfig
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).voidsetInputSolutionFileList(List<File> inputSolutionFileList) voidsetProblemStatisticEnabled(Boolean problemStatisticEnabled) voidsetProblemStatisticTypeList(List<ProblemStatisticType> problemStatisticTypeList) voidsetSingleStatisticTypeList(List<SingleStatisticType> singleStatisticTypeList) voidsetSolutionFileIOClass(Class<? extends SolutionFileIO<?>> solutionFileIOClass) voidsetWriteOutputSolutionEnabled(Boolean writeOutputSolutionEnabled) voidvisitReferencedClasses(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).withInputSolutionFileList(List<File> inputSolutionFileList) withInputSolutionFiles(File... inputSolutionFiles) withProblemStatisticsEnabled(Boolean problemStatisticEnabled) withProblemStatisticTypeList(List<ProblemStatisticType> problemStatisticTypeList) withProblemStatisticTypes(ProblemStatisticType... problemStatisticTypes) withSingleStatisticTypeList(List<SingleStatisticType> singleStatisticTypeList) withSingleStatisticTypes(SingleStatisticType... singleStatisticTypes) withSolutionFileIOClass(Class<? extends SolutionFileIO<?>> solutionFileIOClass) withWriteOutputSolutionEnabled(Boolean writeOutputSolutionEnabled) Methods inherited from class org.optaplanner.core.config.AbstractConfigtoString
- 
Constructor Details- 
ProblemBenchmarksConfigpublic ProblemBenchmarksConfig()
 
- 
- 
Method Details- 
getSolutionFileIOClass
- 
setSolutionFileIOClass
- 
getWriteOutputSolutionEnabled
- 
setWriteOutputSolutionEnabled
- 
getInputSolutionFileList
- 
setInputSolutionFileList
- 
getProblemStatisticEnabled
- 
setProblemStatisticEnabled
- 
getProblemStatisticTypeList
- 
setProblemStatisticTypeList
- 
getSingleStatisticTypeList
- 
setSingleStatisticTypeList
- 
withSolutionFileIOClasspublic ProblemBenchmarksConfig withSolutionFileIOClass(Class<? extends SolutionFileIO<?>> solutionFileIOClass) 
- 
withWriteOutputSolutionEnabled
- 
withInputSolutionFileList
- 
withInputSolutionFiles
- 
withProblemStatisticsEnabled
- 
withProblemStatisticTypeListpublic ProblemBenchmarksConfig withProblemStatisticTypeList(List<ProblemStatisticType> problemStatisticTypeList) 
- 
withProblemStatisticTypespublic ProblemBenchmarksConfig withProblemStatisticTypes(ProblemStatisticType... problemStatisticTypes) 
- 
withSingleStatisticTypeListpublic ProblemBenchmarksConfig withSingleStatisticTypeList(List<SingleStatisticType> singleStatisticTypeList) 
- 
withSingleStatisticTypespublic ProblemBenchmarksConfig withSingleStatisticTypes(SingleStatisticType... singleStatisticTypes) 
- 
determineProblemStatisticTypeListReturn 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
 
- 
determineSingleStatisticTypeListReturn the single statistic type list, or an empty list if it is null- Returns:
- never null
 
- 
inheritDescription copied from class:AbstractConfigInherits each property of theinheritedConfigunless that property (or a semantic alternative) is defined by this instance (which overwrites the inherited behaviour).After the inheritance, if a property on this AbstractConfigcomposition is replaced, it should not affect the inherited composition instance.- Specified by:
- inheritin class- AbstractConfig<ProblemBenchmarksConfig>
- Parameters:
- inheritedConfig- never null
- Returns:
- this
 
- 
copyConfigDescription copied from class:AbstractConfigTypically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)on it.- Specified by:
- copyConfigin class- AbstractConfig<ProblemBenchmarksConfig>
- Returns:
- new instance
 
- 
visitReferencedClassesDescription copied from class:AbstractConfigCall 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:
- visitReferencedClassesin class- AbstractConfig<ProblemBenchmarksConfig>
- Parameters:
- classVisitor- The visitor of classes, never null. Can accept null instances of Class.
 
 
-