Class AbstractAtomicDescriptor

    • Constructor Detail

      • AbstractAtomicDescriptor

        public AbstractAtomicDescriptor()
    • Method Detail

      • isCachedAtomContainer

        public boolean isCachedAtomContainer​(IAtomContainer container)
        Returns true if the cached IDescriptorResult's are for the given IAtomContainer.
        Parameters:
        container -
        Returns:
        false, if the cache is for a different IAtomContainer
      • getCachedDescriptorValue

        public IDescriptorResult getCachedDescriptorValue​(IAtom atom)
        Returns the cached DescriptorValue for the given IAtom.
        Parameters:
        atom - the IAtom for which the DescriptorValue is requested
        Returns:
        null, if no DescriptorValue was cached for the given IAtom
      • cacheDescriptorValue

        public void cacheDescriptorValue​(IAtom atom,
                                         IAtomContainer container,
                                         IDescriptorResult value)
        Caches a DescriptorValue for a given IAtom. This method may only be called after setNewContainer() is called.
        Parameters:
        atom - IAtom to cache the value for
        value - DescriptorValue for the given IAtom
      • initialise

        public void initialise​(IChemObjectBuilder builder)
        Default implementation of initialise allows optional override.
        Specified by:
        initialise in interface IDescriptor
        Parameters:
        builder - chem object build