|
||||||||||
| 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.instances.AbstractInstanceGenerator<Heatmap>
adams.data.instances.AbstractFieldInstanceGenerator
public abstract class AbstractFieldInstanceGenerator
Abstract base class for schemes that turn heatmaps into weka.core.Instance objects.
| Field Summary | |
|---|---|
protected Field[] |
m_Fields
fields to add to the output data. |
| Fields inherited from class adams.data.instances.AbstractInstanceGenerator |
|---|
LABEL_FALSE, LABEL_TRUE, m_AddDatabaseID, m_DatabaseConnection, m_OutputHeader, m_TolerateHeaderChanges |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractFieldInstanceGenerator()
|
|
| Method Summary | |
|---|---|
protected void |
addFields(Heatmap data,
double[] values)
Adds the fields of the heatmap to the data array. |
protected void |
checkHeader(Heatmap data)
Checks whether the number of waves are the same. |
protected Attribute |
createAttribute(Field field,
StringBuilder names)
Creates an attribute from the specified field. |
void |
defineOptions()
Adds options to the internal list of options. |
String |
fieldsTipText()
Returns the tip text for this property. |
protected AbstractDatabaseConnection |
getDefaultDatabaseConnection()
Returns the default database connection. |
Field[] |
getFields()
Returns the targets to add. |
void |
setFields(Field[] value)
Sets the targets to add. |
| Methods inherited from class adams.data.instances.AbstractInstanceGenerator |
|---|
addDatabaseIDTipText, checkInput, checkSetup, cleanUp, compareTo, destroy, equals, forCommandLine, forName, generate, generateHeader, generateOutput, getAddDatabaseID, getDatabaseConnection, getGenerators, getOutputHeader, getTolerateHeaderChanges, initialize, interpretePosition, postProcessHeader, postProcessOutput, reset, setAddDatabaseID, setDatabaseConnection, setTolerateHeaderChanges, shallowCopy, shallowCopy, tolerateHeaderChangesTipText |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, globalInfo, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Field[] m_Fields
| Constructor Detail |
|---|
public AbstractFieldInstanceGenerator()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractInstanceGenerator<Heatmap>protected AbstractDatabaseConnection getDefaultDatabaseConnection()
getDefaultDatabaseConnection in class AbstractInstanceGenerator<Heatmap>public void setFields(Field[] value)
value - the targetspublic Field[] getFields()
public String fieldsTipText()
protected void checkHeader(Heatmap data)
checkHeader in class AbstractInstanceGenerator<Heatmap>data - the input data
protected Attribute createAttribute(Field field,
StringBuilder names)
field - the field to turn into an attributenames - for appending the field name
protected void addFields(Heatmap data,
double[] values)
data - the heatmap to get the field values fromvalues - the data for the instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||