Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/* Copyright (C) 2005-2007 Egon Willighagen
*
* Contact: [email protected]
*
* 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.Map;
import org.openscience.cdk.AtomContainerSet;
import org.openscience.cdk.interfaces.IAtomContainer;
import org.openscience.cdk.interfaces.IAtomContainerSet;
import org.openscience.cdk.interfaces.IChemObjectChangeEvent;
import org.openscience.cdk.interfaces.IChemObjectListener;
import org.openscience.cdk.interfaces.IChemObjectBuilder;
import org.openscience.cdk.tools.ILoggingTool;
import org.openscience.cdk.tools.LoggingToolFactory;
/**
* Debugging data class.
*
* @author egonw
* @cdk.module datadebug
* @cdk.githash
*/
public class DebugAtomContainerSet extends AtomContainerSet implements IAtomContainerSet {
private static final long serialVersionUID = -8358480615782437454L;
ILoggingTool logger = LoggingToolFactory.createLoggingTool(DebugAtomContainerSet.class);
/** {@inheritDoc} */
@Override
public void addListener(IChemObjectListener col) {
logger.debug("Adding listener: ", col);
super.addListener(col);
}
/** {@inheritDoc} */
@Override
public int getListenerCount() {
logger.debug("Getting listener count: ", super.getListenerCount());
return super.getListenerCount();
}
/** {@inheritDoc} */
@Override
public void removeListener(IChemObjectListener col) {
logger.debug("Removing listener: ", col);
super.removeListener(col);
}
/** {@inheritDoc} */
@Override
public void notifyChanged() {
logger.debug("Notifying changed");
super.notifyChanged();
}
/** {@inheritDoc} */
@Override
public void notifyChanged(IChemObjectChangeEvent evt) {
logger.debug("Notifying changed event: ", evt);
super.notifyChanged(evt);
}
/** {@inheritDoc} */
@Override
public void setProperty(Object description, Object property) {
logger.debug("Setting property: ", description + "=" + property);
super.setProperty(description, property);
}
/** {@inheritDoc} */
@Override
public void removeProperty(Object description) {
logger.debug("Removing property: ", description);
super.removeProperty(description);
}
/** {@inheritDoc} */
@Override
public T getProperty(Object description) {
logger.debug("Getting property: ", description + "=" + super.getProperty(description));
return super.getProperty(description);
}
/** {@inheritDoc} */
@Override
public Map