Interface IComponentFactory
- All Known Implementing Classes:
DefaultComponentFactory
public interface IComponentFactory
Provides factory methods for creating various components used in the benchmarking framework.
This interface allows for the creation of data inputs, tool parameters, platform parameters,
measures, exports, tasks, and benchmarks that are necessary for running and managing benchmarks.
-
Method Summary
Modifier and TypeMethodDescriptioncreateBenchmark(String benchID, List<? extends IInputData> inputDatas, List<? extends IToolParameters> toolsParams, List<? extends IPlatformParameters> platformsParam, Collection<? extends IMeasures> measures, Collection<Class<? extends IExport>> exports, Class<? extends IToolKeywordsMenu> binding, Collection<? extends ITask> tasks) Creates a new benchmark configured with specified sets of input data, tool parameters, platform parameters, measures, export classes, a binding class, and tasks.createExport(String name) Creates an instance of IExport.createInputData(String name, int id) Creates an instance of IInputData.createMeasures(String name) Creates an instance of IMeasures.createPlatformParameters(String name, RunnersConstants platform, int id) Creates an instance of IPlatformParameters.createTask(String taskID, IInputData inputData, IToolParameters toolParams, IPlatformParameters platformParams, IMeasures measures, Collection<Class<? extends IExport>> exportClasses, Class<? extends IToolKeywordsMenu> bindingClass) Creates a new task configured with specified input data, tool parameters, platform parameters, measures, export classes, and a binding class.createToolParameters(String name, IToolKeywordsMenu tool, int id) Creates an instance of IToolParameters.
-
Method Details
-
createInputData
Creates an instance of IInputData.- Parameters:
name- The name of the input data.id- The unique identifier for the input data.- Returns:
- An instance of IInputData.
-
createToolParameters
Creates an instance of IToolParameters.- Parameters:
name- The name of the tool parameter set.tool- The tool constant that specifies the type of tool.id- The unique identifier for the tool parameters.- Returns:
- An instance of IToolParameters.
-
createPlatformParameters
Creates an instance of IPlatformParameters.- Parameters:
name- The name of the platform parameter set.platform- The platform constant that specifies the type of platform.id- The unique identifier for the platform parameters.- Returns:
- An instance of IPlatformParameters.
-
createMeasures
-
createExport
-
createTask
ITask createTask(String taskID, IInputData inputData, IToolParameters toolParams, IPlatformParameters platformParams, IMeasures measures, Collection<Class<? extends IExport>> exportClasses, Class<? extends IToolKeywordsMenu> bindingClass) Creates a new task configured with specified input data, tool parameters, platform parameters, measures, export classes, and a binding class.- Parameters:
taskID- The unique identifier for the task.inputData- The input data for the task.toolParams- The tool parameters for the task.platformParams- The platform parameters for the task.measures- The measures associated with the task.exportClasses- The classes defining how results should be exported.bindingClass- The class that binds the tool implementation with the task.- Returns:
- A configured instance of ITask.
-
createBenchmark
IBenchmark createBenchmark(String benchID, List<? extends IInputData> inputDatas, List<? extends IToolParameters> toolsParams, List<? extends IPlatformParameters> platformsParam, Collection<? extends IMeasures> measures, Collection<Class<? extends IExport>> exports, Class<? extends IToolKeywordsMenu> binding, Collection<? extends ITask> tasks) Creates a new benchmark configured with specified sets of input data, tool parameters, platform parameters, measures, export classes, a binding class, and tasks.- Parameters:
benchID- The unique identifier for the benchmark.inputDatas- The list of input data sets.toolsParams- The list of tool parameter sets.platformsParam- The list of platform parameter sets.measures- The collection of measures.exports- The collection of export configurations.binding- The binding class used for the benchmark.tasks- The collection of tasks included in the benchmark.- Returns:
- A configured instance of IBenchmark.
-