Package adams.data.timeseries
Class AddMetaData
-
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,ShallowCopySupporter<AbstractTimeseriesFeatureGenerator>
,SizeOfHandler
,Serializable
,Comparable
public class AddMetaData extends AbstractMetaTimeseriesFeatureGenerator
Meta-generator that can add database ID and container ID.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-converter <adams.data.featureconverter.AbstractFeatureConverter> (property: converter) The feature converter to use to produce the output data. default: adams.data.featureconverter.SpreadSheetFeatureConverter -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.SpreadSheet
-field <adams.data.report.Field> [-field ...] (property: fields) The fields to add to the output. default:
-notes <adams.core.base.BaseString> [-notes ...] (property: notes) The notes to add as attributes to the generated data, eg 'PROCESS INFORMATION' . default:
-generator <adams.data.timeseries.AbstractTimeseriesFeatureGenerator> (property: generator) The base generator to use. default: adams.data.timeseries.Values -converter \"adams.data.featureconverter.SpreadSheetFeatureConverter -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.SpreadSheet\"
-add-database-id <boolean> (property: addDatabaseID) If enabled, the database ID of the container gets added to the data. default: false
-add-id <boolean> (property: addID) If enabled, the ID of the container gets added to the data. default: false
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
m_AddDatabaseID
whether to add the database ID.protected boolean
m_AddID
whether to add the container ID.-
Fields inherited from class adams.data.timeseries.AbstractMetaTimeseriesFeatureGenerator
m_Generator
-
Fields inherited from class adams.data.timeseries.AbstractTimeseriesFeatureGenerator
m_Converter, m_Fields, m_Notes
-
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 AddMetaData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
addDatabaseIDTipText()
Returns the tip text for this property.String
addIDTipText()
Returns the tip text for this property.HeaderDefinition
createHeader(Timeseries timeseries)
Creates the header from a template timeseries.void
defineOptions()
Adds options to the internal list of options.List<Object>[]
generateRows(Timeseries timeseries)
Performs the actual feature genration.boolean
getAddDatabaseID()
Returns whether to add the database ID.boolean
getAddID()
Returns whether to add the ID.protected AbstractTimeseriesFeatureGenerator
getDefaultGenerator()
Returns the default generator to use.String
globalInfo()
Returns a string describing the object.void
setAddDatabaseID(boolean value)
Sets whether to add the database ID.void
setAddID(boolean value)
Sets whether to add the ID.-
Methods inherited from class adams.data.timeseries.AbstractMetaTimeseriesFeatureGenerator
generatorTipText, getGenerator, getQuickInfo, setGenerator
-
Methods inherited from class adams.data.timeseries.AbstractTimeseriesFeatureGenerator
checkData, cleanUp, compareTo, converterTipText, destroy, equals, fieldsTipText, generate, getConverter, getDatasetFormat, getFields, getNotes, getRowFormat, notesTipText, postProcessHeader, postProcessRow, postProcessRows, reset, setConverter, setFields, setNotes, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, 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, 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:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- 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 interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractMetaTimeseriesFeatureGenerator
-
getDefaultGenerator
protected AbstractTimeseriesFeatureGenerator getDefaultGenerator()
Returns the default generator to use.- Specified by:
getDefaultGenerator
in classAbstractMetaTimeseriesFeatureGenerator
- Returns:
- the generator
-
setAddDatabaseID
public void setAddDatabaseID(boolean value)
Sets whether to add the database ID.- Parameters:
value
- true if to add database ID
-
getAddDatabaseID
public boolean getAddDatabaseID()
Returns whether to add the database ID.- Returns:
- true if to add database ID
-
addDatabaseIDTipText
public String addDatabaseIDTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setAddID
public void setAddID(boolean value)
Sets whether to add the ID.- Parameters:
value
- true if to add ID
-
getAddID
public boolean getAddID()
Returns whether to add the ID.- Returns:
- true if to add ID
-
addIDTipText
public String addIDTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
createHeader
public HeaderDefinition createHeader(Timeseries timeseries)
Creates the header from a template timeseries.- Specified by:
createHeader
in classAbstractTimeseriesFeatureGenerator<Timeseries>
- Parameters:
timeseries
- the timeseries to act as a template- Returns:
- the generated header
-
generateRows
public List<Object>[] generateRows(Timeseries timeseries)
Performs the actual feature genration.- Specified by:
generateRows
in classAbstractTimeseriesFeatureGenerator<Timeseries>
- Parameters:
timeseries
- the timeseries to process- Returns:
- the generated features
-
-