public abstract class PlannerBenchmarkFactory extends Object
PlannerBenchmark instances.
Supports tweaking the configuration programmatically before a PlannerBenchmark instance is build.
| Constructor and Description |
|---|
PlannerBenchmarkFactory() |
public static <Solution_> PlannerBenchmarkFactory createFromSolverFactory(SolverFactory<Solution_> solverFactory)
Solution_ - the solution type, the class with the PlanningSolution annotationsolverFactory - never null, also its ClassLoader is reused if any was configured during creationpublic static <Solution_> PlannerBenchmarkFactory createFromSolverFactory(SolverFactory<Solution_> solverFactory, File benchmarkDirectory)
Solution_ - the solution type, the class with the PlanningSolution annotationsolverFactory - never null, also its ClassLoader is reused if any was configured during creationbenchmarkDirectory - never nullpublic static PlannerBenchmarkFactory createFromXmlResource(String benchmarkConfigResource)
benchmarkConfigResource - never null, a classpath resource
as defined by ClassLoader.getResource(String)public static PlannerBenchmarkFactory createFromXmlResource(String benchmarkConfigResource, ClassLoader classLoader)
benchmarkConfigResource - never null, a classpath resource
as defined by ClassLoader.getResource(String)classLoader - sometimes null, the ClassLoader to use for loading all resources and Classes,
null to use the default ClassLoaderpublic static PlannerBenchmarkFactory createFromXmlFile(File benchmarkConfigFile)
benchmarkConfigFile - never nullpublic static PlannerBenchmarkFactory createFromXmlFile(File benchmarkConfigFile, ClassLoader classLoader)
benchmarkConfigFile - never nullclassLoader - sometimes null, the ClassLoader to use for loading all resources and Classes,
null to use the default ClassLoaderpublic static PlannerBenchmarkFactory createFromXmlInputStream(InputStream in)
in - never null, gets closedpublic static PlannerBenchmarkFactory createFromXmlInputStream(InputStream in, ClassLoader classLoader)
in - never null, gets closedclassLoader - sometimes null, the ClassLoader to use for loading all resources and Classes,
null to use the default ClassLoaderpublic static PlannerBenchmarkFactory createFromXmlReader(Reader reader)
reader - never null, gets closedpublic static PlannerBenchmarkFactory createFromXmlReader(Reader reader, ClassLoader classLoader)
reader - never null, gets closedclassLoader - sometimes null, the ClassLoader to use for loading all resources and Classes,
null to use the default ClassLoaderpublic static PlannerBenchmarkFactory createFromFreemarkerXmlResource(String templateResource)
templateResource - never null, a classpath resource as defined by ClassLoader.getResource(String)public static PlannerBenchmarkFactory createFromFreemarkerXmlResource(String templateResource, ClassLoader classLoader)
templateResource - never null, a classpath resource as defined by ClassLoader.getResource(String)classLoader - sometimes null, the ClassLoader to use for loading all resources and Classes,
null to use the default ClassLoaderpublic static PlannerBenchmarkFactory createFromFreemarkerXmlResource(String templateResource, Object model)
templateResource - never null, a classpath resource as defined by ClassLoader.getResource(String)model - sometimes nullpublic static PlannerBenchmarkFactory createFromFreemarkerXmlResource(String templateResource, Object model, ClassLoader classLoader)
templateResource - never null, a classpath resource as defined by ClassLoader.getResource(String)model - sometimes nullclassLoader - sometimes null, the ClassLoader to use for loading all resources and Classes,
null to use the default ClassLoaderpublic static PlannerBenchmarkFactory createFromFreemarkerXmlFile(File templateFile)
templateFile - never nullpublic static PlannerBenchmarkFactory createFromFreemarkerXmlFile(File templateFile, ClassLoader classLoader)
templateFile - never nullclassLoader - sometimes null, the ClassLoader to use for loading all resources and Classes,
null to use the default ClassLoaderpublic static PlannerBenchmarkFactory createFromFreemarkerXmlFile(File templateFile, Object model)
templateFile - never nullmodel - sometimes nullpublic static PlannerBenchmarkFactory createFromFreemarkerXmlFile(File templateFile, Object model, ClassLoader classLoader)
templateFile - never nullmodel - sometimes nullclassLoader - sometimes null, the ClassLoader to use for loading all resources and Classes,
null to use the default ClassLoaderpublic static PlannerBenchmarkFactory createFromFreemarkerXmlInputStream(InputStream templateIn)
templateIn - never null, gets closedpublic static PlannerBenchmarkFactory createFromFreemarkerXmlInputStream(InputStream templateIn, ClassLoader classLoader)
templateIn - never null, gets closedclassLoader - sometimes null, the ClassLoader to use for loading all resources and Classes,
null to use the default ClassLoaderpublic static PlannerBenchmarkFactory createFromFreemarkerXmlInputStream(InputStream templateIn, Object model)
templateIn - never null, gets closedmodel - sometimes nullpublic static PlannerBenchmarkFactory createFromFreemarkerXmlInputStream(InputStream templateIn, Object model, ClassLoader classLoader)
templateIn - never null, gets closedmodel - sometimes nullclassLoader - sometimes null, the ClassLoader to use for loading all resources and Classes,
null to use the default ClassLoaderpublic static PlannerBenchmarkFactory createFromFreemarkerXmlReader(Reader templateReader)
templateReader - never null, gets closedpublic static PlannerBenchmarkFactory createFromFreemarkerXmlReader(Reader templateReader, ClassLoader classLoader)
templateReader - never null, gets closedclassLoader - sometimes null, the ClassLoader to use for loading all resources and Classes,
null to use the default ClassLoaderpublic static PlannerBenchmarkFactory createFromFreemarkerXmlReader(Reader templateReader, Object model)
templateReader - never null, gets closedmodel - sometimes nullpublic static PlannerBenchmarkFactory createFromFreemarkerXmlReader(Reader templateReader, Object model, ClassLoader classLoader)
templateReader - never null, gets closedmodel - sometimes nullclassLoader - sometimes null, the ClassLoader to use for loading all resources and Classes,
null to use the default ClassLoaderpublic abstract PlannerBenchmarkConfig getPlannerBenchmarkConfig()
PlannerBenchmarkConfig at runtime before building
the PlannerBenchmark.
This method is not thread-safe.
public abstract PlannerBenchmark buildPlannerBenchmark()
PlannerBenchmark instance.public abstract <Solution_> PlannerBenchmark buildPlannerBenchmark(Solution_... problems)
PlannerBenchmark instance for datasets that are already in memory.Solution_ - the solution type, the class with the PlanningSolution annotationproblems - never null, can be nonepublic abstract <Solution_> PlannerBenchmark buildPlannerBenchmark(List<Solution_> problemList)
PlannerBenchmark instance for datasets that are already in memory.Solution_ - the solution type, the class with the PlanningSolution annotationproblemList - never null, can be emptyCopyright © 2006–2018 JBoss by Red Hat. All rights reserved.