Package adams.data.featureconverter
Class FeatureContainer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.featureconverter.AbstractFeatureConverter
-
- adams.data.featureconverter.FeatureContainer
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,Serializable
public class FeatureContainer extends AbstractFeatureConverter
Simply returns the header definition/row in a adams.flow.container.FeatureConverterContainer container.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-dataset <java.lang.String> (property: dataset) The dataset name to use. default: Dataset
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.data.featureconverter.AbstractFeatureConverter
m_Dataset, m_Header, m_HeaderDefinition
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description FeatureContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FeatureConverterContainerdoGenerateHeader(HeaderDefinition header)Performs the actual generation of the header data structure using the supplied header definition.protected FeatureConverterContainerdoGenerateRow(List data)Performs the actual generation of a row from the raw data.FeatureConverterContainergenerateHeader(HeaderDefinition header)Generates the header data structure using the supplied header definition.ClassgetDatasetFormat()Returns the class of the dataset that the converter generates.ClassgetRowFormat()Returns the class of the row that the converter generates.StringglobalInfo()Returns a string describing the object.-
Methods inherited from class adams.data.featureconverter.AbstractFeatureConverter
datasetTipText, defineOptions, generateRow, getDataset, getHeader, getHeaderDefinition, getQuickInfo, isInitialized, reset, setDataset
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
getDatasetFormat
public Class getDatasetFormat()
Returns the class of the dataset that the converter generates.- Specified by:
getDatasetFormatin classAbstractFeatureConverter- Returns:
- the format
-
getRowFormat
public Class getRowFormat()
Returns the class of the row that the converter generates.- Specified by:
getRowFormatin classAbstractFeatureConverter- Returns:
- the format
-
doGenerateHeader
protected FeatureConverterContainer doGenerateHeader(HeaderDefinition header)
Performs the actual generation of the header data structure using the supplied header definition.- Specified by:
doGenerateHeaderin classAbstractFeatureConverter- Parameters:
header- the header definition- Returns:
- the dataset structure
-
generateHeader
public FeatureConverterContainer generateHeader(HeaderDefinition header)
Generates the header data structure using the supplied header definition.- Overrides:
generateHeaderin classAbstractFeatureConverter- Parameters:
header- the header definition- Returns:
- the dataset structure
-
doGenerateRow
protected FeatureConverterContainer doGenerateRow(List data)
Performs the actual generation of a row from the raw data.- Specified by:
doGenerateRowin classAbstractFeatureConverter- Parameters:
data- the data of the row, elements can be null (= missing)- Returns:
- the dataset structure
-
-