|
|||||||||
| 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 chemaxon.descriptors.MDParametersException
configFile - XML configuration file
chemaxon.descriptors.MDParametersException - missing or bad XML configuration
public SDParameters(java.lang.String XMLconfig)
throws chemaxon.descriptors.MDParametersException
XMLconfig - XML configuration string
chemaxon.descriptors.MDParametersException - missing or bad XML configuration| Method Detail |
|---|
public void fromString(java.lang.String parameterString)
throws chemaxon.descriptors.MDParametersException
fromString in class MDParametersparameterString - parameters in string
chemaxon.descriptors.MDParametersException - when the parameter string is not well-formed
public void fromFile(java.io.File parameterFile)
throws chemaxon.descriptors.MDParametersException
fromFile in class MDParametersparameterFile - initialized parameter file
chemaxon.descriptors.MDParametersException - failed to process parameter file
public void setLength(int length)
throws chemaxon.descriptors.MDParametersException
MDParameters
setLength in class MDParameterslength - the required length (cell count)
chemaxon.descriptors.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 chemaxon.descriptors.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
chemaxon.descriptors.MDParametersExceptionpublic java.lang.String getType()
protected void readValues(boolean all)
throws chemaxon.descriptors.MDParametersException
readValues in class MDParametersall - process the complete document or only the
ScreeningConfiguration tag
chemaxon.descriptors.MDParametersException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||