Package chemaxon.descriptors
Class ShapeParameters
java.lang.Object
chemaxon.descriptors.MDParameters
chemaxon.descriptors.ShapeParameters
-
Field Summary
Fields inherited from class chemaxon.descriptors.MDParameters
asymmetryFactors, cellSize, cellwiseWeights, configFilePath, currentMetricIndex, data, decForm, DEFAULT_ASYMMETRY_FACTOR, DEFAULT_OUTPUT_PRECISION, DEFAULT_SCALE_FACTOR, DEFAULT_WEIGHT, defaultWeight, document, generator, internalSize, length, md, metricIndexes, normalized, outputPrecision, parametrizedMetricNodes, parametrizedMetrics, parametrizedMetricsNode, scaleFactors, screeningConfigurationNode, similarityNode, standardizer, standardizerConfigurationNode, thresholds, tverskyA, tverskyB, weights
-
Constructor Summary
ConstructorDescriptionShapeParameters
(File configFile) ShapeParameters
(String XMLconfig) Creates a new object based on a given configuration string. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets parameters from an XML file.void
fromString
(String parameterString) Sets parameters from a string representation.Get the default XML configuration string.static String
Gets the default configuration of the standardizer.protected final void
This method is called by the constructors before processing the XML configuration.protected final void
protected void
processDocument
(boolean all) Processes pars of the XML configuration specific toShape
.protected void
readValues
(boolean all) Picks attribute values from the document tree that are relevant to the actualMDParameters
sub-class.void
setFlexible
(boolean flexible) Methods inherited from class chemaxon.descriptors.MDParameters
addParameters, addParameters, addParametrizedMetric, addParametrizedMetricNode, addParametrizedMetricsNode, appendParametrizedMetric, checkDocumentVersion, getAsymmetryFactor, getCellSize, getCurrentMetricIndex, getData, getDecForm, getDescriptorTypeName, getInternalMetricIndex, getInternalSize, getLength, getMetricIndex, getMetricName, getMetricName, getNumberOfMetrics, getNumberOfWeights, getNumberOfWeights, getScaleFactor, getScalingHypothesis, getScreeningConfigurationString, getThreshold, getThreshold, getTverskyAlpha, getTverskyBeta, getWeights, importNodes, initParameters, isAsymmetric, isCellwiseWeights, isNormalized, isScaled, isStandardizationMandatory, isWeighted, readFromXmlFile, readFromXmlString, readMetricParameters, readMetricWeights, setAsymmetryFactor, setCellSize, setCellwiseWeights, setCreateStatistics, setCurrentParametrizedMetric, setLength, setNormalized, setOutputPrecision, setParameters, setParameters, setScaleFactor, setScalingHypothesis, setThreshold, setWeights, standardize, toString, toString, writeMetricParameter
-
Constructor Details
-
ShapeParameters
public ShapeParameters() -
ShapeParameters
- Throws:
MDParametersException
-
ShapeParameters
Creates a new object based on a given configuration string.- Parameters:
XMLconfig
- XML configuration string- Throws:
MDParametersException
- missing or bad XML configuration
-
-
Method Details
-
fromString
Description copied from class:MDParameters
Sets parameters from a string representation. This method assumes that parameters are described in XML format.- Overrides:
fromString
in classMDParameters
- Parameters:
parameterString
- configuration parameters in string- Throws:
MDParametersException
- when the parameter string is not well-formed
-
setFlexible
public void setFlexible(boolean flexible) -
initGenerator
- Throws:
MDParametersException
-
fromFile
Sets parameters from an XML file. Derived classes may overload this and define their own format (even other than XML).- Overrides:
fromFile
in classMDParameters
- Parameters:
parameterFile
- initialized parameter file- Throws:
MDParametersException
- failed to process parameter file
-
initEmbeddedMD
protected final void initEmbeddedMD()This method is called by the constructors before processing the XML configuration. It creates aShapeDescriptor
object stored inMDParameters.md
. -
getDefaultDocumentFrame
Get the default XML configuration string. This is needed when the optional Shape XML configuration is not specified.- Overrides:
getDefaultDocumentFrame
in classMDParameters
- Returns:
- default XML configuration string of the ShapeParameters class
-
getDefaultStandardizerConfiguration
Gets the default configuration of the standardizer. This method is called if no standardizer configuration is set in the parameters configuration. The default standardization forShape
includes aromatization.- Returns:
- standardizer configuration XML string
-
processDocument
Processes pars of the XML configuration specific toShape
. Find thenode in the DOM tree and leaves the rest of the work to the parent class. - Overrides:
processDocument
in classMDParameters
- Parameters:
all
- indicates if the entire document has to be processed in which case the existing configuration is overwritten- Throws:
MDParametersException
-
readValues
Description copied from class:MDParameters
Picks attribute values from the document tree that are relevant to the actualMDParameters
sub-class.- Overrides:
readValues
in classMDParameters
- Parameters:
all
- process the complete document or only theScreeningConfiguration
tag- Throws:
MDParametersException
-