public class KDDStrategyFactory
extends java.lang.Object
The KDDStrategyFactory is responsible for decoupling the KDDAnalysisDocument from the act of creating specialized KDDStrategies. This allows the document to solely focus on producing IAnalysisAssets, and not the actual method of those asset's creation, or the strategy's implemented data mining algorithm.
Constructor and Description |
---|
KDDStrategyFactory()
The constructor
|
Modifier and Type | Method and Description |
---|---|
KDDStrategy |
createStrategy(java.lang.String selectedAsset,
java.util.ArrayList<IDataProvider> data)
This method creates the requested KDDStrategy with the given mapping of
IDataProviders.
|
java.util.ArrayList<java.lang.String> |
getAvailableStrategies(java.util.ArrayList<IDataProvider> dataProviders)
Return all available assets (or strategies) based on their response to
data validation.
|
java.util.ArrayList<Entry> |
getStrategyProperties(java.lang.String availableAsset) |
void |
registerStrategy(IStrategyBuilder strategyBuilder)
This method, used by the underlying OSGi framework, registers any
available KDDStrategyBuilder with this KDDStrategyFactory so it can be
used in data validation and the creation of KDDStrategies.
|
void |
unregisterStrategy(IStrategyBuilder strategyBuilder) |
public KDDStrategy createStrategy(java.lang.String selectedAsset, java.util.ArrayList<IDataProvider> data) throws java.lang.IllegalArgumentException
This method creates the requested KDDStrategy with the given mapping of IDataProviders. The keys of the map are simple a descriptive name of the corresponding IDataProvider.
selectedAsset
- data
- java.lang.IllegalArgumentException
public void registerStrategy(IStrategyBuilder strategyBuilder)
This method, used by the underlying OSGi framework, registers any available KDDStrategyBuilder with this KDDStrategyFactory so it can be used in data validation and the creation of KDDStrategies.
strategyBuilder
- public java.util.ArrayList<java.lang.String> getAvailableStrategies(java.util.ArrayList<IDataProvider> dataProviders)
Return all available assets (or strategies) based on their response to data validation.
dataProviders
- public void unregisterStrategy(IStrategyBuilder strategyBuilder)
strategyBuilder
- public java.util.ArrayList<Entry> getStrategyProperties(java.lang.String availableAsset)
availableAsset
-