Class DefaultComponentFactory

java.lang.Object
impl.factory.DefaultComponentFactory
All Implemented Interfaces:
IComponentFactory

public class DefaultComponentFactory extends Object implements IComponentFactory
Default implementation of component factory.
  • Method Details

    • getInstance

      public static IComponentFactory getInstance()
      Returns:
      default instance
    • createInputData

      public IInputData createInputData(String name, int id)
      Description copied from interface: IComponentFactory
      Creates an instance of IInputData.
      Specified by:
      createInputData in interface IComponentFactory
      Parameters:
      name - The name of the input data.
      id - The unique identifier for the input data.
      Returns:
      An instance of IInputData.
    • createToolParameters

      public IToolParameters createToolParameters(String name, IToolKeywordsMenu tool, int id)
      Description copied from interface: IComponentFactory
      Creates an instance of IToolParameters.
      Specified by:
      createToolParameters in interface IComponentFactory
      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

      public IPlatformParameters createPlatformParameters(String name, RunnersConstants platform, int id)
      Description copied from interface: IComponentFactory
      Creates an instance of IPlatformParameters.
      Specified by:
      createPlatformParameters in interface IComponentFactory
      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

      public IMeasures createMeasures(String name)
      Description copied from interface: IComponentFactory
      Creates an instance of IMeasures.
      Specified by:
      createMeasures in interface IComponentFactory
      Parameters:
      name - The name of the measures set.
      Returns:
      An instance of IMeasures.
    • createExport

      public IExport createExport(String name)
      Description copied from interface: IComponentFactory
      Creates an instance of IExport.
      Specified by:
      createExport in interface IComponentFactory
      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: IComponentFactory
      Creates a new task configured with specified input data, tool parameters, platform parameters, measures, export classes, and a binding class.
      Specified by:
      createTask in interface IComponentFactory
      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: IComponentFactory
      Creates a new benchmark configured with specified sets of input data, tool parameters, platform parameters, measures, export classes, a binding class, and tasks.
      Specified by:
      createBenchmark in interface IComponentFactory
      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.