Class AbstractBondDescriptor

    • Constructor Detail

      • AbstractBondDescriptor

        public AbstractBondDescriptor()
    • 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​(IBond bond)
        Returns the cached DescriptorValue for the given IBond.
        Parameters:
        bond - the IAtom for which the DescriptorValue is requested
        Returns:
        null, if no DescriptorValue was cached for the given IBond
      • cacheDescriptorValue

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

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