Package org.openscience.cdk.tools
Class AtomTypeAwareSaturationChecker
java.lang.Object
org.openscience.cdk.tools.AtomTypeAwareSaturationChecker
- All Implemented Interfaces:
IDeduceBondOrderTool,IValencyChecker
@Deprecated
public class AtomTypeAwareSaturationChecker
extends Object
implements IValencyChecker, IDeduceBondOrderTool
Deprecated.
This class tries to figure out the bond order of the bonds that has the flag
The code is written with the assumption that the properties of the atoms in the molecule has configured with the help of
If it can't find a solution where all atoms in the molecule are saturated, it gives a "best guess", i.e. the solution with most saturated atoms. If not all atoms are saturated then it will be noticed as a warning in the log.
SINGLE_OR_DOUBLE raised (i.e. set to true).The code is written with the assumption that the properties of the atoms in the molecule has configured with the help of
AtomContainerManipulator.
This class uses the SaturationChecker internally.If it can't find a solution where all atoms in the molecule are saturated, it gives a "best guess", i.e. the solution with most saturated atoms. If not all atoms are saturated then it will be noticed as a warning in the log.
- Author:
- Klas Jönsson, Egon Willighagen
- Keywords:
- bond order
- Created on:
- 2012-04-13
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbondOrderCanBeIncreased(IBond bond, IAtomContainer atomContainer) Deprecated.Check if the bond order can be increased.voiddecideBondOrder(IAtomContainer atomContainer) Deprecated.This method decides the bond order on bonds that has theSINGLE_OR_DOUBLE-flag raised.voiddecideBondOrder(IAtomContainer atomContainer, boolean atomsSaturated) Deprecated.This method decides the bond order on bonds that has theSINGLE_OR_DOUBLE-flag raised.doublegetMaxNoOfBonds(IAtom atom) Deprecated.This method calculates the number of bonds that anIAtomcan have.booleanisSaturated(IAtomContainer container) Deprecated.booleanisSaturated(IAtom atom, IAtomContainer container) Deprecated.voidsaturate(IAtomContainer container) Deprecated.
-
Constructor Details
-
AtomTypeAwareSaturationChecker
public AtomTypeAwareSaturationChecker()Deprecated.Constructs anAtomTypeAwareSaturationCheckerchecker.
-
-
Method Details
-
decideBondOrder
public void decideBondOrder(IAtomContainer atomContainer, boolean atomsSaturated) throws CDKException Deprecated.This method decides the bond order on bonds that has theSINGLE_OR_DOUBLE-flag raised.- Parameters:
atomContainer- The molecule to investigateatomsSaturated- Set to true if you want to make sure that all atoms are saturated.- Throws:
CDKException
-
decideBondOrder
Deprecated.This method decides the bond order on bonds that has theSINGLE_OR_DOUBLE-flag raised.- Parameters:
atomContainer- The molecule to investigate.- Throws:
CDKException
-
bondOrderCanBeIncreased
public boolean bondOrderCanBeIncreased(IBond bond, IAtomContainer atomContainer) throws CDKException Deprecated.Check if the bond order can be increased. This method assumes that the bond is between only two atoms.- Parameters:
bond- The bond to checkatomContainer- TheIAtomContainerthat the bond belongs to- Returns:
- True if it is possibly to increase the bond order
- Throws:
CDKException
-
getMaxNoOfBonds
Deprecated.This method calculates the number of bonds that anIAtomcan have.- Parameters:
atom- TheIAtomto be investigated- Returns:
- The max number of bonds the
IAtomcan have - Throws:
CDKException- when the atom's valency is not set
-
saturate
Deprecated.- Specified by:
saturatein interfaceIDeduceBondOrderTool- Throws:
CDKException
-
isSaturated
Deprecated.- Specified by:
isSaturatedin interfaceIValencyChecker- Throws:
CDKException
-
isSaturated
Deprecated.- Specified by:
isSaturatedin interfaceIValencyChecker- Throws:
CDKException
-
Kekulization