Examples of AromaticityCalculator


Examples of org.openscience.cdk.aromaticity.AromaticityCalculator

            }
        }
    }

    public static void checkAromaticity(IMolecule theMolecule) throws CDKException {
        AromaticityCalculator theCalculator = new org.openscience.cdk.aromaticity.AromaticityCalculator();
        IRingSet theRingSet = new org.openscience.cdk.RingSet();
        IRingSet theModifiedRingSet = new org.openscience.cdk.RingSet();

        theRingSet = ringPerception(theMolecule);

        for (int i = 0, s = theRingSet.getAtomContainerCount(); i < s; i++) {
            IRing theRing = new org.openscience.cdk.Ring();

            theRing.add(theRingSet.getAtomContainer(i));

            if (theCalculator.isAromatic(theRing, theMolecule)) {
                theModifiedRingSet.addAtomContainer(theRing);
            }
        }

        if (!theModifiedRingSet.isEmpty()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.