Package org.optaplanner.benchmark.impl
Class DefaultPlannerBenchmarkFactory
- java.lang.Object
- 
- org.optaplanner.benchmark.api.PlannerBenchmarkFactory
- 
- org.optaplanner.benchmark.impl.DefaultPlannerBenchmarkFactory
 
 
- 
 public class DefaultPlannerBenchmarkFactory extends PlannerBenchmarkFactory - See Also:
- PlannerBenchmarkFactory
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected PlannerBenchmarkConfigplannerBenchmarkConfigstatic PatternVALID_NAME_PATTERN
 - 
Constructor SummaryConstructors Constructor Description DefaultPlannerBenchmarkFactory(PlannerBenchmarkConfig plannerBenchmarkConfig)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<SolverBenchmarkConfig>buildEffectiveSolverBenchmarkConfigList()PlannerBenchmarkbuildPlannerBenchmark()Creates a newPlannerBenchmarkinstance.<Solution_>
 PlannerBenchmarkbuildPlannerBenchmark(Solution_... problems)Creates a newPlannerBenchmarkinstance for datasets that are already in memory.protected LongcalculateWarmUpTimeMillisSpentLimit()protected voidgenerateSolverBenchmarkConfigNames()protected intresolveParallelBenchmarkCount()protected intresolveParallelBenchmarkCountAutomatically(int availableProcessorCount)protected voidvalidate()- 
Methods inherited from class org.optaplanner.benchmark.api.PlannerBenchmarkFactorybuildPlannerBenchmark, create, createFromFreemarkerXmlFile, createFromFreemarkerXmlFile, createFromFreemarkerXmlFile, createFromFreemarkerXmlFile, createFromFreemarkerXmlResource, createFromFreemarkerXmlResource, createFromFreemarkerXmlResource, createFromFreemarkerXmlResource, createFromSolverConfigXmlResource, createFromSolverConfigXmlResource, createFromSolverConfigXmlResource, createFromSolverConfigXmlResource, createFromXmlFile, createFromXmlFile, createFromXmlResource, createFromXmlResource
 
- 
 
- 
- 
- 
Field Detail- 
VALID_NAME_PATTERNpublic static final Pattern VALID_NAME_PATTERN 
 - 
plannerBenchmarkConfigprotected final PlannerBenchmarkConfig plannerBenchmarkConfig 
 
- 
 - 
Constructor Detail- 
DefaultPlannerBenchmarkFactorypublic DefaultPlannerBenchmarkFactory(PlannerBenchmarkConfig plannerBenchmarkConfig) 
 
- 
 - 
Method Detail- 
buildPlannerBenchmarkpublic PlannerBenchmark buildPlannerBenchmark() Description copied from class:PlannerBenchmarkFactoryCreates a newPlannerBenchmarkinstance.- Specified by:
- buildPlannerBenchmarkin class- PlannerBenchmarkFactory
- Returns:
- never null
 
 - 
buildPlannerBenchmark@SafeVarargs public final <Solution_> PlannerBenchmark buildPlannerBenchmark(Solution_... problems) Description copied from class:PlannerBenchmarkFactoryCreates a newPlannerBenchmarkinstance for datasets that are already in memory.- Specified by:
- buildPlannerBenchmarkin class- PlannerBenchmarkFactory
- Type Parameters:
- Solution_- the solution type, the class with the- PlanningSolutionannotation
- Parameters:
- problems- never null, can be none
- Returns:
- never null
 
 - 
validateprotected void validate() 
 - 
generateSolverBenchmarkConfigNamesprotected void generateSolverBenchmarkConfigNames() 
 - 
buildEffectiveSolverBenchmarkConfigListprotected List<SolverBenchmarkConfig> buildEffectiveSolverBenchmarkConfigList() 
 - 
resolveParallelBenchmarkCountprotected int resolveParallelBenchmarkCount() 
 - 
resolveParallelBenchmarkCountAutomaticallyprotected int resolveParallelBenchmarkCountAutomatically(int availableProcessorCount) 
 - 
calculateWarmUpTimeMillisSpentLimitprotected Long calculateWarmUpTimeMillisSpentLimit() 
 
- 
 
-