Class RingMembershipAtom

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

    @Deprecated
    public class RingMembershipAtom
    extends SMARTSAtom
    Deprecated.
    This query is found in a specified number of ring. The ring membership is specified with the SMARTS R<NUMBER>. The membership depends on the ring set used and as such is not a portable term. If the Smallest Set of Smallest Rings (SSSR) is used then changing the order of atoms may change which atoms match in a pattern.
    Source code:
    main
    Belongs to CDK module:
    smarts
    Keywords:
    SMARTS
    • Constructor Detail

      • RingMembershipAtom

        public RingMembershipAtom​(int num,
                                  IChemObjectBuilder builder)
        Deprecated.
        Ring membership query atom. Check if the an atom belongs to num of rings. To specify any ring membership, num should be specified as < 0. Generally in SMARTS it's better negate ring membership with [!R] however for legacy reasons [R0] was accepted and checks this atoms belongs to 0 rings.
        Parameters:
        num - number of rings which this atom belongs to, < 0 any ring.
    • 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