jAudioFeatureExtractor.DataTypes
Class RecordingInfo

java.lang.Object
  extended by jAudioFeatureExtractor.DataTypes.RecordingInfo
All Implemented Interfaces:
java.io.Serializable

public class RecordingInfo
extends java.lang.Object
implements java.io.Serializable

A class for holding references to audio recordings.

Author:
Cory McKay
See Also:
Serialized Form

Field Summary
 java.lang.String file_path
          The path of the audio file referred to by objects of this class.
 java.lang.String identifier
          A name used internally to refer to the referenced recording.
 AudioSamples samples
          Audio samples stored as arrays of doubles.
 boolean should_extract_features
          Whether or not a feature extractor receiving an object of this class should extract features from the referenced file.
 
Constructor Summary
RecordingInfo(java.lang.String file_path)
          Basic constructor for filling fields.
RecordingInfo(java.lang.String identifier, java.lang.String file_path, AudioSamples samples, boolean should_extract_features)
          Basic constructor for filling fields.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identifier

public java.lang.String identifier
A name used internally to refer to the referenced recording.


file_path

public java.lang.String file_path
The path of the audio file referred to by objects of this class. Should be unique.


samples

public transient AudioSamples samples
Audio samples stored as arrays of doubles. May sometimes be set to null in order to store space, in which case they can be extracted from the file referred to in the file_path field.


should_extract_features

public boolean should_extract_features
Whether or not a feature extractor receiving an object of this class should extract features from the referenced file.

Constructor Detail

RecordingInfo

public RecordingInfo(java.lang.String identifier,
                     java.lang.String file_path,
                     AudioSamples samples,
                     boolean should_extract_features)
Basic constructor for filling fields.

Parameters:
identifier - A name used internally to refer to the referenced recording.
file_path - The path of the audio file referred to by objects of this class. Should be unique.
samples - Audio samples stored as arrays of doubles. May sometimes be set to null in order to store space.
should_extract_features - Whether or not a feature extractor receiving an object of this class should extract features from the referenced file.

RecordingInfo

public RecordingInfo(java.lang.String file_path)
Basic constructor for filling fields. Sets the identifier to the file name extracted from the given file_path, and sets the should_extract_features field to false and the samples field to null.

Parameters:
file_path - The path of the audio file referred to by objects of this class. Should be unique.