|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjecttoxTree.tree.rules.smarts.Convertor
public class Convertor
Abstract class that provides convertor procedures to convert CDK classes to JOELib classes and visa versa. Fixed from CDK cConvertor class.
JOELib is a Java implementation of the OELib classes and can be found at: http://joelib.sourceforge.net/.
Field Summary | |
---|---|
static int |
COORDINATES_2D
|
static int |
COORDINATES_3D
|
Constructor Summary | |
---|---|
Convertor()
|
Method Summary | |
---|---|
static joelib.molecule.JOEAtom |
convert(org.openscience.cdk.interfaces.IAtom atom)
Converts an org.openscience.cdk.Atom class into a joelib.molecule.JOEAtom class. |
static joelib.molecule.JOEAtom |
convert(org.openscience.cdk.interfaces.IAtom atom,
int coordType)
Converts an org.openscience.cdk.Atom class into a joelib.molecule.JOEAtom class. |
static joelib.molecule.JOEBond |
convert(org.openscience.cdk.interfaces.IBond bond)
Converts an org.openscience.cdk.Bond class into a joelib.molecule.JOEBond class. |
static joelib.molecule.JOEMol |
convert(org.openscience.cdk.interfaces.IMolecule mol)
Converts an org.openscience.cdk.Molecule class into a joelib.molecule.JOEMol class. |
static joelib.molecule.JOEMol |
convert(org.openscience.cdk.interfaces.IMolecule mol,
int coordType)
Converts an org.openscience.cdk.Molecule class into a joelib.molecule.JOEMol class. |
static org.openscience.cdk.interfaces.IAtom |
convert(joelib.molecule.JOEAtom atom)
Converts an joelib.molecule.JOEAtom class into a org.openscience.cdk.Atom class. |
static org.openscience.cdk.interfaces.IBond |
convert(joelib.molecule.JOEBond bond)
Converts an joelib.molecule.JOEBond class into a org.openscience.cdk.Bond class. |
static org.openscience.cdk.interfaces.IMolecule |
convert(joelib.molecule.JOEMol mol)
Converts an joelib.molecule.JOEMol class into a org.openscience.cdk.Molecule class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int COORDINATES_3D
public static final int COORDINATES_2D
Constructor Detail |
---|
public Convertor()
Method Detail |
---|
public static joelib.molecule.JOEAtom convert(org.openscience.cdk.interfaces.IAtom atom)
atom
- class to be converted
public static joelib.molecule.JOEAtom convert(org.openscience.cdk.interfaces.IAtom atom, int coordType)
atom
- CDK atom to be convertedcoordType
- coordinates to use. if -1 this converter uses the available coordinates.
If 3D and 2D coordinates are available, the 3D coordinates are used
COORDINATES_3D
,
COORDINATES_2D
public static org.openscience.cdk.interfaces.IAtom convert(joelib.molecule.JOEAtom atom)
atom
- class to be converted
public static joelib.molecule.JOEBond convert(org.openscience.cdk.interfaces.IBond bond)
bond
- class to be converted
public static org.openscience.cdk.interfaces.IBond convert(joelib.molecule.JOEBond bond)
bond
- class to be converted
public static joelib.molecule.JOEMol convert(org.openscience.cdk.interfaces.IMolecule mol)
mol
- molecule to be converted
COORDINATES_3D
,
COORDINATES_2D
public static joelib.molecule.JOEMol convert(org.openscience.cdk.interfaces.IMolecule mol, int coordType)
mol
- class to be convertedcoordType
- coordinates to use. if -1 this converter uses the available coordinates.
If 3D and 2D coordinates are available, the 3D coordinates are used
COORDINATES_3D
,
COORDINATES_2D
public static org.openscience.cdk.interfaces.IMolecule convert(joelib.molecule.JOEMol mol)
mol
- class to be converted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |