Logo Search packages:      
Sourcecode: cdk version File versions  Download package

DebugIsotope.java

/* $Revision: 7636 $ $Author: egonw $ $Date: 2007-01-04 18:46:10 +0100 (Thu, 04 Jan 2007) $
 *
 * Copyright (C) 2005-2007  Egon Willighagen <egonw@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.
 *
 * 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.debug;

import java.util.Hashtable;

import org.openscience.cdk.interfaces.IChemObjectBuilder;
import org.openscience.cdk.interfaces.IChemObjectChangeEvent;
import org.openscience.cdk.interfaces.IChemObjectListener;
import org.openscience.cdk.interfaces.IElement;
import org.openscience.cdk.interfaces.IIsotope;
import org.openscience.cdk.tools.LoggingTool;

/**
 * Debugging data class.
 * 
 * @author     egonw
 * @cdk.module datadebug
 */
00038 public class DebugIsotope extends org.openscience.cdk.Isotope
    implements IIsotope {

00041     private static final long serialVersionUID = -2659188100080921299L;
    
    LoggingTool logger = new LoggingTool(DebugIsotope.class);

      public DebugIsotope(String elementSymbol) {
            super(elementSymbol);
            logger.debug("Instantiated a DebugIsotope.");
      }
      
      public DebugIsotope(int atomicNumber, String elementSymbol, 
                  int massNumber, double exactMass, double abundance) {
            super(atomicNumber, elementSymbol, massNumber, exactMass, abundance);
            logger.debug("Instantiated a DebugIsotope.");
      }

      public DebugIsotope(int atomicNumber, String elementSymbol, 
                  double exactMass, double abundance) {
            super(atomicNumber, elementSymbol, exactMass, abundance);
            logger.debug("Instantiated a DebugIsotope.");
      }

      public DebugIsotope(String elementSymbol, int massNumber) {
            super(elementSymbol, massNumber);
            logger.debug("Instantiated a DebugIsotope.");
      }

      public DebugIsotope(IElement element) {
            super(element);
            logger.debug("Instantiated a DebugIsotope from element: ", element);
      }

00072       public int getAtomicNumber() {
            logger.debug("Getting atomic number: ", super.getAtomicNumber());
            return super.getAtomicNumber();
      }

00077       public void setAtomicNumber(int atomicNumber) {
            logger.debug("Setting atomic number: ", atomicNumber);
            super.setAtomicNumber(atomicNumber);
      }

00082       public String getSymbol() {
            logger.debug("Getting symbol: ", super.getSymbol());
            return super.getSymbol();
      }

00087       public void setSymbol(String symbol) {
            logger.debug("Setting symbol: ", symbol);
            super.setSymbol(symbol);
      }

00092       public void addListener(IChemObjectListener col) {
            logger.debug("Adding listener: ", col);
            super.addListener(col);
      }

00097       public int getListenerCount() {
            logger.debug("Getting listener count: ", super.getListenerCount());
            return super.getListenerCount();
      }

00102       public void removeListener(IChemObjectListener col) {
            logger.debug("Removing listener: ", col);
            super.removeListener(col);
      }

00107       public void notifyChanged() {
            logger.debug("Notifying changed");
            super.notifyChanged();
      }

00112       public void notifyChanged(IChemObjectChangeEvent evt) {
            logger.debug("Notifying changed event: ", evt);
            super.notifyChanged(evt);
      }

00117       public void setProperty(Object description, Object property) {
            logger.debug("Setting property: ", description + "=" + property);
            super.setProperty(description, property);
      }

00122       public void removeProperty(Object description) {
            logger.debug("Removing property: ", description);
            super.removeProperty(description);
      }

00127       public Object getProperty(Object description) {
            logger.debug("Getting property: ", description + "=" + super.getProperty(description));
            return super.getProperty(description);
      }

00132       public Hashtable getProperties() {
            logger.debug("Getting properties");
            return super.getProperties();
      }

00137       public String getID() {
            logger.debug("Getting ID: ", super.getID());
            return super.getID();
      }

00142       public void setID(String identifier) {
            logger.debug("Setting ID: ", identifier);
            super.setID(identifier);
      }

00147       public void setFlag(int flag_type, boolean flag_value) {
            logger.debug("Setting flag: ", flag_type + "=" + flag_value);
            super.setFlag(flag_type, flag_value);
      }

00152       public boolean getFlag(int flag_type) {
            logger.debug("Setting flag: ", flag_type + "=" + super.getFlag(flag_type));
            return super.getFlag(flag_type);
      }

00157       public void setProperties(Hashtable properties) {
            logger.debug("Setting properties: ", properties);
            super.setProperties(properties);
      }

00162       public void setFlags(boolean[] flagsNew) {
            logger.debug("Setting flags:", flagsNew.length);
            super.setFlags(flagsNew);
      }

00167       public boolean[] getFlags() {
            logger.debug("Getting flags:", super.getFlags().length);
            return super.getFlags();
      }

00172       public Object clone() throws CloneNotSupportedException {
        Object clone = null;
        try {
            clone = super.clone();
        } catch (Exception exception) {
            logger.error("Could not clone DebugAtom: " + exception.getMessage(), exception);
            logger.debug(exception);
        }
        return clone;
      }

00183       public IChemObjectBuilder getBuilder() {
            return DebugChemObjectBuilder.getInstance();
      }

00187       public void setNaturalAbundance(double naturalAbundance) {
            logger.debug("Setting natural abundance: ", naturalAbundance);
            super.setNaturalAbundance(naturalAbundance);
      }

00192       public void setExactMass(double exactMass) {
            logger.debug("Setting exact mass: ", exactMass);
            super.setExactMass(exactMass);
            
      }

00198       public double getNaturalAbundance() {
            logger.debug("Getting natural abundance: ", super.getNaturalAbundance());
            return super.getNaturalAbundance();
      }

00203       public double getExactMass() {
            logger.debug("Getting exact mass: ", super.getExactMass());
            return super.getExactMass();
      }

00208       public int getMassNumber() {
            logger.debug("Getting mass number: ", super.getMassNumber());
            return super.getMassNumber();
      }

00213       public void setMassNumber(int massNumber) {
            logger.debug("Setting mass number: ", massNumber);
            super.setMassNumber(massNumber);
      }

}

Generated by  Doxygen 1.6.0   Back to index