1 /* Copyright (C) 2004-2007  The Chemistry Development Kit (CDK) project
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public
5  * License as published by the Free Software Foundation; either
6  * version 2.1 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
16  * (or see http://www.gnu.org/copyleft/lesser.html)
17  */
18 package org.openscience.cdk.isomorphism.matchers.smarts;
19 
20 import org.openscience.cdk.interfaces.IAtom;
21 import org.openscience.cdk.interfaces.IChemObjectBuilder;
22 import org.openscience.cdk.isomorphism.matchers.IQueryAtom;
23 import org.openscience.cdk.isomorphism.matchers.IQueryBond;
24 
25 /**
26  * This encapsulates an atom with a ring identifier, with an optional ring
27  * bond specified. For example, <code>C=1CCCCC1</code>.
28  *
29  * @cdk.module  smarts
30  * @cdk.githash
31  * @cdk.keyword SMARTS
32  */
33 @Deprecated
34 public class RingIdentifierAtom extends SMARTSAtom {
35 
36     private static final long serialVersionUID = -6812146026923460637L;
37     private IQueryAtom        atom;
38     private IQueryBond        ringBond;
39 
RingIdentifierAtom(IChemObjectBuilder builder)40     public RingIdentifierAtom(IChemObjectBuilder builder) {
41         super(builder);
42     }
43 
44     /*
45      * (non-Javadoc)
46      * @see
47      * org.openscience.cdk.isomorphism.matchers.smarts.SMARTSAtom#matches(org
48      * .openscience.cdk.interfaces.IAtom)
49      */
50     @Override
matches(IAtom atom)51     public boolean matches(IAtom atom) {
52         return this.atom.matches(atom);
53     }
54 
getAtom()55     public IQueryAtom getAtom() {
56         return atom;
57     }
58 
setAtom(IQueryAtom atom)59     public void setAtom(IQueryAtom atom) {
60         this.atom = atom;
61     }
62 
getRingBond()63     public IQueryBond getRingBond() {
64         return ringBond;
65     }
66 
setRingBond(IQueryBond bond)67     public void setRingBond(IQueryBond bond) {
68         this.ringBond = bond;
69     }
70 }
71