Examples of InChIGeneratorFactory


Examples of org.openscience.cdk.inchi.InChIGeneratorFactory

  private ConverterToInChI() {
    lock = new ReentrantLock();
    molCache = new CacheMap<String, IMolecule>(500);
    try {
      if(Oscar3Props.getInstance().useJNIInChI) {
        igf = new InChIGeneratorFactory();
      } else {
        igf = null;
      }
    } catch (Exception e) {
      //e.printStackTrace();
View Full Code Here

Examples of org.openscience.cdk.inchi.InChIGeneratorFactory

*/
public final class JNIInChIHandler implements InChIHandler {

    @Override public IAtomContainer parse(InChI inchi) throws CDKException {

        InChIGeneratorFactory igf = InChIGeneratorFactory.getInstance();
        InChIToStructure its = igf.getInChIToStructure(inchi.getInChI(),
                                                       DefaultChemObjectBuilder.getInstance());

        if (its.getReturnStatus() != INCHI_RET.OKAY && its.getReturnStatus() != INCHI_RET.WARNING)
            throw new CDKException("Could not parse InChI - " + its.getMessage());

View Full Code Here

Examples of org.openscience.cdk.inchi.InChIGeneratorFactory

        return its.getAtomContainer();
    }

    @Override public InChI generate(IAtomContainer container) throws CDKException {
        InChIGeneratorFactory igf = InChIGeneratorFactory.getInstance();
        InChIGenerator its = igf.getInChIGenerator(container);

        if (its.getReturnStatus() != INCHI_RET.OKAY && its.getReturnStatus() != INCHI_RET.WARNING)
            throw new CDKException("Could not generate InChI - " + its.getMessage());

        InChI inchi = new InChI();
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.