public class OverlappingBondsChecker extends BondChecker
MolBond.CCLENGTH
).
Here distance means the distance of two line segments in euclidean space.MolBond.CCLENGTH
errorType, propertyChangeSupport
PROPERTY_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, getComponentCount
initialize
addPropertyChangeListener, 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, toString
protected StructureCheckerResult check1(Molecule molecule)
ComponentChecker
List
. 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)
AbstractStructureChecker
expandMolecule
in class AbstractStructureChecker
molecule
- the molecule to check