Package adams.data.conversion
Class MatchWekaInstanceAgainstStorageHeader
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.conversion.AbstractConversion
-
- adams.data.conversion.AbstractMatchWekaInstanceAgainstHeader
-
- adams.data.conversion.MatchWekaInstanceAgainstStorageHeader
-
- All Implemented Interfaces:
adams.core.AdditionalInformationHandler,adams.core.CleanUpHandler,adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.QuickInfoSupporter,adams.core.ShallowCopySupporter<adams.data.conversion.AbstractConversion>,adams.core.SizeOfHandler,adams.core.Stoppable,adams.data.conversion.Conversion,Serializable
public class MatchWekaInstanceAgainstStorageHeader extends AbstractMatchWekaInstanceAgainstHeader
Matches an Instance against a dataset header from storage, i.e., it automatically converts STRING attributes into NOMINAL ones and vice versa.
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
-header <adams.flow.control.StorageName> (property: header) The name of the storage object that represents the dataset header to use. default: storage
- 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.flow.control.StorageNamem_Headerthe header to load from storage.-
Fields inherited from class adams.data.conversion.AbstractMatchWekaInstanceAgainstHeader
m_Dataset
-
-
Constructor Summary
Constructors Constructor Description MatchWekaInstanceAgainstStorageHeader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.protected weka.core.InstancesgetDatasetHeader()Acquires the header.adams.flow.control.StorageNamegetHeader()Returns the name of the storage value representing the dataset header.StringglobalInfo()Returns a string describing the object.StringheaderTipText()Returns the tip text for this property.voidsetHeader(adams.flow.control.StorageName value)Sets the name of the storage value representing the dataset header.-
Methods inherited from class adams.data.conversion.AbstractMatchWekaInstanceAgainstHeader
accepts, doConvert, generates, isCompatible, match, reset
-
Methods inherited from class adams.data.conversion.AbstractConversion
checkData, cleanUp, convert, getAdditionalInformation, getInput, getInput, getOutput, getOutput, getOwner, getQuickInfo, setInput, setOwner, shallowCopy, shallowCopy, stopExecution
-
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
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin 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:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.core.option.AbstractOptionHandler
-
setHeader
public void setHeader(adams.flow.control.StorageName value)
Sets the name of the storage value representing the dataset header.- Parameters:
value- the header
-
getHeader
public adams.flow.control.StorageName getHeader()
Returns the name of the storage value representing the dataset header.- Returns:
- the header
-
headerTipText
public String headerTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDatasetHeader
protected weka.core.Instances getDatasetHeader()
Acquires the header.- Specified by:
getDatasetHeaderin classAbstractMatchWekaInstanceAgainstHeader- Returns:
- the header to match against
-
-