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

DebugChemObjectBuilder.java
/* $Revision$ $Author$ $Date$
 *
 * 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 org.openscience.cdk.interfaces.*;
import org.openscience.cdk.interfaces.IBond.Order;

import javax.vecmath.Point2d;
import javax.vecmath.Point3d;

/**
 * A helper class to instantiate a IChemObject for the debug implementation.
 *
 * @author        egonw
 * @cdk.module    datadebug
 * @cdk.githash
 */
00036 public class DebugChemObjectBuilder implements IChemObjectBuilder {

      private static DebugChemObjectBuilder instance = null;
      
      private DebugChemObjectBuilder() {}

      public static DebugChemObjectBuilder getInstance() {
            if (instance == null) {
                  instance = new DebugChemObjectBuilder();
            }
            return instance;
      }
      
00049       public IAminoAcid newAminoAcid() {
            return new DebugAminoAcid();
      }
      
00053       public IAtom newAtom() {
            return new DebugAtom();
      }
      
00057     public IAtom newAtom(String elementSymbol) {
      return new DebugAtom(elementSymbol);
    }
    
00061     public IAtom newAtom(String elementSymbol, javax.vecmath.Point2d point2d) {
      return new DebugAtom(elementSymbol, point2d);
    }

00065     public IAtom newAtom(String elementSymbol, javax.vecmath.Point3d point3d) {
      return new DebugAtom(elementSymbol, point3d);
    }
            
00069       public IAtomContainer newAtomContainer() {
            return new DebugAtomContainer();
      }
    
00073       public IAtomContainer newAtomContainer(int atomCount, int electronContainerCount, int lonePairCount, int singleElectronCount) {
            return new DebugAtomContainer(atomCount, electronContainerCount, lonePairCount, singleElectronCount);
      }
    
00077       public IAtomContainer newAtomContainer(IAtomContainer container) {
            return new DebugAtomContainer(container);
      }
      
00081     public IAtomParity newAtomParity(
            IAtom centralAtom, 
            IAtom first, 
            IAtom second, 
            IAtom third, 
            IAtom fourth,
            int parity) {
      return new DebugAtomParity(centralAtom, first, second, third, fourth, parity);
    }

00091       public IAtomType newAtomType(String elementSymbol) {
            return new DebugAtomType(elementSymbol);
      }

00095       public IAtomType newAtomType(String identifier, String elementSymbol) {
            return new DebugAtomType(identifier, elementSymbol);
      }

00099       public IBioPolymer newBioPolymer(){
            return new DebugBioPolymer();
      }
      
00103       public IPDBAtom newPDBAtom(IElement element) {
      return new DebugPDBAtom(element);
    }
      
00107       public IPDBAtom newPDBAtom(String elementSymbol) {
      return new DebugPDBAtom(elementSymbol);
    }
    
    public IPDBAtom newPDBAtom(String elementSymbol, javax.vecmath.Point3d point3d) {
      return new DebugPDBAtom(elementSymbol, point3d);
    }
    
00115     public IPDBStructure newPDBStructure() {
      return new DebugPDBStructure();
    }
    
00119       public IPDBPolymer newPDBPolymer(){
            return new DebugPDBPolymer();
      }
      
00123       public IPDBMonomer newPDBMonomer(){
            return new DebugPDBMonomer();
      }
      
      public IPDBStructure newStructure(){
            return new DebugPDBStructure();
      }

00131       public IBond newBond() {
            return new DebugBond();
      }
      
00135       public IBond newBond(IAtom atom1, IAtom atom2) {
            return new DebugBond(atom1, atom2);
      }
      
00139       public IBond newBond(IAtom atom1, IAtom atom2, Order order) {
            return new DebugBond(atom1, atom2, order);
      }
      
00143       public IBond newBond(IAtom atom1, IAtom atom2, Order order, int stereo) {
            return new DebugBond(atom1, atom2, order, stereo);
      }

00147     public IBond newBond(IAtom[] atoms) {
        return new DebugBond(atoms);
    }

00151     public IBond newBond(IAtom[] atoms, Order order) {
        return new DebugBond(atoms, order);
    }

00155     public IChemFile newChemFile() {
            return new DebugChemFile();
      }

00159       public IChemModel newChemModel() {
            return new DebugChemModel();
      }
      
00163       public IChemObject newChemObject() {
            return new DebugChemObject();
      }
      
00167       public IChemSequence newChemSequence() {
            return new DebugChemSequence();   
      }
      
00171     public ICrystal newCrystal() {
      return new DebugCrystal();
    }
    
00175     public ICrystal newCrystal(IAtomContainer container) {
      return new DebugCrystal(container);
    }
    
00179     public IElectronContainer newElectronContainer() {
      return new DebugElectronContainer();
    }
    
00183     public IElement newElement() {
      return new DebugElement();
    }

00187     public IElement newElement(String symbol) {
      return new DebugElement(symbol);
    }

00191     public IElement newElement(String symbol, int atomicNumber) {
      return new DebugElement(symbol, atomicNumber);
    }

00195       public IIsotope newIsotope(String elementSymbol) {
            return new DebugIsotope(elementSymbol);
      }
      
00199       public IIsotope newIsotope(int atomicNumber, String elementSymbol, 
                  int massNumber, double exactMass, double abundance) {
            return new DebugIsotope(atomicNumber, elementSymbol, massNumber, exactMass, abundance);
      }

00204       public IIsotope newIsotope(int atomicNumber, String elementSymbol, 
                  double exactMass, double abundance) {
            return new DebugIsotope(atomicNumber, elementSymbol, exactMass, abundance);
      }

00209       public IIsotope newIsotope(String elementSymbol, int massNumber) {
            return new DebugIsotope(elementSymbol, massNumber);
      }

00213     public ILonePair newLonePair() {
      return new DebugLonePair();
    }

00217     public ILonePair newLonePair(IAtom atom) {
      return new DebugLonePair(atom);
    }

00221     public IMapping newMapping(IChemObject objectOne, IChemObject objectTwo) {
            return new DebugMapping(objectOne, objectTwo);
      }
    
00225       public IMolecule newMolecule() {
            return new DebugMolecule();
      }

00229       public IMolecule newMolecule(int atomCount, int electronContainerCount, int lonePairCount, int singleElectronCount) {
            return new DebugMolecule(atomCount, electronContainerCount, lonePairCount, singleElectronCount);
      }

00233       public IMolecule newMolecule(IAtomContainer container) {
            return new DebugMolecule(container);
      }

00237       public IMonomer newMonomer () {
            return new DebugMonomer();
      }
      
00241       public IPolymer newPolymer() {
            return new DebugPolymer();
      }

00245     public IReaction newReaction() {
      return new DebugReaction();   
    }
      
00249       public IRing newRing() {
            return new DebugRing();
      }
      
00253       public IRing newRing(IAtomContainer container) {
            return new DebugRing(container);
      }
      
00257       public IRing newRing(int ringSize, String elementSymbol) {
            return new DebugRing(ringSize, elementSymbol);
      }
      
00261       public IRing newRing(int ringSize) {
            return new DebugRing(ringSize);
      }

00265       public IRingSet newRingSet() {
            return new DebugRingSet();
      }

00269       public IAtomContainerSet newAtomContainerSet() {
            return new DebugAtomContainerSet();
      }

00273       public IMoleculeSet newMoleculeSet() {
            return new DebugMoleculeSet();
      }

00277       public IReactionSet newReactionSet() {
            return new DebugReactionSet();
      }

00281       public IReactionScheme newReactionScheme() {
            return new DebugReactionScheme();
      }
      
00285     public ISingleElectron newSingleElectron() {
      return new DebugSingleElectron();
    }
    
00289     public ISingleElectron newSingleElectron(IAtom atom) {
      return new DebugSingleElectron(atom);   
    }

00293       public IStrand newStrand() {
            return new DebugStrand();
      }

00297       public IPseudoAtom newPseudoAtom() {
            return new DebugPseudoAtom();
      }

00301       public IPseudoAtom newPseudoAtom(String label) {
            return new DebugPseudoAtom(label);
      }

      public IPseudoAtom newPseudoAtom(IAtom atom) {
            return new DebugPseudoAtom(atom);
      }

      public IPseudoAtom newPseudoAtom(String label, Point3d point3d) {
            return new DebugPseudoAtom(label, point3d);
      }

      public IPseudoAtom newPseudoAtom(String label, Point2d point2d) {
            return new DebugPseudoAtom(label, point2d);
      }

00317       public IAtom newAtom(IElement element) {
            return new DebugAtom(element);
      }

00321       public IAtomType newAtomType(IElement element) {
            return new DebugAtomType(element);
      }

00325       public IChemObject newChemObject(IChemObject object) {
            return new DebugChemObject(object);
      }

00329       public IElement newElement(IElement element) {
            return new DebugElement(element);
      }

00333       public IIsotope newIsotope(IElement element) {
            return new DebugIsotope(element);
      }

00337       public IPseudoAtom newPseudoAtom(IElement element) {
            return new DebugPseudoAtom(element);
      }

00341       public IFragmentAtom newFragmentAtom() {
            return new DebugFragmentAtom();
      }

      public IAdductFormula newAdductFormula() {
            return new DebugAdductFormula();
    }

      public IAdductFormula newAdductFormula(IMolecularFormula formula) {
          return new DebugAdductFormula(formula);
    }

      public IMolecularFormula newMolecularFormula() {
          return new DebugMolecularFormula();
    }

      public IMolecularFormulaSet newMolecularFormulaSet() {
          return new DebugMolecularFormulaSet();
    }

      public IMolecularFormulaSet newMolecularFormulaSet(IMolecularFormula formula) {
          return new DebugMolecularFormulaSet(formula);
    }
}



Generated by  Doxygen 1.6.0   Back to index