Class DescriptorHandlerSkeletonSpheres
- java.lang.Object
-
- com.actelion.research.chem.descriptor.DescriptorHandlerSkeletonSpheres
-
- All Implemented Interfaces:
DescriptorHandler<byte[],StereoMolecule>,ISimilarityCalculator<byte[]>
public class DescriptorHandlerSkeletonSpheres extends java.lang.Object implements DescriptorHandler<byte[],StereoMolecule>
-
-
Field Summary
-
Fields inherited from interface com.actelion.research.chem.descriptor.DescriptorHandler
FAILED_BYTES, FAILED_STRING
-
-
Constructor Summary
Constructors Constructor Description DescriptorHandlerSkeletonSpheres()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancalculationFailed(byte[] o)byte[]createDescriptor(StereoMolecule mol)This descriptor requires proper up/down bonds, because it encodes stereo parities.byte[]decode(byte[] bytes)byte[]decode(java.lang.String s)java.lang.Stringencode(byte[] o)static DescriptorHandlerSkeletonSpheresgetDefaultInstance()DescriptorInfogetInfo()floatgetSimilarity(byte[] d1, byte[] d2)DescriptorHandler<byte[],StereoMolecule>getThreadSafeCopy()java.lang.StringgetVersion()floatnormalizeValue(double value)
-
-
-
Method Detail
-
getDefaultInstance
public static DescriptorHandlerSkeletonSpheres getDefaultInstance()
-
calculationFailed
public boolean calculationFailed(byte[] o)
- Specified by:
calculationFailedin interfaceDescriptorHandler<byte[],StereoMolecule>
-
createDescriptor
public byte[] createDescriptor(StereoMolecule mol)
This descriptor requires proper up/down bonds, because it encodes stereo parities. If a passed molecule is generated from idcode parsing, make sure that coordinates and up/down/bonds are available, i.e. that the IDCodeParser was instantiated with the respective option.- Specified by:
createDescriptorin interfaceDescriptorHandler<byte[],StereoMolecule>
-
decode
public byte[] decode(java.lang.String s)
- Specified by:
decodein interfaceDescriptorHandler<byte[],StereoMolecule>
-
decode
public byte[] decode(byte[] bytes)
- Specified by:
decodein interfaceDescriptorHandler<byte[],StereoMolecule>
-
encode
public java.lang.String encode(byte[] o)
- Specified by:
encodein interfaceDescriptorHandler<byte[],StereoMolecule>
-
getInfo
public DescriptorInfo getInfo()
- Specified by:
getInfoin interfaceDescriptorHandler<byte[],StereoMolecule>- Specified by:
getInfoin interfaceISimilarityCalculator<byte[]>
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersionin interfaceDescriptorHandler<byte[],StereoMolecule>
-
getSimilarity
public float getSimilarity(byte[] d1, byte[] d2)- Specified by:
getSimilarityin interfaceISimilarityCalculator<byte[]>
-
normalizeValue
public float normalizeValue(double value)
-
getThreadSafeCopy
public DescriptorHandler<byte[],StereoMolecule> getThreadSafeCopy()
- Specified by:
getThreadSafeCopyin interfaceDescriptorHandler<byte[],StereoMolecule>- Specified by:
getThreadSafeCopyin interfaceISimilarityCalculator<byte[]>- Returns:
- a deep copy for parallel computing.
-
-