|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.Storage.ModuleParams
public class ModuleParams
Class ModuleParams
provides ability to pass module-specific parameters from an application.
The specific module should know in which order and how to downcast those params.
ModuleParams
is Cloneable
and starting 0.3.0.6 Serializable
.
Field Summary | |
---|---|
protected static int |
CLASSIFICATION
Indicates that we manipulate on the Classification Vector. |
protected static int |
FEATURE_EXTRACTION
Indicates that we manipulate on the Feature Extraction Vector. |
protected java.util.Vector |
oClassificationParams
A Vector of classification parameters. |
protected java.util.Vector |
oFeatureExtractionParams
A Vector of feature extraction parameters. |
protected java.util.Vector |
oPreprocessingParams
A Vector of preprocessing parameters. |
protected static int |
PREPROCESSING
Indicates that we manipulate on the Preprocessing Vector. |
Constructor Summary | |
---|---|
ModuleParams()
Default Constructor. |
|
ModuleParams(ModuleParams poModuleParams)
Copy-constructor. |
Method Summary | |
---|---|
void |
addClassificationParam(java.lang.Object poParam)
Adds (appends) a single classification parameter object. |
void |
addClassificationParams(java.util.Vector poParams)
Adds (appends) classification parameters vector. |
void |
addFeatureExtractionParam(java.lang.Object poParam)
Adds (appends) a single feature extraction parameter object. |
void |
addFeatureExtractionParams(java.util.Vector poParams)
Adds (appends) feature extraction parameters vector. |
void |
addPreprocessingParam(java.lang.Object poParam)
Adds (appends) a single preprocessing parameter object. |
void |
addPreprocessingParams(java.util.Vector poParams)
Adds (appends) preprocessing parameters vector. |
java.lang.Object |
clone()
Implements Cloneable interface for ModuleParams. |
java.util.Vector |
getClassificationParams()
Retrieves Classification module's parameters. |
java.util.Vector |
getFeatureExtractionParams()
Retrieves Feature Extraction module's parameters. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
java.util.Vector |
getPreprocessingParams()
Retrieves Preprocessing module's parameters. |
void |
setClassificationParams(java.util.Vector poParams)
Sets classification parameters vector. |
void |
setFeatureExtractionParams(java.util.Vector poParams)
Sets feature extraction parameters vector. |
void |
setPreprocessingParams(java.util.Vector poParams)
Sets preprocessing parameters vector. |
int |
size()
Returns the size of this set of module parameters as a sum of sizes of preprocessing, feature extraction, and classification module parameters. |
java.lang.String |
toString()
Retrieves string version of all three types of parameters. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector oPreprocessingParams
protected java.util.Vector oFeatureExtractionParams
protected java.util.Vector oClassificationParams
protected static final int PREPROCESSING
protected static final int FEATURE_EXTRACTION
protected static final int CLASSIFICATION
Constructor Detail |
---|
public ModuleParams()
public ModuleParams(ModuleParams poModuleParams)
poModuleParams
- object to make a copy ofMethod Detail |
---|
public final java.util.Vector getPreprocessingParams()
public final void setPreprocessingParams(java.util.Vector poParams)
poParams
- parameters vectorpublic final void addPreprocessingParams(java.util.Vector poParams)
poParams
- parameters vector to appendpublic final void addPreprocessingParam(java.lang.Object poParam)
poParam
- object to appendpublic final java.util.Vector getFeatureExtractionParams()
public final void setFeatureExtractionParams(java.util.Vector poParams)
poParams
- parameters vectorpublic final void addFeatureExtractionParams(java.util.Vector poParams)
poParams
- parameters vector to appendpublic final void addFeatureExtractionParam(java.lang.Object poParam)
poParam
- object to appendpublic final java.util.Vector getClassificationParams()
public final void setClassificationParams(java.util.Vector poParams)
poParams
- parameters vectorpublic final void addClassificationParams(java.util.Vector poParams)
poParams
- parameters vector to appendpublic final void addClassificationParam(java.lang.Object poParam)
poParam
- object to appendpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int size()
public java.lang.Object clone()
clone
in class java.lang.Object
Object.clone()
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |