|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.Configuration
public class Configuration
Encapsulates MARF configuration parameters for serialization to disk or network.
$Id: Configuration.java,v 1.4 2008/01/08 17:54:51 mokhov Exp $
Field Summary | |
---|---|
protected boolean |
bDebug
Debug flag. |
protected boolean |
bDumpSpectrogram
Indicates whether or not to dump a spectrogram at the end of feature extraction. |
protected boolean |
bDumpWaveGraph
Indicates whether or not to dump a wave graph. |
protected int |
iClassificationMethod
Indicates what classification method to use in the pipeline. |
protected int |
iCurrentSubject
ID of the currently trained speaker. |
protected int |
iFeatureExtractionMethod
Indicates what feature extraction method to use in the pipeline. |
protected int |
iPreprocessingMethod
Indicates what preprocessing method to use in the pipeline. |
protected int |
iSampleFormat
Indicates what sample format is in use. |
protected ModuleParams |
oModuleParams
Stores module-specific parameters in an independent way. |
protected java.lang.String |
strClassificationPluginClass
Fully-qualified class name of a classification plug-in. |
protected java.lang.String |
strFeatureExtractionPluginClass
Fully-qualified class name of a feature extraction plug-in. |
protected java.lang.String |
strFileName
Indicates current incoming sample filename. |
protected java.lang.String |
strPreprocessingPluginClass
Fully-qualified class name of a preprocessing plug-in. |
protected java.lang.String |
strSampleLoaderPluginClass
Fully-qualified class name of a sample loader plug-in. |
protected java.lang.String |
strSamplesDir
Indicates directory name with training samples. |
Constructor Summary | |
---|---|
Configuration()
|
|
Configuration(Configuration poConfiguration)
Copy-constructor. |
|
Configuration(int piPreprocessingMethod,
int piFeatureExtractionMethod,
int piClassificationMethod,
int piSampleFormat,
int piCurrentSubject,
java.lang.String pstrFileName,
java.lang.String pstrSamplesDir,
ModuleParams poModuleParams,
boolean pbDumpSpectrogram,
boolean pbDumpWaveGraph,
java.lang.String pstrSampleLoaderPluginClass,
java.lang.String pstrPreprocessingPluginClass,
java.lang.String pstrFeatureExtractionPluginClass,
java.lang.String pstrClassificationPluginClass,
boolean pbDebug)
All-fields constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
int |
getClassificationMethod()
|
java.lang.String |
getClassificationPluginClass()
|
int |
getCurrentSubject()
|
int |
getFeatureExtractionMethod()
|
java.lang.String |
getFeatureExtractionPluginClass()
|
java.lang.String |
getFileName()
|
ModuleParams |
getModuleParams()
|
int |
getPreprocessingMethod()
|
java.lang.String |
getPreprocessingPluginClass()
|
int |
getSampleFormat()
|
java.lang.String |
getSampleLoaderPluginClass()
|
java.lang.String |
getSamplesDir()
|
boolean |
isDebugOn()
|
boolean |
isDumpSpectrogramOn()
|
boolean |
isDumpWaveGraphOn()
|
void |
setClassificationMethod(int piClassificationMethod)
|
void |
setClassificationPluginClass(java.lang.String pstrClassificationPluginClass)
|
void |
setCurrentSubject(int piCurrentSubject)
|
void |
setDebug(boolean pbDebug)
|
void |
setDumpSpectrogram(boolean pbDumpSpectrogram)
|
void |
setDumpWaveGraph(boolean pbDumpWaveGraph)
|
void |
setFeatureExtractionMethod(int piFeatureExtractionMethod)
|
void |
setFeatureExtractionPluginClass(java.lang.String pstrFeatureExtractionPluginClass)
|
void |
setFileName(java.lang.String pstrFileName)
|
void |
setModuleParams(ModuleParams poModuleParams)
|
void |
setPreprocessingMethod(int piPreprocessingMethod)
|
void |
setPreprocessingPluginClass(java.lang.String pstrPreprocessingPluginClass)
|
void |
setSampleFormat(int piSampleFormat)
|
void |
setSampleLoaderPluginClass(java.lang.String pstrSampleLoaderPluginClass)
|
void |
setSamplesDir(java.lang.String pstrSamplesDir)
|
java.lang.String[] |
toArgumentVector()
Converts configuration to argv-type of array using Properties with name=value pairs for each configuration element. |
ModuleParams |
toModuleParams()
|
java.util.Properties |
toProperties()
Converts the encapsulated configuration to the Properties-style format. |
java.lang.String |
toString()
Returns String representation of Configuration by converting Properties to the String format. |
java.util.Vector |
toVector()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int iPreprocessingMethod
protected int iFeatureExtractionMethod
protected int iClassificationMethod
protected int iSampleFormat
protected int iCurrentSubject
protected java.lang.String strFileName
protected java.lang.String strSamplesDir
protected ModuleParams oModuleParams
protected boolean bDumpSpectrogram
protected boolean bDumpWaveGraph
protected java.lang.String strSampleLoaderPluginClass
protected java.lang.String strPreprocessingPluginClass
protected java.lang.String strFeatureExtractionPluginClass
protected java.lang.String strClassificationPluginClass
protected boolean bDebug
Constructor Detail |
---|
public Configuration()
public Configuration(int piPreprocessingMethod, int piFeatureExtractionMethod, int piClassificationMethod, int piSampleFormat, int piCurrentSubject, java.lang.String pstrFileName, java.lang.String pstrSamplesDir, ModuleParams poModuleParams, boolean pbDumpSpectrogram, boolean pbDumpWaveGraph, java.lang.String pstrSampleLoaderPluginClass, java.lang.String pstrPreprocessingPluginClass, java.lang.String pstrFeatureExtractionPluginClass, java.lang.String pstrClassificationPluginClass, boolean pbDebug)
piPreprocessingMethod
- piFeatureExtractionMethod
- piClassificationMethod
- piSampleFormat
- piCurrentSubject
- pstrFileName
- pstrSamplesDir
- poModuleParams
- pbDumpSpectrogram
- pbDumpWaveGraph
- pstrSampleLoaderPluginClass
- pstrPreprocessingPluginClass
- pstrFeatureExtractionPluginClass
- pstrClassificationPluginClass
- pbDebug
- public Configuration(Configuration poConfiguration)
poConfiguration
- Method Detail |
---|
public java.util.Properties toProperties()
Properties
,
toString()
public ModuleParams toModuleParams()
NotImplementedException
public java.lang.String[] toArgumentVector()
toProperties()
public java.util.Vector toVector()
public boolean isDebugOn()
public void setDebug(boolean pbDebug)
pbDebug
- The bDebug to set.public boolean isDumpSpectrogramOn()
public void setDumpSpectrogram(boolean pbDumpSpectrogram)
pbDumpSpectrogram
- The bDumpSpectrogram to set.public boolean isDumpWaveGraphOn()
public void setDumpWaveGraph(boolean pbDumpWaveGraph)
pbDumpWaveGraph
- The bDumpWaveGraph to set.public int getClassificationMethod()
public void setClassificationMethod(int piClassificationMethod)
piClassificationMethod
- The iClassificationMethod to set.public int getCurrentSubject()
public void setCurrentSubject(int piCurrentSubject)
piCurrentSubject
- The iCurrentSubject to set.public int getFeatureExtractionMethod()
public void setFeatureExtractionMethod(int piFeatureExtractionMethod)
piFeatureExtractionMethod
- The iFeatureExtractionMethod to set.public int getPreprocessingMethod()
public void setPreprocessingMethod(int piPreprocessingMethod)
piPreprocessingMethod
- The iPreprocessingMethod to set.public int getSampleFormat()
public void setSampleFormat(int piSampleFormat)
piSampleFormat
- The iSampleFormat to set.public java.lang.String getClassificationPluginClass()
public void setClassificationPluginClass(java.lang.String pstrClassificationPluginClass)
pstrClassificationPluginClass
- The oClassificationPluginClass to set.public java.lang.String getFeatureExtractionPluginClass()
public void setFeatureExtractionPluginClass(java.lang.String pstrFeatureExtractionPluginClass)
pstrFeatureExtractionPluginClass
- The oFeatureExtractionPluginClass to set.public ModuleParams getModuleParams()
public void setModuleParams(ModuleParams poModuleParams)
poModuleParams
- The oModuleParams to set.public java.lang.String getPreprocessingPluginClass()
public void setPreprocessingPluginClass(java.lang.String pstrPreprocessingPluginClass)
pstrPreprocessingPluginClass
- The oPreprocessingPluginClass to set.public java.lang.String getSampleLoaderPluginClass()
public void setSampleLoaderPluginClass(java.lang.String pstrSampleLoaderPluginClass)
pstrSampleLoaderPluginClass
- The oSampleLoaderPluginClass to set.public java.lang.String getFileName()
public void setFileName(java.lang.String pstrFileName)
pstrFileName
- The strFileName to set.public java.lang.String getSamplesDir()
public void setSamplesDir(java.lang.String pstrSamplesDir)
pstrSamplesDir
- The strSamplesDir to set.public java.lang.Object clone()
clone
in class java.lang.Object
Object.clone()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
,
toProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |