Class TotalValencyAtom

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

@Deprecated public final class TotalValencyAtom extends SMARTSAtom
Deprecated.
This matcher checks the valence of the Atom. The valence is the number of bonds formed by an atom (including bonds to implicit hydrogens).
Source code:
main
Belongs to CDK module:
smarts
Keywords:
SMARTS
  • Constructor Details

    • TotalValencyAtom

      public TotalValencyAtom(int valence, IChemObjectBuilder builder)
      Deprecated.
      Match the valence of atom.
      Parameters:
      valence - valence value
      builder - chem object builder (required for ChemObject.getBuilder)
  • Method Details

    • 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