public class OverlappingBondsChecker extends BondChecker
MolBond.CCLENGTH ).
Here distance means the distance of two line segments in euclidean space.MolBond.CCLENGTHerrorType, propertyChangeSupportPROPERTY_KEY_VALID| Constructor and Description |
|---|
OverlappingBondsChecker()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
check(Molecule molecule,
MolBond bond)
Detects bond of the molecule is crossing another bond or closer than the limit distance.
|
protected StructureCheckerResult |
check1(Molecule molecule)
Iterates through the components and checks every component.
|
protected Molecule |
expandMolecule(Molecule molecule,
Map<MolAtom,MolAtom> atomMap,
Map<MolBond,MolBond> bondMap)
Returns the original molecule if no groups to expand,
or the clone of the original molecule with expanded groups.
|
createResult, getComponent, getComponentCountinitializeaddPropertyChangeListener, addPropertyChangeListener, check, clone, cloneItem, convertResult, equals, getDescription, getDescriptor, getEditorClassName, getErrorCode, getErrorDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getName, hashCode, isAvailable, isLicensed, isValid, propertyChange, removePropertyChangeListener, removePropertyChangeListener, setDescription, setHelpText, setIcon, setLicenseEnvironment, setLocalMenuName, setMoreErrorMessage, setName, setNoErrorMessage, setOneErrorMessage, toStringprotected StructureCheckerResult check1(Molecule molecule)
ComponentCheckerList. After the iteration if no problem occurred
the result is null otherwise the method creates a StructureCheckerResult
containing the atoms and bonds of the problematic components.check1 in class ComponentChecker<MolBond>molecule - the Molecule instance to be checked for problemsStructureCheckerResult which contains all the indices of the problematic componentsprotected boolean check(Molecule molecule, MolBond bond)
check in class ComponentChecker<MolBond>bond - the index of the bond (MolBond instance) in the molecule to checkmolecule - is a Molecule instanceprotected Molecule expandMolecule(Molecule molecule, Map<MolAtom,MolAtom> atomMap, Map<MolBond,MolBond> bondMap)
AbstractStructureCheckerexpandMolecule in class AbstractStructureCheckermolecule - the molecule to check