marf.Preprocessing.Dummy
Class Dummy

java.lang.Object
  extended by marf.Storage.StorageManager
      extended by marf.Preprocessing.Preprocessing
          extended by marf.Preprocessing.Dummy.Dummy
All Implemented Interfaces:
java.io.Serializable, IPreprocessing, IStorageManager
Direct Known Subclasses:
Raw

public class Dummy
extends Preprocessing

Implements dummy preprocessing module for testing purposes that does only normalization.

$Id: Dummy.java,v 1.19 2005/06/16 19:58:46 mokhov Exp $

Since:
0.0.1
Version:
$Revision: 1.19 $
Author:
Serguei Mokhov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class marf.Preprocessing.Preprocessing
oSample
 
Fields inherited from class marf.Storage.StorageManager
bDumpOnNotFound, iCurrentDumpMode, oObjectToSerialize, strFilename
 
Fields inherited from interface marf.Preprocessing.IPreprocessing
MARF_INTERFACE_CODE_REVISION
 
Fields inherited from interface marf.Storage.IStorageManager
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_HTML, DUMP_SQL, DUMP_XML, MARF_INTERFACE_CODE_REVISION, STORAGE_FILE_EXTENSIONS
 
Constructor Summary
Dummy(Preprocessing poPreprocessing)
          Implementation of the preprocessing pipeline.
Dummy(Sample poSample)
          Dummy Constructor.
 
Method Summary
 boolean cropAudio(double pdStartingFrequency, double pdEndFrequency)
          Dummy implementation of cropAudio() for testing.
static java.lang.String getMARFSourceCodeRevision()
          Returns source code revision information.
 boolean preprocess()
          Dummy implementation of preprocess() for testing.
 boolean removeNoise()
          Dummy implementation of removeNoise() for testing.
 boolean removeSilence()
          Dummy implementation of removeSilence() for testing.
 
Methods inherited from class marf.Preprocessing.Preprocessing
backSynchronizeObject, getSample, normalize, normalize, normalize
 
Methods inherited from class marf.Storage.StorageManager
dump, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, enableDumpOnNotFound, getDefaultExtension, getDefaultExtension, getDumpMode, getFilename, restore, restoreBinary, restoreCSV, restoreGzipBinary, restoreHTML, restoreSQL, restoreXML, setDumpMode, setFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dummy

public Dummy(Preprocessing poPreprocessing)
      throws PreprocessingException
Implementation of the preprocessing pipeline.

Parameters:
poPreprocessing - successor preprocessing module
Throws:
PreprocessingException
Since:
0.3.0

Dummy

public Dummy(Sample poSample)
      throws PreprocessingException
Dummy Constructor.

Parameters:
poSample - incomping sample
Throws:
PreprocessingException
Method Detail

preprocess

public boolean preprocess()
                   throws PreprocessingException
Dummy implementation of preprocess() for testing.

Returns:
true
Throws:
PreprocessingException - never thrown
See Also:
IPreprocessing.removeNoise(), IPreprocessing.removeSilence()

removeNoise

public final boolean removeNoise()
                          throws PreprocessingException
Dummy implementation of removeNoise() for testing.

Specified by:
removeNoise in interface IPreprocessing
Overrides:
removeNoise in class Preprocessing
Returns:
false
Throws:
PreprocessingException - never thrown

removeSilence

public final boolean removeSilence()
                            throws PreprocessingException
Dummy implementation of removeSilence() for testing.

Specified by:
removeSilence in interface IPreprocessing
Overrides:
removeSilence in class Preprocessing
Returns:
false
Throws:
PreprocessingException - never thrown

cropAudio

public final boolean cropAudio(double pdStartingFrequency,
                               double pdEndFrequency)
                        throws PreprocessingException
Dummy implementation of cropAudio() for testing.

Specified by:
cropAudio in interface IPreprocessing
Overrides:
cropAudio in class Preprocessing
Parameters:
pdStartingFrequency - unused
pdEndFrequency - unused
Returns:
false
Throws:
PreprocessingException - never thrown

getMARFSourceCodeRevision

public static java.lang.String getMARFSourceCodeRevision()
Returns source code revision information.

Returns:
revision string
Since:
0.3.0