jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.descriptors.fingerprints.ecfp
Class ThreadLocalizedEcfpGenerator

Object
  extended by com.chemaxon.descriptors.fingerprints.ecfp.ThreadLocalizedEcfpGenerator
All Implemented Interfaces:
com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.BinaryVectorDescriptor>, Serializable

public final class ThreadLocalizedEcfpGenerator
extends Object
implements com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.BinaryVectorDescriptor>

Create a thread unsafe but ThreadLocal hacked ECFP generator.

We hope efficiency gain from this dangerous workaround. Use with extreme care!.

Safe(e) usage rules of thumb:

The API contracts of DescriptorGenerator regarding API discovery are not fully satisfied by this class.

The guard objects associated to the generated descriptors is the reference of the wrapped generator. For details see API contracts of Descriptor.getDescriptorGenerator()

Author:
Gabor Imre
See Also:
Serialized Form

Constructor Summary
protected ThreadLocalizedEcfpGenerator(ThreadLocalizedEcfpParameters params)
          Construct.
 
Method Summary
 com.chemaxon.descriptors.common.BinaryVectorDescriptor fromByteArray(byte[] desc)
           
 com.chemaxon.descriptors.common.BinaryVectorDescriptor fromString(String desc)
           
 com.chemaxon.descriptors.common.BinaryVectorDescriptor generateDescriptor(chemaxon.struc.Molecule mol)
           
 com.chemaxon.descriptors.common.BinaryVectorDescriptor getBareDescriptor(com.chemaxon.descriptors.common.BinaryVectorDescriptor descriptor)
           
 com.chemaxon.descriptors.common.DescriptorComparator<com.chemaxon.descriptors.common.BinaryVectorDescriptor> getDefaultComparator()
           
 Object getGuardObject()
           
 com.chemaxon.descriptors.fingerprints.ecfp.EcfpParameters getParameters()
           
 byte[] toByteArray(com.chemaxon.descriptors.common.BinaryVectorDescriptor desc)
           
 String toString()
           
 String toString(com.chemaxon.descriptors.common.BinaryVectorDescriptor desc)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreadLocalizedEcfpGenerator

protected ThreadLocalizedEcfpGenerator(ThreadLocalizedEcfpParameters params)
Construct.

Parameters:
params - Parameters object for this descriptor
Method Detail

generateDescriptor

public com.chemaxon.descriptors.common.BinaryVectorDescriptor generateDescriptor(chemaxon.struc.Molecule mol)
Specified by:
generateDescriptor in interface com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.BinaryVectorDescriptor>

getBareDescriptor

public com.chemaxon.descriptors.common.BinaryVectorDescriptor getBareDescriptor(com.chemaxon.descriptors.common.BinaryVectorDescriptor descriptor)
Specified by:
getBareDescriptor in interface com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.BinaryVectorDescriptor>

toByteArray

public byte[] toByteArray(com.chemaxon.descriptors.common.BinaryVectorDescriptor desc)
Specified by:
toByteArray in interface com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.BinaryVectorDescriptor>

toString

public String toString(com.chemaxon.descriptors.common.BinaryVectorDescriptor desc)
Specified by:
toString in interface com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.BinaryVectorDescriptor>

fromString

public com.chemaxon.descriptors.common.BinaryVectorDescriptor fromString(String desc)
Specified by:
fromString in interface com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.BinaryVectorDescriptor>

fromByteArray

public com.chemaxon.descriptors.common.BinaryVectorDescriptor fromByteArray(byte[] desc)
Specified by:
fromByteArray in interface com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.BinaryVectorDescriptor>

getDefaultComparator

public com.chemaxon.descriptors.common.DescriptorComparator<com.chemaxon.descriptors.common.BinaryVectorDescriptor> getDefaultComparator()
Specified by:
getDefaultComparator in interface com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.BinaryVectorDescriptor>

getParameters

public com.chemaxon.descriptors.fingerprints.ecfp.EcfpParameters getParameters()
Specified by:
getParameters in interface com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.BinaryVectorDescriptor>

toString

public String toString()
Overrides:
toString in class Object

getGuardObject

public Object getGuardObject()
Specified by:
getGuardObject in interface com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.BinaryVectorDescriptor>

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)