Logo Search packages:      
Sourcecode: cdk version File versions

CDKConstants.java

/* $
 *  
 *  $RCSfile: $
 *  $Author: sushil_ronghe $
 *  $Date: 2007-04-24 16:43:57 +0200 (Tue, 24 Apr 2007) $
 *  $Revision: 8262 $
 *
 *  Copyright (C) 1997-2007   Christoph Steinbeck <steinbeck@users.sf.net>
 *
 *  Contact: cdk-devel@lists.sourceforge.net
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public License
 *  as published by the Free Software Foundation; either version 2.1
 *  of the License, or (at your option) any later version.
 *  All I ask is that proper credit is given for my work, which includes
 *  - but is not limited to - adding the above copyright notice to the beginning
 *  of your source code files, and to any copyright notice that you may distribute
 *  with programs based on this work.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 */
package org.openscience.cdk;

/**
 * An interface providing predefined values for a number of
 * constants used throughout the CDK. Classes using these constants should
 * <b>not</b> implement this interface, but use it like:
 * <pre>
 *   double singleBondOrder = CDKConstants.BONDORDER_SINGLE;
 * </pre>
 *
 * <p>The lazyCreation patch has been applied to this class.
 *
 * @cdk.module  core
 *
 * @cdk.keyword bond order
 * @cdk.keyword stereochemistry
 */
