|
||||||||||
| 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.featuregenerator.AbstractFeatureGenerator
public abstract class AbstractFeatureGenerator
Abstract base class for feature generators.
| Field Summary | |
|---|---|
protected String |
m_Prefix
the prefix for the feature fields. |
static String |
PREFIX_FEATURE
the default prefix for the feature fields. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractFeatureGenerator()
|
|
| Method Summary | |
|---|---|
protected Double |
addFeature(Heatmap data,
double value)
Adds the specified feature. |
protected Double |
addFeature(Heatmap data,
String suffix,
double value)
Adds the specified feature. |
protected void |
checkData(Heatmap data)
The default implementation only checks whether there is any data set. |
void |
cleanUp()
Cleans up data structures, frees up memory. |
int |
compareTo(Object o)
Compares this object with the specified object for order. |
void |
defineOptions()
Adds options to the internal list of options. |
boolean |
equals(Object o)
Returns whether the two objects are the same. |
static AbstractFeatureGenerator |
forCommandLine(String cmdline)
Instantiates the generator from the given commandline (i.e., classname and optional options). |
static AbstractFeatureGenerator |
forName(String classname,
String[] options)
Instantiates the generator with the given options. |
Heatmap |
generate(Heatmap data)
Generates the features and adds them to the report. |
protected String |
getDefaultPrefix()
Returns the default prefix for the generated features. |
static String[] |
getGenerators()
Returns a list with classnames of generators. |
String |
getPrefix()
Returns the prefix in use for the generated features. |
String |
prefixTipText()
Returns the tip text for this property. |
protected abstract Heatmap |
processData(Heatmap data)
Performs the actual feature generation. |
protected void |
reset()
Resets the generator. |
void |
setPrefix(String value)
Sets the prefix to use for the generated features. |
AbstractFeatureGenerator |
shallowCopy()
Returns a shallow copy of itself, i.e., based on the commandline options. |
AbstractFeatureGenerator |
shallowCopy(boolean expand)
Returns a shallow copy of itself, i.e., based on the commandline options. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PREFIX_FEATURE
protected String m_Prefix
| Constructor Detail |
|---|
public AbstractFeatureGenerator()
| Method Detail |
|---|
protected void reset()
reset in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerprotected String getDefaultPrefix()
public void setPrefix(String value)
value - the prefix to usepublic String getPrefix()
public String prefixTipText()
public void cleanUp()
public Heatmap generate(Heatmap data)
data - the data to process
protected void checkData(Heatmap data)
data - the data to process
protected Double addFeature(Heatmap data,
double value)
data - the heatmap to add the feature tovalue - the value of the feature
protected Double addFeature(Heatmap data,
String suffix,
double value)
data - the heatmap to add the feature tosuffix - the suffix of the featurevalue - the value of the feature
protected abstract Heatmap processData(Heatmap data)
data - the data to process
public int compareTo(Object o)
compareTo in interface Comparableo - the object to be compared.
ClassCastException - if the specified object's type prevents it
from being compared to this object.public boolean equals(Object o)
equals in class Objecto - the object to be compared
public AbstractFeatureGenerator shallowCopy()
shallowCopy in interface ShallowCopySupporter<AbstractFeatureGenerator>public AbstractFeatureGenerator shallowCopy(boolean expand)
shallowCopy in interface ShallowCopySupporter<AbstractFeatureGenerator>expand - whether to expand variables to their current values
public static String[] getGenerators()
public static AbstractFeatureGenerator forName(String classname,
String[] options)
classname - the classname of the generator to instantiateoptions - the options for the generator
public static AbstractFeatureGenerator forCommandLine(String cmdline)
cmdline - the classname (and optional options) of the
generator to instantiate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||