ambit2.core.smiles
Class SmilesParserWrapper

Package class diagram package SmilesParserWrapper
java.lang.Object
  extended by ambit2.core.smiles.SmilesParserWrapper
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class SmilesParserWrapper
extends java.lang.Object
implements java.beans.PropertyChangeListener


Nested Class Summary
static class SmilesParserWrapper.SMILES_PARSER
           
 
Field Summary
protected  OpenBabelShell babel
           
protected  org.openscience.cdk.smiles.SmilesParser cdkParser
           
protected  DeduceBondSystemTool dbt
           
protected  SmilesParserWrapper.SMILES_PARSER parser
           
protected static SmilesParserWrapper wrapper
           
 
Constructor Summary
protected SmilesParserWrapper()
           
protected SmilesParserWrapper(SmilesParserWrapper.SMILES_PARSER mode)
           
 
Method Summary
static SmilesParserWrapper getInstance()
           
static SmilesParserWrapper getInstance(SmilesParserWrapper.SMILES_PARSER mode)
           
 SmilesParserWrapper.SMILES_PARSER getParser()
           
 org.openscience.cdk.interfaces.IMolecule parseSmiles(java.lang.String smiles)
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void setParser(SmilesParserWrapper.SMILES_PARSER parser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wrapper

protected static SmilesParserWrapper wrapper

babel

protected OpenBabelShell babel

cdkParser

protected org.openscience.cdk.smiles.SmilesParser cdkParser

dbt

protected DeduceBondSystemTool dbt

parser

protected SmilesParserWrapper.SMILES_PARSER parser
Constructor Detail

SmilesParserWrapper

protected SmilesParserWrapper()

SmilesParserWrapper

protected SmilesParserWrapper(SmilesParserWrapper.SMILES_PARSER mode)
Method Detail

parseSmiles

public org.openscience.cdk.interfaces.IMolecule parseSmiles(java.lang.String smiles)
                                                     throws org.openscience.cdk.exception.InvalidSmilesException
Throws:
org.openscience.cdk.exception.InvalidSmilesException

getParser

public SmilesParserWrapper.SMILES_PARSER getParser()

setParser

public void setParser(SmilesParserWrapper.SMILES_PARSER parser)

getInstance

public static SmilesParserWrapper getInstance(SmilesParserWrapper.SMILES_PARSER mode)

getInstance

public static SmilesParserWrapper getInstance()

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener