public class SmilesValencyChecker extends Object implements IValencyChecker, IDeduceBondOrderTool
Modifier and Type | Field and Description |
---|---|
protected static ILoggingTool |
logger |
protected AtomTypeFactory |
structgenATF |
Constructor and Description |
---|
SmilesValencyChecker() |
SmilesValencyChecker(String atomTypeList) |
Modifier and Type | Method and Description |
---|---|
boolean |
allSaturated(IAtomContainer ac) |
int |
calculateNumberOfImplicitHydrogens(IAtom atom,
double bondOrderSum,
IBond.Order maxBondOrder,
int neighbourCount)
Calculates the number of hydrogens that can be added to the given atom to fullfil
the atom's valency.
|
int |
calculateNumberOfImplicitHydrogens(IAtom atom,
IAtomContainer container) |
boolean |
couldMatchAtomType(IAtomContainer container,
IAtom atom,
IAtomType type)
Determines if the atom can be of type AtomType.
|
boolean |
couldMatchAtomType(IAtom atom,
double bondOrderSum,
IBond.Order maxBondOrder,
IAtomType type)
Determines if the atom can be of type AtomType.
|
protected AtomTypeFactory |
getAtomTypeFactory(IChemObjectBuilder builder) |
boolean |
isSaturated(IAtomContainer container)
Determines of all atoms on the AtomContainer are saturated.
|
boolean |
isSaturated(IAtom atom,
IAtomContainer container)
Checks whether an Atom is saturated by comparing it with known AtomTypes.
|
boolean |
isSaturated(IBond bond,
IAtomContainer atomContainer)
Returns whether a bond is saturated.
|
boolean |
isUnsaturated(IBond bond,
IAtomContainer atomContainer)
Returns whether a bond is unsaturated.
|
void |
saturate(IAtomContainer atomContainer)
Saturates a molecule by setting appropriate bond orders.
|
boolean |
saturate(IBond[] bonds,
IAtomContainer atomContainer)
Saturates a set of Bonds in an AtomContainer.
|
boolean |
saturateByIncreasingBondOrder(IBond bond,
IAtomContainer atomContainer)
Tries to saturate a bond by increasing its bond orders by 1.0.
|
boolean |
unsaturateByDecreasingBondOrder(IBond bond) |
protected AtomTypeFactory structgenATF
protected static ILoggingTool logger
public SmilesValencyChecker()
public SmilesValencyChecker(String atomTypeList)
public void saturate(IAtomContainer atomContainer) throws CDKException
saturate
in interface IDeduceBondOrderTool
CDKException
public boolean saturate(IBond[] bonds, IAtomContainer atomContainer) throws CDKException
CDKException
public boolean unsaturateByDecreasingBondOrder(IBond bond)
public boolean isUnsaturated(IBond bond, IAtomContainer atomContainer) throws CDKException
CDKException
public boolean saturateByIncreasingBondOrder(IBond bond, IAtomContainer atomContainer) throws CDKException
CDKException
public boolean isSaturated(IBond bond, IAtomContainer atomContainer) throws CDKException
CDKException
public boolean isSaturated(IAtomContainer container) throws CDKException
isSaturated
in interface IValencyChecker
CDKException
public boolean allSaturated(IAtomContainer ac) throws CDKException
CDKException
public boolean couldMatchAtomType(IAtom atom, double bondOrderSum, IBond.Order maxBondOrder, IAtomType type)
public int calculateNumberOfImplicitHydrogens(IAtom atom, double bondOrderSum, IBond.Order maxBondOrder, int neighbourCount) throws CDKException
CDKException
public boolean isSaturated(IAtom atom, IAtomContainer container) throws CDKException
isSaturated
in interface IValencyChecker
CDKException
public int calculateNumberOfImplicitHydrogens(IAtom atom, IAtomContainer container) throws CDKException
CDKException
protected AtomTypeFactory getAtomTypeFactory(IChemObjectBuilder builder) throws CDKException
CDKException
public boolean couldMatchAtomType(IAtomContainer container, IAtom atom, IAtomType type)
Copyright © 2021. All rights reserved.