Package org.optaplanner.benchmark.config
Class ProblemBenchmarksConfig
java.lang.Object
org.optaplanner.core.config.AbstractConfig<ProblemBenchmarksConfig>
org.optaplanner.benchmark.config.ProblemBenchmarksConfig
public class ProblemBenchmarksConfig
extends org.optaplanner.core.config.AbstractConfig<ProblemBenchmarksConfig>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn 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) 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) 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.AbstractConfig
toString
-
Constructor Details
-
ProblemBenchmarksConfig
public ProblemBenchmarksConfig()
-
-
Method Details
-
getSolutionFileIOClass
-
setSolutionFileIOClass
-
getWriteOutputSolutionEnabled
-
setWriteOutputSolutionEnabled
-
getInputSolutionFileList
-
setInputSolutionFileList
-
getProblemStatisticEnabled
-
setProblemStatisticEnabled
-
getProblemStatisticTypeList
-
setProblemStatisticTypeList
-
getSingleStatisticTypeList
-
setSingleStatisticTypeList
-
withSolutionFileIOClass
public ProblemBenchmarksConfig withSolutionFileIOClass(Class<? extends SolutionFileIO<?>> solutionFileIOClass) -
withWriteOutputSolutionEnabled
-
withInputSolutionFileList
-
withInputSolutionFiles
-
withProblemStatisticsEnabled
-
withProblemStatisticTypeList
public ProblemBenchmarksConfig withProblemStatisticTypeList(List<ProblemStatisticType> problemStatisticTypeList) -
withProblemStatisticTypes
public ProblemBenchmarksConfig withProblemStatisticTypes(ProblemStatisticType... problemStatisticTypes) -
withSingleStatisticTypeList
public ProblemBenchmarksConfig withSingleStatisticTypeList(List<SingleStatisticType> singleStatisticTypeList) -
withSingleStatisticTypes
public ProblemBenchmarksConfig withSingleStatisticTypes(SingleStatisticType... singleStatisticTypes) -
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
- Specified by:
inheritin classorg.optaplanner.core.config.AbstractConfig<ProblemBenchmarksConfig>
-
copyConfig
- Specified by:
copyConfigin classorg.optaplanner.core.config.AbstractConfig<ProblemBenchmarksConfig>
-
visitReferencedClasses
- Specified by:
visitReferencedClassesin classorg.optaplanner.core.config.AbstractConfig<ProblemBenchmarksConfig>
-