|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.conversion.AbstractConversion
adams.data.conversion.AbstractMatchWekaInstanceAgainstHeader
public abstract class AbstractMatchWekaInstanceAgainstHeader
Ancestor for classes that match Instance objects against Instances headers.
| Field Summary | |
|---|---|
protected weka.core.Instances |
m_Dataset
the header to match against. |
| 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 | |
|---|---|
AbstractMatchWekaInstanceAgainstHeader()
|
|
| Method Summary | |
|---|---|
Class |
accepts()
Returns the class that is accepted as input. |
protected Object |
doConvert()
Performs the actual conversion. |
Class |
generates()
Returns the class that is generated as output. |
protected abstract weka.core.Instances |
getDatasetHeader()
Acquires the dataset header. |
protected String |
isCompatible(weka.core.Instance input)
Checks the instance against the header, whether they are compatible. |
protected weka.core.Instance |
match(weka.core.Instance input)
Matches the input instance against the header. |
protected void |
reset()
Resets the converter. |
| 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, defineOptions, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, 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 |
|---|
protected weka.core.Instances m_Dataset
| Constructor Detail |
|---|
public AbstractMatchWekaInstanceAgainstHeader()
| Method Detail |
|---|
protected void reset()
reset in class AbstractConversionpublic Class accepts()
accepts in interface Conversionaccepts in class AbstractConversionpublic Class generates()
generates in interface Conversiongenerates in class AbstractConversionprotected abstract weka.core.Instances getDatasetHeader()
protected String isCompatible(weka.core.Instance input)
input - the input instance
protected weka.core.Instance match(weka.core.Instance input)
input - the Instance to align to the header
protected Object doConvert()
throws Exception
doConvert in class AbstractConversionException - if something goes wrong with the conversion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||