Package org.openscience.cdk.interfaces

Examples of org.openscience.cdk.interfaces.IMapping


    IAtom endAtom = null;
    if(closestAtom != null && closestAtom.getPoint2d().distance(worldCoord) < dH)
      endAtom = chemModelRelay.getClosestAtom(worldCoord);
    if(endAtom!=null && startAtom!=null){
      IMapping mapping = startAtom.getBuilder().newInstance(IMapping.class,startAtom, endAtom);
      // ok, now figure out if they are in one reaction
      IReaction reaction1 = ChemModelManipulator.getRelevantReaction(chemModelRelay.getIChemModel(), startAtom);
      IReaction reaction2 = ChemModelManipulator.getRelevantReaction(chemModelRelay.getIChemModel(), endAtom);
      if (reaction1 != null && reaction2 != null && reaction1 == reaction2)
      {
View Full Code Here

TOP

Related Classes of org.openscience.cdk.interfaces.IMapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.