Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: joelib/desc/types/HBA1.java


1   ///////////////////////////////////////////////////////////////////////////////
2   //  Filename: $RCSfile: HBA1.java,v $
3   //  Purpose:  Number of Hydrogen Bond Acceptors (HBA).
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 Hydrogen Bond Acceptors (HBA).
41   *
42   * @author     wegnerj
43   * @license GPL
44   * @cvsversion    $Revision: 1.6 $, $Date: 2003/08/19 13:11:25 $
45   */
46  public class HBA1 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.HBA1");
59      public final static String DEFAULT = new String(
60              "[$([!#6;+0]);!$([F,Cl,Br,I]);!$([o,s,nX3]);!$([Nv5,Pv5,Sv4,Sv6])]");
61      public static final String DESC_KEY = "Number_of_HBA_1";
62  
63      //~ Constructors ///////////////////////////////////////////////////////////
64  
65      /*-------------------------------------------------------------------------*
66       * constructor
67       *-------------------------------------------------------------------------*/
68      public HBA1()
69      {
70          super();
71  
72          if (logger.isDebugEnabled())
73          {
74              logger.debug("Initialize " + this.getClass().getName() +
75                  "with SMARTS pattern: " + DEFAULT);
76          }
77  
78          descInfo = DescriptorHelper.generateDescInfo(DESC_KEY, this.getClass(),
79                  DescriptorInfo.TYPE_NO_COORDINATES, "joelib.desc.StringInit",
80                  "joelib.desc.result.IntResult");
81      }
82  
83      //~ Methods ////////////////////////////////////////////////////////////////
84  
85      /*-------------------------------------------------------------------------*
86       * public methods
87       *-------------------------------------------------------------------------*/
88      public String getDefaultSMARTS()
89      {
90          return DEFAULT;
91      }
92  }
93  ///////////////////////////////////////////////////////////////////////////////
94  //  END OF FILE.
95  ///////////////////////////////////////////////////////////////////////////////