public class MolecularWeight extends Object implements org.openscience.cdk.qsar.IMolecularDescriptor
This descriptor uses these parameters:
| Name | Default | Description |
| elementSymbol | * | If *, returns the molecular weight, otherwise the weight for the given element |
| Constructor and Description |
|---|
MolecularWeight()
Constructor for the WeightDescriptor object.
|
| Modifier and Type | Method and Description |
|---|---|
org.openscience.cdk.qsar.DescriptorValue |
calculate(org.openscience.cdk.interfaces.IAtomContainer container)
Calculate the weight of specified element type in the supplied
IAtomContainer. |
String[] |
getDescriptorNames() |
org.openscience.cdk.qsar.result.IDescriptorResult |
getDescriptorResultType()
Returns the specific type of the DescriptorResult object.
|
String[] |
getParameterNames()
Gets the parameterNames attribute of the WeightDescriptor object.
|
Object[] |
getParameters()
Gets the parameters attribute of the WeightDescriptor object.
|
Object |
getParameterType(String name)
Gets the parameterType attribute of the WeightDescriptor object.
|
org.openscience.cdk.qsar.DescriptorSpecification |
getSpecification() |
void |
initialise(org.openscience.cdk.interfaces.IChemObjectBuilder arg0)
Returns a
Map which specifies which descriptor is
implemented by this class. |
void |
setParameters(Object[] params)
Sets the parameters attribute of the WeightDescriptor object.
|
public MolecularWeight()
public void initialise(org.openscience.cdk.interfaces.IChemObjectBuilder arg0)
Map which specifies which descriptor is
implemented by this class.
These fields are used in the map:
initialise in interface org.openscience.cdk.qsar.IDescriptorpublic org.openscience.cdk.qsar.DescriptorSpecification getSpecification()
getSpecification in interface org.openscience.cdk.qsar.IDescriptorpublic void setParameters(Object[] params) throws org.openscience.cdk.exception.CDKException
setParameters in interface org.openscience.cdk.qsar.IDescriptorparams - The new parameters valueorg.openscience.cdk.exception.CDKException - if more than 1 parameter is specified or if the parameter is
not of type StringgetParameters()public Object[] getParameters()
getParameters in interface org.openscience.cdk.qsar.IDescriptorsetParameters(java.lang.Object[])public String[] getDescriptorNames()
getDescriptorNames in interface org.openscience.cdk.qsar.IDescriptorpublic org.openscience.cdk.qsar.DescriptorValue calculate(org.openscience.cdk.interfaces.IAtomContainer container)
IAtomContainer.calculate in interface org.openscience.cdk.qsar.IMolecularDescriptorcontainer - The AtomContainer for which this descriptor is to be
calculated. If 'H' is specified as the element symbol make
sure that the AtomContainer has hydrogens.public org.openscience.cdk.qsar.result.IDescriptorResult getDescriptorResultType()
DescriptorValue object. Note that the
same result can be achieved by interrogating the
DescriptorValue object; this method
allows you to do the same thing, without actually calculating the
descriptor.getDescriptorResultType in interface org.openscience.cdk.qsar.IMolecularDescriptorIDescriptorResult
interface indicating the actual type of values returned by the
descriptor in the
DescriptorValue objectpublic String[] getParameterNames()
getParameterNames in interface org.openscience.cdk.qsar.IDescriptorpublic Object getParameterType(String name)
getParameterType in interface org.openscience.cdk.qsar.IDescriptorname - Description of the ParameterCopyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.