Class OverlappingBondsChecker

  • All Implemented Interfaces:
    StructureChecker, chemaxon.license.Licensable, PropertyChangeListener, Cloneable, EventListener

    @PublicAPI
    public class OverlappingBondsChecker
    extends BondChecker
    OverlappingBondsChecker detects bonds that are too close to each other.

    This checker checks two dimensional structures only.

    Two bonds considered as overlapping when they crossing each other, or their distance is smaller then the 80% of the standard Chemaxon bond length ( MolBond.CCLENGTH ). Here distance means the distance of two line segments in euclidean space.
    Since:
    Marvin 5.3
    See Also:
    MolBond.CCLENGTH
    • Constructor Detail

      • OverlappingBondsChecker

        public OverlappingBondsChecker()
        Default constructor
    • Method Detail

      • check

        protected boolean check​(Molecule molecule,
                                MolBond bond)
        Detects bond of the molecule is crossing another bond or closer than the limit distance.
        Specified by:
        check in class ComponentChecker<MolBond>
        Parameters:
        bond - the index of the bond (MolBond instance) in the molecule to check
        molecule - is a Molecule instance
        Returns:
        true if the molecule contains crossing bonds, false otherwise