javax.datamining.task
Interface BuildTaskFactory

All Superinterfaces:
Factory

public interface BuildTaskFactory
extends Factory

A factory class that creates instances of BuildTask. Arguments cannot be null, otherwise an exception is thrown. An exception is thrown if string length exceeds the maximum name length.

Author:
JSR-73 Java Data Mining Expert Group
See Also:
Factory

Method Summary
 BuildTask create(java.lang.String buildData, java.lang.String buildSettingsName, java.lang.String modelName)
          Creates an instance of BuildTask with the specified build data PhysicalDataSet, build settings, and the name of the model to be produced.
 boolean supportsCapability(MiningFunction function, MiningAlgorithm algorithm, BuildTaskCapability capability)
          Returns true if the specified function and algorithm support the specified capability.
 

Method Detail

create

public BuildTask create(java.lang.String buildData,
                        java.lang.String buildSettingsName,
                        java.lang.String modelName)
                 throws JDMException
Creates an instance of BuildTask with the specified build data PhysicalDataSet, build settings, and the name of the model to be produced.

Parameters:
buildData - The name of a physical data (either table or file) to be used for model building.
buildSettingsName - The name of a build settings to be used for model building.
modelName - The name of the resulting model to be persisted in the current schema where the task is executed.
Returns:
BuildTask
Throws:
JDMException

supportsCapability

public boolean supportsCapability(MiningFunction function,
                                  MiningAlgorithm algorithm,
                                  BuildTaskCapability capability)
                           throws JDMException
Returns true if the specified function and algorithm support the specified capability. Returns false if the specified combination is not supported. Throws an exception if function is null. If algorithm is null, returns the support of the specified capability at the function level.

Parameters:
function - The function to support the specified capability.
algorithm - The algorithm to support the specified capability.
capability - The capability of build task.
Returns:
boolean
Throws:
JDMException