Package adams.data.featuregenerator
Class FilteredFeatureGenerator
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.featuregenerator.AbstractFeatureGenerator
-
- adams.data.featuregenerator.AbstractDatabaseConnectionFeatureGenerator
-
- adams.data.featuregenerator.FilteredFeatureGenerator
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.ShallowCopySupporter<AbstractFeatureGenerator>
,adams.core.SizeOfHandler
,adams.db.DatabaseConnectionHandler
,adams.db.DatabaseConnectionProvider
,adams.db.DatabaseConnectionUser
,Serializable
,Comparable
public class FilteredFeatureGenerator extends AbstractDatabaseConnectionFeatureGenerator
This feature generator first pushes the data through the provided data filter before applying the actual feature generator. The updated data obtained from the feature generator then replaces the report of the original data container.
Valid options are:
-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-prefix <java.lang.String> (property: prefix) The prefix to use in the field for the generated features. default: Feature
-filter <adams.data.filter.AbstractFilter> (property: filter) The filter to apply to the heatmap before pushing it through the feature generator. default: adams.data.filter.PassThrough
-generator <adams.data.featuregenerator.AbstractFeatureGenerator> (property: generator) The generator to apply to the filtered data. default: adams.data.featuregenerator.PassThrough
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.data.filter.Filter
m_Filter
the pre-filter for filtering the data.protected AbstractFeatureGenerator
m_Generator
the actual feature generator.-
Fields inherited from class adams.data.featuregenerator.AbstractDatabaseConnectionFeatureGenerator
m_DatabaseConnection
-
Fields inherited from class adams.data.featuregenerator.AbstractFeatureGenerator
m_Prefix, PREFIX_FEATURE
-
-
Constructor Summary
Constructors Constructor Description FilteredFeatureGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.String
filterTipText()
Returns the tip text for this property.String
generatorTipText()
Returns the tip text for this property.protected adams.db.AbstractDatabaseConnection
getDefaultDatabaseConnection()
Returns the default database connection.adams.data.filter.Filter
getFilter()
Returns the filter.AbstractFeatureGenerator
getGenerator()
Returns the generator.String
globalInfo()
Returns a string describing the object.protected Heatmap
processData(Heatmap data)
Processes the data/report.void
setFilter(adams.data.filter.Filter value)
Sets the filter.void
setGenerator(AbstractFeatureGenerator value)
Sets the generator.protected void
updateDatabaseConnection()
Updates the database connection in dependent schemes.-
Methods inherited from class adams.data.featuregenerator.AbstractDatabaseConnectionFeatureGenerator
getDatabaseConnection, initialize, setDatabaseConnection
-
Methods inherited from class adams.data.featuregenerator.AbstractFeatureGenerator
addFeature, addFeature, checkData, cleanUp, compareTo, equals, forCommandLine, forName, generate, getDefaultPrefix, getGenerators, getPrefix, prefixTipText, reset, setPrefix, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Filter
protected adams.data.filter.Filter m_Filter
the pre-filter for filtering the data.
-
m_Generator
protected AbstractFeatureGenerator m_Generator
the actual feature generator.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractFeatureGenerator
-
getDefaultDatabaseConnection
protected adams.db.AbstractDatabaseConnection getDefaultDatabaseConnection()
Returns the default database connection.- Specified by:
getDefaultDatabaseConnection
in classAbstractDatabaseConnectionFeatureGenerator
- Returns:
- the default database connection
-
setFilter
public void setFilter(adams.data.filter.Filter value)
Sets the filter.- Parameters:
value
- the filter
-
getFilter
public adams.data.filter.Filter getFilter()
Returns the filter.- Returns:
- the filter
-
filterTipText
public String filterTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setGenerator
public void setGenerator(AbstractFeatureGenerator value)
Sets the generator.- Parameters:
value
- the generator
-
getGenerator
public AbstractFeatureGenerator getGenerator()
Returns the generator.- Returns:
- the generator
-
generatorTipText
public String generatorTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
updateDatabaseConnection
protected void updateDatabaseConnection()
Updates the database connection in dependent schemes.- Overrides:
updateDatabaseConnection
in classAbstractDatabaseConnectionFeatureGenerator
-
processData
protected Heatmap processData(Heatmap data)
Processes the data/report.- Specified by:
processData
in classAbstractFeatureGenerator
- Parameters:
data
- the data to process- Returns:
- the processed data
-
-