Class SmallestRingAtom

  • All Implemented Interfaces:
    Cloneable, IAtom, IAtomType, ICDKObject, IChemObject, IElement, IIsotope, IQueryAtom

    @Deprecated
    public final class SmallestRingAtom
    extends SMARTSAtom
    Deprecated.
    Match an atom in a specific size ring. The ring size is specified by r<NUMBER> in a SMARTS pattern. This term is non-portable, depending on the set of rings chosen and which ring sizes are used. The default implementation (Daylight) only stores the smallest ring each atom belongs to whilst other implementations may store multiple values. A more portable term is the ring connectivity which is specified as x<NUMBER>.
    Source code:
    main
    Belongs to CDK module:
    smarts
    Keywords:
    SMARTS
    • Constructor Detail

      • SmallestRingAtom

        public SmallestRingAtom​(int ringSize,
                                IChemObjectBuilder builder)
        Deprecated.
        Creates a matcher for specified ring size.
        Parameters:
        ringSize - size of the ring to check.
    • Method Detail

      • matches

        public boolean matches​(IAtom atom)
        Deprecated.
        Returns true of the given atom matches this IQueryAtom.
        Specified by:
        matches in interface IQueryAtom
        Overrides:
        matches in class SMARTSAtom
        Parameters:
        atom - IAtom to match against
        Returns:
        true, if this IQueryAtom matches the given IAtom