00048 public class CDKConstants {
      
      public final static int UNSET = Integer.MIN_VALUE;    

      /** A bond of degree 1.0. */
00053       public final static double BONDORDER_SINGLE = 1.0;

      /** A bond of degree 1.5. To indicate aromaticity, the flag ISAROMATIC should be used instead.
       *  This constant is used for specific file formats only, and should generally not be used. */
00057     public final static double BONDORDER_AROMATIC = 1.5;

    /** A bond of degree 2.0. */
00060     public final static double BONDORDER_DOUBLE = 2.0;

    /** A bond of degree 3.0. */
00063     public final static double BONDORDER_TRIPLE = 3.0;

    /** A bonds which end is above the drawing plane. */
00066     public final static int STEREO_BOND_UP = 1;
    /** A bonds which start is above the drawing plane. */
00068     public final static int STEREO_BOND_UP_INV = 2;

    /** A bonds for which the stereochemistry is undefined. */
00071     public final static int STEREO_BOND_UNDEFINED = 4;

    /** A bonds for which there is no stereochemistry. */
00074     public final static int STEREO_BOND_NONE = 0;

    /** A bonds which end is below the drawing plane.
     *  The bond is draw from the first to the second bond atom.
     */
00079     public final static int STEREO_BOND_DOWN = -1;
    /** A bonds which end is below the drawing plane.
     *  The bond is draw from the second to the first bond atom.
     */
00083     public final static int STEREO_BOND_DOWN_INV = -2;

    /** A positive atom parity. */
00086     public final static int STEREO_ATOM_PARITY_PLUS = 1;
    /** A negative atom parity. */
00088     public final static int STEREO_ATOM_PARITY_MINUS = -1;
    /** A undefined atom parity. */
00090     public final static int STEREO_ATOM_PARITY_UNDEFINED = 0;

    /** A undefined hybridization. */
00093     public final static int HYBRIDIZATION_UNSET = 0;
    /** A geometry of neighboring atoms when an s orbital is hybridized
     *  with one p orbital. */
00096     public final static int HYBRIDIZATION_SP1 = 1;
    /** A geometry of neighboring atoms when an s orbital is hybridized
     *  with two p orbitals. */
00099     public final static int HYBRIDIZATION_SP2 = 2;
    /** A geometry of neighboring atoms when an s orbital is hybridized
     *  with three p orbitals. */
00102     public final static int HYBRIDIZATION_SP3 = 3;
    /** A geometry of neighboring atoms when an s orbital is hybridized
     *  with three p orbitals with one d orbital. */
00105     public final static int HYBRIDIZATION_SP3D1 = 4;
    /** A geometry of neighboring atoms when an s orbital is hybridized
     *  with three p orbitals with two d orbitals. */
00108     public final static int HYBRIDIZATION_SP3D2 = 5;
    /** A geometry of neighboring atoms when an s orbital is hybridized
     *  with three p orbitals with three d orbitals. */
00111     public final static int HYBRIDIZATION_SP3D3 = 6;
    /** A geometry of neighboring atoms when an s orbital is hybridized
     *  with three p orbitals with four d orbitals. */
00114     public final static int HYBRIDIZATION_SP3D4 = 7;
    /** A geometry of neighboring atoms when an s orbital is hybridized
     *  with three p orbitals with five d orbitals. */
00117     public final static int HYBRIDIZATION_SP3D5 = 8;
    /** 
     * Carbon NMR shift contant for use as a key in the
     * IChemObject.physicalProperties hashtable.
     * @see org.openscience.cdk.ChemObject
     */
00123     public final static String NMRSHIFT_CARBON = "carbon nmr shift";
    /** Hydrogen NMR shift contant for use as a key in the
     * IChemObject.physicalProperties hashtable.
     * @see org.openscience.cdk.ChemObject
     */
00128     public final static String NMRSHIFT_HYDROGEN = "hydrogen nmr shift";
    /** Nitrogen NMR shift contant for use as a key in the
     * IChemObject.physicalProperties hashtable.
     * @see org.openscience.cdk.ChemObject
     */
00133     public final static String NMRSHIFT_NITROGEN = "nitrogen nmr shift";

    /** Phosphorus NMR shift contant for use as a key in the
     * IChemObject.physicalProperties hashtable.
     * @see org.openscience.cdk.ChemObject
     */
00139     public final static String NMRSHIFT_PHOSPORUS = "phosphorus nmr shift";

    /** Fluorine NMR shift contant for use as a key in the
     * IChemObject.physicalProperties hashtable.
     * @see org.openscience.cdk.ChemObject
     */
00145     public final static String NMRSHIFT_FLUORINE = "fluorine nmr shift";

    /** Deuterium NMR shift contant for use as a key in the
     * IChemObject.physicalProperties hashtable.
     * @see org.openscience.cdk.ChemObject
     */
00151     public final static String NMRSHIFT_DEUTERIUM = "deuterium nmr shift";


    /****************************************
     * Some predefined flags - keep the     *
     * numbers below 50 free for other      *
     * purposes                             *
     ****************************************/

    /** Flag that is set if the chemobject is placed (somewhere).
     */
00162     public final static int ISPLACED = 0;
    /** Flag that is set when the chemobject is part of a ring.
     */
00165     public final static int ISINRING = 1;
    /** Flag that is set when the chemobject is part of a ring.
     */
00168     public final static int ISNOTINRING = 2;
    /** Flag that is set if a chemobject is part of an alipahtic chain.
     */
00171     public final static int ISALIPHATIC = 3;
    /** Flag is set if chemobject has been visited.
     */
00174     public final static int VISITED = 4; // Use in tree searches
    /** Flag is set if chemobject is part of an aromatic system. */
00176     public final static int ISAROMATIC = 5;
    /** Flag is set if chemobject is part of a conjugated system. */
00178     public final static int ISCONJUGATED = 6;
    /** Flag is set if a chemobject is mapped to another chemobject.
     *  It is used for example in subgraph isomorphism search.
     */
00182     public final static int MAPPED = 7;

    /** Set to true if the atom is an hydrogen bond donor. */
00185     public final static int IS_HYDROGENBOND_DONOR = 8;
    /** Set to true if the atom is an hydrogen bond acceptor. */
00187     public final static int IS_HYDROGENBOND_ACCEPTOR = 9;
        
    /** Flag is set if a chemobject has reactive center.
     *  It is used for example in reaction.
     */
00192     public static final int REACTIVE_CENTER = 10;
    /**
     * Maximum flags array index.
     */
00196     public final static int MAX_FLAG_INDEX = 10;
    /**
     * Flag used for JUnit testing the pointer functionality.
     */
00200     public final static int DUMMY_POINTER = 1;
    /**
     * Maximum pointers array index.
     */
00204     public final static int MAX_POINTER_INDEX = 1;
    
    /****************************************
     * Some predefined property names for    *
     * ChemObjects                           *
     ****************************************/

    /** The title for a IChemObject. */
00212     public static final String TITLE = "Title";

    /** A remark for a IChemObject.*/
00215     public static final String REMARK = "Remark";

    /** A String comment. */
00218     public static final String COMMENT = "Comment";

    /** A List of names. */
00221     public static final String NAMES = "Names";

    /** A List of annotation remarks. */
00224     public static final String ANNOTATIONS = "Annotations";

    /** A description for a IChemObject. */
00227     public static final String DESCRIPTION = "Description";


    /****************************************
    * Some predefined property names for    *
    * Molecules                             *
    ****************************************/

    /** The Daylight SMILES. */
00236       public static final String SMILES = "SMILES";
    
    /** The IUPAC International Chemical Identifier. */
00239       public static final String INCHI = "InChI";
    
    /** The IUPAC compatible name generated with AutoNom. */
00242     public static final String AUTONOMNAME = "AutonomName";

    /** The Beilstein Registry Number. */
00245     public static final String BEILSTEINRN = "BeilsteinRN";

    /** The CAS Registry Number. */
00248     public static final String CASRN = "CasRN";
    
    /** A set of all rings computed for this molecule. */
00251     public static final String ALL_RINGS = "AllRings";

    /** A smallest set of smallest rings computed for this molecule. */
00254     public static final String SMALLEST_RINGS = "SmallestRings";

    /** The essential rings computed for this molecule. 
     *  The concept of Essential Rings is defined in 
     *  SSSRFinder
     */
00260     public static final String ESSENTIAL_RINGS = "EssentialRings";
    
    /** The relevant rings computed for this molecule. 
     *  The concept of relevant Rings is defined in 
     *  SSSRFinder
     */
00266     public static final String RELEVANT_RINGS = "RelevantRings";

    
    /****************************************
    * Some predefined property names for    *
    * Atoms                                 *
    ****************************************/

    /**
     * This property will contain an ArrayList of Integers. Each
     * element of the list indicates the size of the ring the given
     * atom belongs to (if it is a ring atom at all).
     */
00279     public static final String RING_SIZES = "RingSizes";

    /**
     * This property indicates how many ring bonds are connected to
     * the given atom.
     */
00285     public static final String RING_CONNECTIONS = "RingConnections";
    
     /*
     *This property indicate how many bond are present on the atom.
     *
     */
    public static final String TOTAL_CONNECTIONS = "TotalConnections";
    /*
     *Hydrogen count
     *
     */
    public static final String TOTAL_H_COUNT = "TotalHydrogenCount";

    /** The Isotropic Shielding, usually calculated by
      * a quantum chemistry program like Gaussian.
      * This is a property used for calculating NMR chemical
      * shifts by subtracting the value from the 
      * isotropic shielding value of a standard (e.g. TMS).
      */
00304     public static final String ISOTROPIC_SHIELDING = "IsotropicShielding";

    /****************************************
    * Some predefined property names for    *
    * AtomTypes                             *
    ****************************************/

    /** Used as property key for indicating the ring size of a certain atom type. */
00312     public static final String PART_OF_RING_OF_SIZE = "Part of ring of size";

    /** Used as property key for indicating the chemical group of a certain atom type. */
00315     public static final String CHEMICAL_GROUP_CONSTANT = "Chemical Group";

    /** Used as property key for indicating the HOSE code for a certain atom type. */
00318     public static final String SPHERICAL_MATCHER = "HOSE code spherical matcher";

}



Generated by  Doxygen 1.6.0   Back to index