chemaxon.checkers
Class BondLengthChecker

java.lang.Object
  extended by chemaxon.checkers.AbstractStructureChecker
      extended by chemaxon.checkers.ComponentChecker<MolBond>
          extended by chemaxon.checkers.BondChecker
              extended by chemaxon.checkers.BondLengthChecker
All Implemented Interfaces:
StructureChecker, chemaxon.license.Licensable

public class BondLengthChecker
extends BondChecker

A descendant of BondChecker for detecting bonds with incorrect length.

Since:
Marvin 5.3
Version:
5.3
Author:
Attila Szabo

Field Summary
 
Fields inherited from class chemaxon.checkers.AbstractStructureChecker
errorType
 
Constructor Summary
BondLengthChecker()
          Default constructor
 
Method Summary
protected  boolean check(Molecule molecule, MolBond bond)
          Checks if the component with index i has problem
protected  StructureCheckerResult check1(Molecule molecule)
          Iterates through the components and checks every component.
 
Methods inherited from class chemaxon.checkers.BondChecker
createResult, getComponent, getComponentCount
 
Methods inherited from class chemaxon.checkers.ComponentChecker
initialize
 
Methods inherited from class chemaxon.checkers.AbstractStructureChecker
check, getErrorDescription, getHelpText, getIcon, getLocalMenuName, getName, isLicensed, setHelpText, setIcon, setLicenseEnvironment, setLocalMenuName, setMoreErrorMessage, setName, setNoErrorMessage, setOneErrorMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BondLengthChecker

public BondLengthChecker()
Default constructor

Method Detail

check1

protected StructureCheckerResult check1(Molecule molecule)
Description copied from class: ComponentChecker
Iterates through the components and checks every component. If a component has error it is added to a List. After the iteration if no problem occurred the result is null otherwise the method creates a StructureCheckerResult containing the indexes of the problematic components.

Overrides:
check1 in class ComponentChecker<MolBond>
Returns:
a StructureCheckerResult which contains all the indices of the problematic components

check

protected boolean check(Molecule molecule,
                        MolBond bond)
Description copied from class: ComponentChecker
Checks if the component with index i has problem

Specified by:
check in class ComponentChecker<MolBond>
Parameters:
molecule - is a Molecule instance
bond - the current component to check
Returns:
true if the component has problem, false otherwise