Source code: joelib/desc/types/AromaticOHGroups.java
1 ///////////////////////////////////////////////////////////////////////////////
2 // Filename: $RCSfile: AromaticOHGroups.java,v $
3 // Purpose: Number of aromatic hydroxy groups.
4 // Language: Java
5 // Compiler: JDK 1.4
6 // Authors: Joerg K. Wegner
7 // Version: $Revision: 1.6 $
8 // $Date: 2003/08/19 13:11:25 $
9 // $Author: wegner $
10 //
11 // Copyright (c) Dept. Computer Architecture, University of Tuebingen, Germany
12 //
13 // This program is free software; you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation version 2 of the License.
16 //
17 // This program is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 ///////////////////////////////////////////////////////////////////////////////
22 package joelib.desc.types;
23
24
25 /*==========================================================================*
26 * IMPORTS
27 *==========================================================================*/
28 import joelib.desc.DescriptorHelper;
29 import joelib.desc.DescriptorInfo;
30 import joelib.desc.SMARTSCounter;
31
32 import org.apache.log4j.Category;
33
34
35 /*==========================================================================*
36 * CLASS DECLARATION
37 *==========================================================================*/
38
39 /**
40 * Number of aromatic hydroxy groups.
41 *
42 * @author wegnerj
43 * @license GPL
44 * @cvsversion $Revision: 1.6 $, $Date: 2003/08/19 13:11:25 $
45 */
46 public class AromaticOHGroups extends SMARTSCounter
47 {
48 //~ Static fields/initializers /////////////////////////////////////////////
49
50 /*-------------------------------------------------------------------------*
51 * public static member variables
52 *-------------------------------------------------------------------------*/
53
54 /**
55 * Obtain a suitable logger.
56 */
57 private static Category logger = Category.getInstance(
58 "joelib.desc.types.AromaticOHGroups");
59 public final static String DEFAULT = new String("[OX2;H1;$(O-a)]");
60 public static final String DESC_KEY = "Number_of_aromatic_OH_groups";
61
62 //~ Constructors ///////////////////////////////////////////////////////////
63
64 /*-------------------------------------------------------------------------*
65 * constructor
66 *-------------------------------------------------------------------------*/
67 public AromaticOHGroups()
68 {
69 if (logger.isDebugEnabled())
70 {
71 logger.debug("Initialize " + this.getClass().getName() +
72 "with SMARTS pattern: " + DEFAULT);
73 }
74
75 descInfo = DescriptorHelper.generateDescInfo(DESC_KEY, this.getClass(),
76 DescriptorInfo.TYPE_NO_COORDINATES, "joelib.desc.StringInit",
77 "joelib.desc.result.IntResult");
78 }
79
80 //~ Methods ////////////////////////////////////////////////////////////////
81
82 /*-------------------------------------------------------------------------*
83 * public methods
84 *-------------------------------------------------------------------------*/
85 public String getDefaultSMARTS()
86 {
87 return DEFAULT;
88 }
89 }
90 ///////////////////////////////////////////////////////////////////////////////
91 // END OF FILE.
92 ///////////////////////////////////////////////////////////////////////////////