Package chemaxon.checkers
Class OverlappingAtomsChecker
java.lang.Object
chemaxon.checkers.AbstractStructureChecker
chemaxon.checkers.ComponentChecker<MolAtom>
chemaxon.checkers.AtomChecker
chemaxon.checkers.OverlappingAtomsChecker
- All Implemented Interfaces:
StructureChecker,chemaxon.license.Licensable,PropertyChangeListener,Cloneable,EventListener
OverlappingAtomsChecker detects atoms that are too close to each other.
This checker checks 2D structures only.
Two atoms considered as overlapping when their euclidean distance is less than the half of the Chemaxon standard bond length (
This checker checks 2D structures only.
Two atoms considered as overlapping when their euclidean distance is less than the half of the Chemaxon standard bond length (
MolBond.CCLENGTH ).- Since:
- Marvin 5.3
- See Also:
-
Field Summary
Fields inherited from class chemaxon.checkers.AbstractStructureChecker
errorType, propertyChangeSupportFields inherited from interface chemaxon.checkers.StructureChecker
PROPERTY_KEY_VALID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanChecks if the component with index i has problemprotected StructureCheckerResultIterates through the components and checks every component.protected MoleculeReturns the original molecule if no groups to expand, or the clone of the original molecule with expanded groups.Methods inherited from class chemaxon.checkers.AtomChecker
createResult, getComponent, getComponentCountMethods inherited from class chemaxon.checkers.ComponentChecker
initializeMethods inherited from class chemaxon.checkers.AbstractStructureChecker
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
-
Constructor Details
-
OverlappingAtomsChecker
public OverlappingAtomsChecker()
-
-
Method Details
-
check1
Description copied from class:ComponentCheckerIterates through the components and checks every component. If a component has error it is added to aList. After the iteration if no problem occurred the result is null otherwise the method creates aStructureCheckerResultcontaining the atoms and bonds of the problematic components.- Overrides:
check1in classComponentChecker<MolAtom>- Parameters:
molecule- theMoleculeinstance to be checked for problems- Returns:
- a
StructureCheckerResultwhich contains all the indices of the problematic components
-
check
Description copied from class:ComponentCheckerChecks if the component with index i has problem- Specified by:
checkin classComponentChecker<MolAtom>- Parameters:
molecule- is aMoleculeinstanceatom- the current component to check- Returns:
- true if the component has problem, false otherwise
-
expandMolecule
protected Molecule expandMolecule(Molecule molecule, Map<MolAtom, MolAtom> atomMap, Map<MolBond, MolBond> bondMap) Description copied from class:AbstractStructureCheckerReturns the original molecule if no groups to expand, or the clone of the original molecule with expanded groups.- Overrides:
expandMoleculein classAbstractStructureChecker- Parameters:
molecule- the molecule to check- Returns:
- the original molecule, or a clone with expanded sgroups
-