|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.descriptors.MDParameters
chemaxon.descriptors.SDParameters
public class SDParameters
Manages ScalarDescriptor parameters. This class reads, stores
and provides parameters for the ScalarDescriptor class. The
native format of the parameter configuraton is XML.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
SDParameters()
Creates an empty object. |
|
SDParameters(java.io.File configFile)
Creates a new object from the given configuration file. |
|
SDParameters(java.lang.String XMLconfig)
Creates a new object from the given configuration string. |
|
| Method Summary | |
|---|---|
void |
fromFile(java.io.File parameterFile)
Sets parameters from an XML file. |
void |
fromString(java.lang.String parameterString)
Sets parameters from a string representation. |
int |
getNumberOfMetrics()
Gets the total number of parametrized metrics available in the present configuration. |
java.lang.String |
getType()
|
protected void |
init()
This method is called by the constructors before processing the XML configuration. |
protected void |
initParameters()
Initializes those data members that depend on the XML configuration but are not directly taken from it. |
protected void |
processDocument(boolean all)
Processes parts of the XML configuration specific to ScalarDescriptor. |
protected void |
readValues(boolean all)
Reads attribute values form the XML configuration. |
void |
setLength(int length)
Sets the length (number of cells) of the descriptor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SDParameters()
public SDParameters(java.io.File configFile)
throws MDParametersException
configFile - XML configuration file
MDParametersException - missing or bad XML configuration
public SDParameters(java.lang.String XMLconfig)
throws MDParametersException
XMLconfig - XML configuration string
MDParametersException - missing or bad XML configuration| Method Detail |
|---|
public void fromString(java.lang.String parameterString)
throws MDParametersException
fromString in class MDParametersparameterString - parameters in string
MDParametersException - when the parameter string is not well-formed
public void fromFile(java.io.File parameterFile)
throws MDParametersException
fromFile in class MDParametersparameterFile - initialized parameter file
MDParametersException - failed to process parameter file
public void setLength(int length)
throws MDParametersException
MDParameters
setLength in class MDParameterslength - the required length (cell count)
MDParametersException - if argument is not positivepublic int getNumberOfMetrics()
getNumberOfMetrics in class MDParametersprotected void init()
ScalarDescriptor object stored
in MDParameters.md.
protected void initParameters()
initParameters in class MDParameters
protected void processDocument(boolean all)
throws MDParametersException
ScalarDescriptor.
Find the
processDocument in class MDParametersall - indicates if the entire document has to be processed
in which case the existing configuration is overwritten
MDParametersExceptionpublic java.lang.String getType()
protected void readValues(boolean all)
throws MDParametersException
readValues in class MDParametersall - process the complete document or only the
ScreeningConfiguration tag
MDParametersException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||