adams.data.conversion
Class MatchWekaInstanceAgainstStorageHeader

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.data.conversion.AbstractConversion
              extended by adams.data.conversion.AbstractMatchWekaInstanceAgainstHeader
                  extended by adams.data.conversion.MatchWekaInstanceAgainstStorageHeader
All Implemented Interfaces:
CleanUpHandler, Debuggable, Destroyable, OptionHandler, ShallowCopySupporter<AbstractConversion>, SizeOfHandler, 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: 4584 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
protected  StorageName m_Header
          the header to load from storage.
 
Fields inherited from class adams.data.conversion.AbstractMatchWekaInstanceAgainstHeader
m_Dataset
 
Fields inherited from class adams.data.conversion.AbstractConversion
m_Input, m_Output, m_Owner
 
Fields inherited from class adams.core.option.AbstractOptionHandler
m_DebugLevel, m_OptionManager
 
Constructor Summary
MatchWekaInstanceAgainstStorageHeader()
           
 
Method Summary
 void defineOptions()
          Adds options to the internal list of options.
protected  weka.core.Instances getDatasetHeader()
          Acquires the header.
 StorageName getHeader()
          Returns the name of the storage value representing the dataset header.
 String globalInfo()
          Returns a string describing the object.
 String headerTipText()
          Returns the tip text for this property.
 void setHeader(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, getInput, getOutput, getOwner, setInput, setOwner, shallowCopy, shallowCopy
 
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString
 
Methods inherited from class adams.core.ConsoleObject
getDebugging, getSystemErr, getSystemOut, sizeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_Header

protected StorageName m_Header
the header to load from storage.

Constructor Detail

MatchWekaInstanceAgainstStorageHeader

public MatchWekaInstanceAgainstStorageHeader()
Method Detail

globalInfo

public String globalInfo()
Returns a string describing the object.

Specified by:
globalInfo in class 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 interface OptionHandler
Overrides:
defineOptions in class AbstractOptionHandler

setHeader

public void setHeader(StorageName value)
Sets the name of the storage value representing the dataset header.

Parameters:
value - the header

getHeader

public 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:
getDatasetHeader in class AbstractMatchWekaInstanceAgainstHeader
Returns:
the header to match against


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.