Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

marf.Storage
Class ModuleParams  view ModuleParams download ModuleParams.java

java.lang.Object
  extended bymarf.Storage.ModuleParams

public class ModuleParams
extends java.lang.Object

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.

$Id: ModuleParams.java,v 1.13 2005/06/16 19:58:54 mokhov Exp $

Since:
0.0.1
Version:
$Revision: 1.13 $

Field Summary
private static int CLASSIFICATION
          Indicates that we manipulate on the Classification Vector.
private static int FEATURE_EXTRACTION
          Indicates that we manipulate on the Feature Extraction Vector.
private  java.util.Vector oClassification
          A Vector of classification parameters.
private  java.util.Vector oFeatureExtraction
          A Vector of feature extraction parameters.
private  java.util.Vector oPreprocessingParams
          A Vector of preprocessing parameters.
private static int PREPROCESSING
          Indicates that we manipulate on the Preprocessing Vector.
 
Constructor Summary
ModuleParams()
          Default 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.
private  void addParam(java.lang.Object oParam, int piModuleType)
          Generic addParam() method.
private  void addParams(java.util.Vector oParams, int piModuleType)
          Generic add*() method.
 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.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.
private  java.util.Vector getParams(int piModuleType)
          Generic get*() method.
 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.
private  void setParams(java.util.Vector oParams, int piModuleType)
          Generic set*() method.
 void setPreprocessingParams(java.util.Vector poParams)
          Sets preprocessing parameters vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oPreprocessingParams

private java.util.Vector oPreprocessingParams
A Vector of preprocessing parameters.


oFeatureExtraction

private java.util.Vector oFeatureExtraction
A Vector of feature extraction parameters.


oClassification

private java.util.Vector oClassification
A Vector of classification parameters.


PREPROCESSING

private static final int PREPROCESSING
Indicates that we manipulate on the Preprocessing Vector.

See Also:
Constant Field Values

FEATURE_EXTRACTION

private static final int FEATURE_EXTRACTION
Indicates that we manipulate on the Feature Extraction Vector.

See Also:
Constant Field Values

CLASSIFICATION

private static final int CLASSIFICATION
Indicates that we manipulate on the Classification Vector.

See Also:
Constant Field Values
Constructor Detail

ModuleParams

public ModuleParams()
Default Constructor. Does nothing extra.

Method Detail

setParams

private final void setParams(java.util.Vector oParams,
                             int piModuleType)
Generic set*() method. Overwrites any possible previous value for a given module with a new one.


addParams

private final void addParams(java.util.Vector oParams,
                             int piModuleType)
Generic add*() method. Appends params vector to whatever there possibly was.


addParam

private final void addParam(java.lang.Object oParam,
                            int piModuleType)
Generic addParam() method. Adds a single object to the corresponding Vector.


getParams

private final java.util.Vector getParams(int piModuleType)
Generic get*() method. Returns for a given module it's parameters vector.


getPreprocessingParams

public final java.util.Vector getPreprocessingParams()
Retrieves Preprocessing module's parameters.


setPreprocessingParams

public final void setPreprocessingParams(java.util.Vector poParams)
Sets preprocessing parameters vector.


addPreprocessingParams

public final void addPreprocessingParams(java.util.Vector poParams)
Adds (appends) preprocessing parameters vector.


addPreprocessingParam

public final void addPreprocessingParam(java.lang.Object poParam)
Adds (appends) a single preprocessing parameter object.


getFeatureExtractionParams

public final java.util.Vector getFeatureExtractionParams()
Retrieves Feature Extraction module's parameters.


setFeatureExtractionParams

public final void setFeatureExtractionParams(java.util.Vector poParams)
Sets feature extraction parameters vector.


addFeatureExtractionParams

public final void addFeatureExtractionParams(java.util.Vector poParams)
Adds (appends) feature extraction parameters vector.


addFeatureExtractionParam

public final void addFeatureExtractionParam(java.lang.Object poParam)
Adds (appends) a single feature extraction parameter object.


getClassificationParams

public final java.util.Vector getClassificationParams()
Retrieves Classification module's parameters.


setClassificationParams

public final void setClassificationParams(java.util.Vector poParams)
Sets classification parameters vector.


addClassificationParams

public final void addClassificationParams(java.util.Vector poParams)
Adds (appends) classification parameters vector.


addClassificationParam

public final void addClassificationParam(java.lang.Object poParam)
Adds (appends) a single classification parameter object.


getMARFSourceCodeRevision

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

Since:
0.3.0