|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.checkers.AbstractStructureChecker
chemaxon.checkers.ComponentChecker<E>
E - is the type of the component (for example: MolAtom, MolBond, etc...)public abstract class ComponentChecker<E>
Descendants of the abstract ComponentChecker class implement detect problems related to disconnected components (fragments).
| Field Summary |
|---|
| Fields inherited from class chemaxon.checkers.AbstractStructureChecker |
|---|
errorType, propertyChangeSupport |
| Fields inherited from interface chemaxon.checkers.StructureChecker |
|---|
PROPERTY_KEY_VALID |
| Constructor Summary | |
|---|---|
ComponentChecker(StructureCheckerErrorType errorType)
Constructor to create a Structure checker instance with the given errorType. |
|
| Method Summary | |
|---|---|
protected abstract boolean |
check(Molecule molecule,
E component)
Checks if the component with index i has problem |
protected StructureCheckerResult |
check1(Molecule molecule)
Iterates through the components and checks every component. |
protected abstract StructureCheckerResult |
createResult(Molecule molecule,
java.util.List<E> componentList)
Creates a StructureCheckerResult from a List containing the components. |
protected abstract E |
getComponent(Molecule molecule,
int i)
Gets the component from the molecule with index i. |
protected abstract int |
getComponentCount(Molecule molecule)
Gets the number of the components in the molecule |
protected void |
initialize()
Empty default implementation |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentChecker(StructureCheckerErrorType errorType)
errorType - element of StructureCheckerErrorType| Method Detail |
|---|
protected abstract int getComponentCount(Molecule molecule)
molecule - the molecule to check
protected abstract E getComponent(Molecule molecule,
int i)
molecule - the molecule to checki - the index of the component
protected void initialize()
protected StructureCheckerResult check1(Molecule molecule)
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 AbstractStructureCheckermolecule - the Molecule instance to be checked for problems
StructureCheckerResult which contains all the indices of the problematic components
protected abstract StructureCheckerResult createResult(Molecule molecule,
java.util.List<E> componentList)
StructureCheckerResult from a List containing the components.
molecule - is a Molecule instancecomponentList - is an instance of List containing the problematic components
StructureCheckerResult containing all problematic component indices
protected abstract boolean check(Molecule molecule,
E component)
molecule - is a Molecule instancecomponent - the current component to check
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||