jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.descriptors.fingerprints.pf2d
Class ThreadLocalizedPfGenerator

Object
  extended by com.chemaxon.descriptors.fingerprints.pf2d.ThreadLocalizedPfGenerator
All Implemented Interfaces:
com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.FloatVectorDescriptor>, Serializable

public final class ThreadLocalizedPfGenerator
extends Object
implements com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.FloatVectorDescriptor>

Create a thread unsafe but ThreadLocal hacked Pd 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()

Beware that classes PFParameters and PfParameters have very similar name and they are used in explicit casting in the code!

Author:
Gabor Imre
See Also:
Serialized Form

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

Constructor Detail

ThreadLocalizedPfGenerator

protected ThreadLocalizedPfGenerator(ThreadLocalizedPfParameters params)
Construct.

Parameters:
gen - Generator to wrap.
Method Detail

generateDescriptor

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

getBareDescriptor

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

toByteArray

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

toString

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

fromString

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

fromByteArray

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

getDefaultComparator

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

getParameters

public com.chemaxon.descriptors.common.DescriptorParameters getParameters()
Specified by:
getParameters in interface com.chemaxon.descriptors.common.DescriptorGenerator<com.chemaxon.descriptors.common.FloatVectorDescriptor>

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.FloatVectorDescriptor>

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)