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 AbstractConfig<ProblemBenchmarksConfig>
-
-
Constructor Summary
Constructors Constructor Description ProblemBenchmarksConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProblemBenchmarksConfig
copyConfig()
Typically implemented by constructing a new instance and callingAbstractConfig.inherit(AbstractConfig)
on it.List<ProblemStatisticType>
determineProblemStatisticTypeList()
Return the problem statistic type list, or a list containing default metrics if problemStatisticEnabled is not false.List<SingleStatisticType>
determineSingleStatisticTypeList()
Return the single statistic type list, or an empty list if it is nullList<File>
getInputSolutionFileList()
Boolean
getProblemStatisticEnabled()
List<ProblemStatisticType>
getProblemStatisticTypeList()
List<SingleStatisticType>
getSingleStatisticTypeList()
Class<SolutionFileIO<?>>
getSolutionFileIOClass()
Boolean
getWriteOutputSolutionEnabled()
ProblemBenchmarksConfig
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<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
-
-
-
-
Method Detail
-
getSolutionFileIOClass
public Class<SolutionFileIO<?>> getSolutionFileIOClass()
-
setSolutionFileIOClass
public void setSolutionFileIOClass(Class<SolutionFileIO<?>> solutionFileIOClass)
-
getWriteOutputSolutionEnabled
public Boolean getWriteOutputSolutionEnabled()
-
setWriteOutputSolutionEnabled
public void setWriteOutputSolutionEnabled(Boolean writeOutputSolutionEnabled)
-
getProblemStatisticEnabled
public Boolean getProblemStatisticEnabled()
-
setProblemStatisticEnabled
public void setProblemStatisticEnabled(Boolean problemStatisticEnabled)
-
getProblemStatisticTypeList
public List<ProblemStatisticType> getProblemStatisticTypeList()
-
setProblemStatisticTypeList
public void setProblemStatisticTypeList(List<ProblemStatisticType> problemStatisticTypeList)
-
getSingleStatisticTypeList
public List<SingleStatisticType> getSingleStatisticTypeList()
-
setSingleStatisticTypeList
public void setSingleStatisticTypeList(List<SingleStatisticType> singleStatisticTypeList)
-
determineProblemStatisticTypeList
public List<ProblemStatisticType> 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
public List<SingleStatisticType> determineSingleStatisticTypeList()
Return the single statistic type list, or an empty list if it is null- Returns:
- never null
-
inherit
public ProblemBenchmarksConfig inherit(ProblemBenchmarksConfig inheritedConfig)
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
public ProblemBenchmarksConfig 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
public void visitReferencedClasses(Consumer<Class<?>> classVisitor)
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.
-
-