public class AtomEnvironmentDescriptor extends Object implements org.openscience.cdk.qsar.IMolecularDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
AtomEnvironmentDescriptor._param |
| Modifier and Type | Field and Description |
|---|---|
protected org.openscience.cdk.interfaces.IAtomType[] |
atomTypes |
protected boolean |
empty |
protected TreeMap<String,Integer> |
map |
| Constructor and Description |
|---|
AtomEnvironmentDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
String |
atomTypeToString(int index) |
org.openscience.cdk.qsar.DescriptorValue |
calculate(org.openscience.cdk.interfaces.IAtomContainer container)
This method calculates the atom environment of an atom.
|
int[][] |
doCalculation(org.openscience.cdk.interfaces.IAtomContainer atomContainer) |
int |
getAtomFingerprintSize()
to hold counts of all atom types defined by factory for maxlevel and one
additional entry for undefined atom types
|
org.openscience.cdk.interfaces.IAtomType |
getAtomType(int index) |
protected InputStream |
getAtomTypeFactoryStream() |
String[] |
getDescriptorNames() |
org.openscience.cdk.qsar.result.IDescriptorResult |
getDescriptorResultType() |
String[] |
getParameterNames()
Gets the parameterNames attribute of the AtomHybridizationDescriptor
object
|
Object[] |
getParameters() |
Object |
getParameterType(String arg0) |
org.openscience.cdk.qsar.DescriptorSpecification |
getSpecification() |
void |
initialise(org.openscience.cdk.interfaces.IChemObjectBuilder arg0) |
void |
setParameters(Object[] allParams)
Sets the parameters attribute of the AtomEnvironmentDescriptor object
|
protected boolean empty
protected org.openscience.cdk.interfaces.IAtomType[] atomTypes
public void initialise(org.openscience.cdk.interfaces.IChemObjectBuilder arg0)
initialise in interface org.openscience.cdk.qsar.IDescriptorpublic org.openscience.cdk.qsar.DescriptorSpecification getSpecification()
getSpecification in interface org.openscience.cdk.qsar.IDescriptorIDescriptor.getSpecification()public org.openscience.cdk.qsar.result.IDescriptorResult getDescriptorResultType()
getDescriptorResultType in interface org.openscience.cdk.qsar.IMolecularDescriptorpublic String[] getParameterNames()
getParameterNames in interface org.openscience.cdk.qsar.IDescriptorpublic Object getParameterType(String arg0)
getParameterType in interface org.openscience.cdk.qsar.IDescriptorIDescriptor.getParameterType(java.lang.String)public void setParameters(Object[] allParams) throws org.openscience.cdk.exception.CDKException
setParameters in interface org.openscience.cdk.qsar.IDescriptorparams - - parameters, as below params[0] MaxLevel, optional , default
3 params[1] perceiveCyclicAtoms, optional , default false
params[2] AtomTypeFactory factory, optional, default
AtomTypeFactory.getInstance(
"org/openscience/cdk/dict/data/sybyl-atom-types.owl")
params[3] AtomTypeMatcher atm, optional , default
HybridizationStateATMatcherorg.openscience.cdk.exception.CDKExceptionpublic Object[] getParameters()
getParameters in interface org.openscience.cdk.qsar.IDescriptorIDescriptor.getParameters()public org.openscience.cdk.qsar.DescriptorValue calculate(org.openscience.cdk.interfaces.IAtomContainer container)
calculate in interface org.openscience.cdk.qsar.IMolecularDescriptorcontainer - Parameter is the atom container.org.openscience.cdk.exception.CDKException - Description of the Exceptionpublic String[] getDescriptorNames()
getDescriptorNames in interface org.openscience.cdk.qsar.IDescriptorpublic int getAtomFingerprintSize()
public String atomTypeToString(int index)
public int[][] doCalculation(org.openscience.cdk.interfaces.IAtomContainer atomContainer)
throws org.openscience.cdk.exception.CDKException
arg0 - result - result[i] contains the level at which ith atom is from the
current atom (one set by setParameters)org.openscience.cdk.exception.CDKExceptionprotected InputStream getAtomTypeFactoryStream()
public org.openscience.cdk.interfaces.IAtomType getAtomType(int index)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.