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
ConstructorsConstructorDescriptionShapeParameters(File configFile) ShapeParameters(String XMLconfig) Creates a new object based on a given configuration string. -
Method Summary
Modifier and TypeMethodDescriptionvoidSets parameters from an XML file.voidfromString(String parameterString) Sets parameters from a string representation.Get the default XML configuration string.static StringGets the default configuration of the standardizer.protected final voidThis method is called by the constructors before processing the XML configuration.protected final voidprotected voidprocessDocument(boolean all) Processes pars of the XML configuration specific toShape.protected voidreadValues(boolean all) Picks attribute values from the document tree that are relevant to the actualMDParameterssub-class.voidsetFlexible(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:MDParametersSets parameters from a string representation. This method assumes that parameters are described in XML format.- Overrides:
fromStringin 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:
fromFilein 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 aShapeDescriptorobject stored inMDParameters.md. -
getDefaultDocumentFrame
Get the default XML configuration string. This is needed when the optional Shape XML configuration is not specified.- Overrides:
getDefaultDocumentFramein 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 forShapeincludes 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:
processDocumentin 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:MDParametersPicks attribute values from the document tree that are relevant to the actualMDParameterssub-class.- Overrides:
readValuesin classMDParameters- Parameters:
all- process the complete document or only theScreeningConfigurationtag- Throws:
MDParametersException
-