Interface ISubstanceDescriptor
- All Superinterfaces:
IDescriptor
- All Known Implementing Classes:
OxygenAtomCountDescriptor
Classes that implement this interface are QSAR substance calculators.
-
Method Summary
Modifier and TypeMethodDescriptioncalculate(ISubstance substance) Calculates the descriptor value for the givenISubstance.Returns the specific type of the DescriptorResult object.Methods inherited from interface org.openscience.cdk.qsar.IDescriptor
getDescriptorNames, getParameterNames, getParameters, getParameterType, getSpecification, initialise, setParameters
-
Method Details
-
calculate
Calculates the descriptor value for the givenISubstance.- Parameters:
substance- AnISubstancefor which this descriptor should be calculated- Returns:
- An object of
DescriptorValuethat contain the calculated value as well as specification details
-
getDescriptorResultType
IDescriptorResult getDescriptorResultType()Returns the specific type of the DescriptorResult object. The return value from this method really indicates what type of result will be obtained from theDescriptorValueobject. Note that the same result can be achieved by interrogating theDescriptorValueobject; this method allows you to do the same thing, without actually calculating the descriptor.Additionally, the length indicated by the result type must match the actual length of a descriptor calculated with the current parameters. Typically, the length of array result types vary with the values of the parameters. See
IDescriptorfor more details.- Returns:
- an object that implements the
IDescriptorResultinterface indicating the actual type of values returned by the descriptor in theDescriptorValueobject
-