|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbodhidharma.data_structures.Feature
bodhidharma.midi_parsing.one_dimensional_features.FeatureOneDimensional
public abstract class FeatureOneDimensional
An abstract class for holding a feature with a single value. Each class implementing this abstract class should hold the value of a single feature that is extracted from a recording.
The getValue
method returns the value of the feature
and the getValue
method sets it.
The constructor of a class implementing this interface should take in an intermediate representation of a recording and derive the value of the feature from this. If this argument of the constructor is null, then the object should be initialized so that the value of the feature is -1.0.
Feature
Field Summary | |
---|---|
protected double |
value
|
Constructor Summary | |
---|---|
FeatureOneDimensional()
|
Method Summary | |
---|---|
abstract java.lang.String |
getCode()
Returns the code number of the feature. |
abstract java.lang.String |
getDescription()
Returns a sentence or two describing the feature. |
abstract java.lang.String |
getName()
Returns the name of the feature. |
double |
getValue()
Returns the value of the feature for the recording whose data was used to construct this object. |
void |
setValue(double new_value)
Sets the value of the feature for the recording whose data was used to construct this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double value
Constructor Detail |
---|
public FeatureOneDimensional()
Method Detail |
---|
public double getValue()
public void setValue(double new_value)
public abstract java.lang.String getName()
getName
in class Feature
public abstract java.lang.String getDescription()
getDescription
in class Feature
public abstract java.lang.String getCode()
getCode
in class Feature
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |