|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.checkers.AbstractStructureChecker
chemaxon.checkers.ComponentChecker<MolBond>
chemaxon.checkers.BondChecker
chemaxon.checkers.BondLengthChecker
public class BondLengthChecker
A descendant of BondChecker detecting bonds with unpreferred lengths in 2D molecule
layouts.
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_KEY_DETECT_TOO_LONG_BONDS
This public constant String represents the name of the property which is
responsible for searching too long bonds in the molecule |
static java.lang.String |
PROPERTY_KEY_DETECT_TOO_SHORT_BONDS
This public constant String represents the name of the property which is
responsible for searching too short bonds in the molecule |
static java.lang.String |
PROPERTY_KEY_LONG
This public constant String represents the name of the configuration file property which is
responsible for searching too long bonds in the molecule |
static java.lang.String |
PROPERTY_KEY_SHORT
This public constant String represents the name of the configuration file property which is
responsible for searching too short bonds in the molecule |
| Fields inherited from class chemaxon.checkers.AbstractStructureChecker |
|---|
errorType, propertyChangeSupport |
| Fields inherited from interface chemaxon.checkers.StructureChecker |
|---|
PROPERTY_KEY_VALID |
| Constructor Summary | |
|---|---|
BondLengthChecker()
Default constructor |
|
BondLengthChecker(java.util.Map<java.lang.String,java.lang.String> params)
Parameterized 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. |
boolean |
isDetectTooLongBonds()
|
boolean |
isDetectTooShortBonds()
|
void |
setDetectTooLongBonds(boolean detectTooLongBonds)
Sets if the checker should check for too long bonds or not |
void |
setDetectTooShortBonds(boolean detectTooShortBonds)
Sets if the checker should check for too short bonds or not |
| Methods inherited from class chemaxon.checkers.BondChecker |
|---|
createResult, getComponent, getComponentCount |
| Methods inherited from class chemaxon.checkers.ComponentChecker |
|---|
initialize |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_KEY_SHORT
String represents the name of the configuration file property which is
responsible for searching too short bonds in the molecule
public static final java.lang.String PROPERTY_KEY_LONG
String represents the name of the configuration file property which is
responsible for searching too long bonds in the molecule
public static final java.lang.String PROPERTY_KEY_DETECT_TOO_LONG_BONDS
String represents the name of the property which is
responsible for searching too long bonds in the molecule
public static final java.lang.String PROPERTY_KEY_DETECT_TOO_SHORT_BONDS
String represents the name of the property which is
responsible for searching too short bonds in the molecule
| Constructor Detail |
|---|
public BondLengthChecker()
public BondLengthChecker(java.util.Map<java.lang.String,java.lang.String> params)
params - a Map instance which contains String pairs. Key is the name of the
parameter.| Method Detail |
|---|
public void setDetectTooLongBonds(boolean detectTooLongBonds)
detectTooLongBonds - is a boolean instancepublic void setDetectTooShortBonds(boolean detectTooShortBonds)
detectTooShortBonds - is a boolean instancepublic boolean isDetectTooLongBonds()
public boolean isDetectTooShortBonds()
protected StructureCheckerResult check1(Molecule molecule)
ComponentCheckerList. 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<MolBond>molecule - the Molecule instance to be checked for problems
StructureCheckerResult which contains all the indices of the problematic components
protected boolean check(Molecule molecule,
MolBond bond)
ComponentChecker
check in class ComponentChecker<MolBond>molecule - is a Molecule instancebond - the current component to check
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||