|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcomirva.audio.extraction.AttributeExtractor
public abstract class AttributeExtractor
Title: Attribute Extractor
Description:
This interface defines a very general attribute extractor. It separates the process of extracting an attribute from the representation of an attribute as an object.
Attribute
Constructor Summary | |
---|---|
AttributeExtractor()
|
Method Summary | |
---|---|
abstract Attribute |
calculate(java.lang.Object input)
This method encapsulates the attribute extraction process. |
abstract AttributeExtractor |
copy()
This method returns a copy of an AttributeExtractor. |
abstract int |
getAttributeType()
Returns the type of the attribute that the class implementing this interface will return as the result of its extraction process. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeExtractor()
Method Detail |
---|
public abstract AttributeExtractor copy()
public abstract Attribute calculate(java.lang.Object input) throws java.io.IOException, java.lang.IllegalArgumentException
AttributeExtractor
and Attribute
. A concrete
class implementing this interface will however expect the input to be of
a certain type and will raise a IllegalArgumentException
, if
the passed argument is not of the expected type.
input
- Object an object representing the input data to extract the
feature out of
java.io.IOException
- failures due to io operations are signaled by
IOExceptions
java.lang.IllegalArgumentException
- raised if method contract is violated,
especially if the open input type is not
of the expected typepublic abstract int getAttributeType()
Attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |