Class DefaultComponentFactory
java.lang.Object
impl.factory.DefaultComponentFactory
- All Implemented Interfaces:
IComponentFactory
Default implementation of component factory.
-
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.static IComponentFactory
-
Method Details
-
getInstance
- Returns:
- default instance
-
createInputData
Description copied from interface:IComponentFactoryCreates an instance of IInputData.- Specified by:
createInputDatain interfaceIComponentFactory- Parameters:
name- The name of the input data.id- The unique identifier for the input data.- Returns:
- An instance of IInputData.
-
createToolParameters
Description copied from interface:IComponentFactoryCreates an instance of IToolParameters.- Specified by:
createToolParametersin interfaceIComponentFactory- 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
Description copied from interface:IComponentFactoryCreates an instance of IPlatformParameters.- Specified by:
createPlatformParametersin interfaceIComponentFactory- 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
Description copied from interface:IComponentFactoryCreates an instance of IMeasures.- Specified by:
createMeasuresin interfaceIComponentFactory- Parameters:
name- The name of the measures set.- Returns:
- An instance of IMeasures.
-
createExport
Description copied from interface:IComponentFactoryCreates an instance of IExport.- Specified by:
createExportin interfaceIComponentFactory- Parameters:
name- The name of the export configuration.- Returns:
- An instance of IExport.
-
createTask
public ITask createTask(String taskID, IInputData inputData, IToolParameters toolParams, IPlatformParameters platformParams, IMeasures measures, Collection<Class<? extends IExport>> exportClasses, Class<? extends IToolKeywordsMenu> bindingClass) Description copied from interface:IComponentFactoryCreates a new task configured with specified input data, tool parameters, platform parameters, measures, export classes, and a binding class.- Specified by:
createTaskin interfaceIComponentFactory- 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
public 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) Description copied from interface:IComponentFactoryCreates a new benchmark configured with specified sets of input data, tool parameters, platform parameters, measures, export classes, a binding class, and tasks.- Specified by:
createBenchmarkin interfaceIComponentFactory- 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.
-