|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.beadsproject.beads.analysis.FeatureExtractor<R,P>
public abstract class FeatureExtractor<R,P>
FeatureExtractor is an abstract base class for classes that perform some kind of analysis on incoming data. Both the incoming data (P) and the generated data (R) are generic types. Implementing classes use the method #process(P)
to process data.
Field Summary | |
---|---|
protected java.lang.String[] |
featureDescriptions
An array of Strings providing descriptions of the feature data. |
protected R |
features
The current feature data. |
protected java.lang.String |
name
The name of the FeatureExtractor. |
protected int |
numFeatures
The number of features. |
Constructor Summary | |
---|---|
FeatureExtractor()
Instantiates a new FeatureExtractor. |
Method Summary | |
---|---|
java.lang.String[] |
getFeatureDescriptions()
Gets the feature descriptions. |
R |
getFeatures()
Gets the current features of type R, specified in the class def. |
java.lang.String |
getName()
Gets the name. |
int |
getNumberOfFeatures()
Gets the number of features. |
abstract void |
process(P data)
Process some data of type P (specified by the class def). |
void |
setName(java.lang.String name)
Sets the name. |
void |
setNumberOfFeatures(int numFeatures)
Sets the number of features. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int numFeatures
protected R features
protected java.lang.String name
protected java.lang.String[] featureDescriptions
Constructor Detail |
---|
public FeatureExtractor()
Method Detail |
---|
public abstract void process(P data)
data
- the data.public R getFeatures()
public int getNumberOfFeatures()
public void setNumberOfFeatures(int numFeatures)
numFeatures
- the new number of features.public void setName(java.lang.String name)
name
- the new name.public java.lang.String getName()
public java.lang.String[] getFeatureDescriptions()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |