Logo Search packages:      
Sourcecode: cdk version File versions

DebugBond.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 javax.vecmath.Point2d;
import javax.vecmath.Point3d;

import org.openscience.cdk.interfaces.IAtom;
import org.openscience.cdk.interfaces.IBond;
import org.openscience.cdk.interfaces.IChemObjectBuilder;
import org.openscience.cdk.interfaces.IChemObjectChangeEvent;
import org.openscience.cdk.interfaces.IChemObjectListener;
import org.openscience.cdk.tools.LoggingTool;

/**
 * Debugging data class.
 * 
 * @author     egonw
 * @cdk.module datadebug
 */
00041 public class DebugBond extends org.openscience.cdk.Bond
    implements IBond {

00044     private static final long serialVersionUID = -2330398179697796261L;
    
    LoggingTool logger = new LoggingTool(DebugBond.class);
      
      public DebugBond() {
            super();
      }
      
      public DebugBond(org.openscience.cdk.interfaces.IAtom atom1, org.openscience.cdk.interfaces.IAtom atom2) {
            super(atom1, atom2);
      }
      
      public DebugBond(org.openscience.cdk.interfaces.IAtom atom1, org.openscience.cdk.interfaces.IAtom atom2, double order) {
            super(atom1, atom2, order);
      }
      
      public DebugBond(org.openscience.cdk.interfaces.IAtom atom1, org.openscience.cdk.interfaces.IAtom atom2, double order, int stereo) {
            super(atom1, atom2, order, stereo);
      }

00064       public int getElectronCount() {
            logger.debug("Getting electron count: ", super.getElectronCount());
            return super.getElectronCount();
      }

00069       public void setElectronCount(int electronCount) {
            logger.debug("Setting electron count: ", electronCount);
            super.setElectronCount(electronCount);
      }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

00154       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;
      }

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

00169       public java.util.Iterator atoms() {
            logger.debug("Getting atoms iterator");
            return super.atoms();
      }

00174       public void setAtoms(IAtom[] atoms) {
            logger.debug("Setting atoms: ", atoms.length);
            super.setAtoms(atoms);
      }

00179       public int getAtomCount() {
            logger.debug("Getting atom count: ", super.getAtomCount());
            return super.getAtomCount();
      }

00184       public IAtom getAtom(int position) {
            logger.debug("Getting atom at position: ", position);
            return super.getAtom(position);
      }

00189       public IAtom getConnectedAtom(IAtom atom) {
            logger.debug("Getting connected atom to atom: ", atom);
            return super.getConnectedAtom(atom);
      }

00194       public boolean contains(IAtom atom) {
            logger.debug("Contains atom: ", atom);
            return super.contains(atom);
      }

00199       public void setAtom(IAtom atom, int position) {
            logger.debug("Setting atom at position: ", atom);
            super.setAtom(atom, position);
      }

00204       public double getOrder() {
            logger.debug("Getting order: ", super.getOrder());
            return super.getOrder();
      }

00209       public void setOrder(double order) {
            logger.debug("Setting order: ", order);
            super.setOrder(order);
      }

00214       public int getStereo() {
            logger.debug("Getting stereo: ", super.getStereo());
            return super.getStereo();
      }

00219       public void setStereo(int stereo) {
            logger.debug("Setting stereo: ", stereo);
            super.setStereo(stereo);
      }

00224       public Point2d get2DCenter() {
            logger.debug("Getting 2d center: ", super.get2DCenter());
            return super.get2DCenter();
      }

00229       public Point3d get3DCenter() {
            logger.debug("Getting 3d center: ", super.get3DCenter());
            return super.get3DCenter();
      }

00234       public boolean compare(Object object) {
            logger.debug("Comparing to object: ", object);
            return super.compare(object);
      }

00239       public boolean isConnectedTo(IBond bond) {
            logger.debug("Is connected to bond: ", bond);
            return super.isConnectedTo(bond);
      }

}

Generated by  Doxygen 1.6.0   Back to index