public class OverlappingAtomsChecker extends AtomChecker
MolBond.CCLENGTH
).MolBond.CCLENGTH
errorType, propertyChangeSupport
PROPERTY_KEY_VALID
Constructor and Description |
---|
OverlappingAtomsChecker()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
check(Molecule molecule,
MolAtom atom)
Examines if an atom is closer to another than the given distance limit.
|
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<MolAtom>
molecule
- the Molecule
instance to be checked for problemsStructureCheckerResult
which contains all the indices of the problematic componentsprotected boolean check(Molecule molecule, MolAtom atom)
check
in class ComponentChecker<MolAtom>
atom
- the index of atom 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