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 Summary
Fields Modifier and Type Field Description protected PlannerBenchmarkConfig
plannerBenchmarkConfig
protected SolverConfigContext
solverConfigContext
-
Constructor Summary
Constructors Constructor Description DefaultPlannerBenchmarkFactory(PlannerBenchmarkConfig plannerBenchmarkConfig)
DefaultPlannerBenchmarkFactory(PlannerBenchmarkConfig plannerBenchmarkConfig, SolverConfigContext solverConfigContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PlannerBenchmark
buildPlannerBenchmark()
Creates a newPlannerBenchmark
instance.<Solution_>
PlannerBenchmarkbuildPlannerBenchmark(Solution_... problems)
Creates a newPlannerBenchmark
instance for datasets that are already in memory.PlannerBenchmarkConfig
getPlannerBenchmarkConfig()
Deprecated.SolverConfigContext
getSolverConfigContext()
-
Methods inherited from class org.optaplanner.benchmark.api.PlannerBenchmarkFactory
buildPlannerBenchmark, create, createFromFreemarkerXmlFile, createFromFreemarkerXmlFile, createFromFreemarkerXmlFile, createFromFreemarkerXmlFile, createFromFreemarkerXmlInputStream, createFromFreemarkerXmlInputStream, createFromFreemarkerXmlInputStream, createFromFreemarkerXmlInputStream, createFromFreemarkerXmlReader, createFromFreemarkerXmlReader, createFromFreemarkerXmlReader, createFromFreemarkerXmlReader, createFromFreemarkerXmlResource, createFromFreemarkerXmlResource, createFromFreemarkerXmlResource, createFromFreemarkerXmlResource, createFromKieContainerXmlResource, createFromKieContainerXmlResource, createFromKieContainerXmlResource, createFromSolverConfigXmlResource, createFromSolverConfigXmlResource, createFromSolverConfigXmlResource, createFromSolverConfigXmlResource, createFromSolverFactory, createFromSolverFactory, createFromXmlFile, createFromXmlFile, createFromXmlInputStream, createFromXmlInputStream, createFromXmlReader, createFromXmlReader, createFromXmlResource, createFromXmlResource
-
-
-
-
Field Detail
-
plannerBenchmarkConfig
protected final PlannerBenchmarkConfig plannerBenchmarkConfig
-
solverConfigContext
protected final SolverConfigContext solverConfigContext
-
-
Constructor Detail
-
DefaultPlannerBenchmarkFactory
public DefaultPlannerBenchmarkFactory(PlannerBenchmarkConfig plannerBenchmarkConfig)
-
DefaultPlannerBenchmarkFactory
public DefaultPlannerBenchmarkFactory(PlannerBenchmarkConfig plannerBenchmarkConfig, SolverConfigContext solverConfigContext)
-
-
Method Detail
-
buildPlannerBenchmark
public PlannerBenchmark buildPlannerBenchmark()
Description copied from class:PlannerBenchmarkFactory
Creates a newPlannerBenchmark
instance.- Specified by:
buildPlannerBenchmark
in classPlannerBenchmarkFactory
- Returns:
- never null
-
buildPlannerBenchmark
@SafeVarargs public final <Solution_> PlannerBenchmark buildPlannerBenchmark(Solution_... problems)
Description copied from class:PlannerBenchmarkFactory
Creates a newPlannerBenchmark
instance for datasets that are already in memory.- Specified by:
buildPlannerBenchmark
in classPlannerBenchmarkFactory
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation- Parameters:
problems
- never null, can be none- Returns:
- never null
-
getPlannerBenchmarkConfig
@Deprecated public PlannerBenchmarkConfig getPlannerBenchmarkConfig()
Deprecated.Description copied from class:PlannerBenchmarkFactory
Deprecated. To configure aPlannerBenchmarkFactory
dynamically (without parsing XML each time), usePlannerBenchmarkFactory.create(PlannerBenchmarkConfig)
instead.This method is not thread-safe.
- Specified by:
getPlannerBenchmarkConfig
in classPlannerBenchmarkFactory
- Returns:
- never null
-
getSolverConfigContext
public SolverConfigContext getSolverConfigContext()
-
-