public class RingStrainErrorChecker extends AbstractStructureChecker
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_KEY_DETECT_CUMULATED_DOUBLE_BONDS
Property key detect cumulated double bonds
|
static String |
PROPERTY_KEY_DETECT_TRANS_DOUBLE_BONDS
Property key detect trans double bonds
|
static String |
PROPERTY_KEY_DETECT_TRIPLE_BONDS
Property key detect triple bonds
|
errorType, propertyChangeSupport
PROPERTY_KEY_VALID
Constructor and Description |
---|
RingStrainErrorChecker()
Default constructor
|
RingStrainErrorChecker(Map<String,String> params)
Parameterized constructor.
If params contains "transDoubleBond"/"cumulatedDoubleBond"/"tripelBond" key with value "true" then trans double bonds/cummulated double bonds/triple bonds will be checked. |
Modifier and Type | Method and Description |
---|---|
protected StructureCheckerResult |
check1(Molecule molecule)
This method contains the current checking mechanism.
|
boolean |
isCumulatedDoubleBond()
Returns the detectCummulatedDoubleBonds
|
boolean |
isDetectCumulatedDoubleBonds()
Returns the detectCummulatedDoubleBonds
|
boolean |
isDetectTransDoubleBonds()
Returns the detectTransDoubleBonds
|
boolean |
isDetectTripleBonds()
Returns the detectTripleBonds
|
boolean |
isTransDoubleBond()
Returns the detectTransDoubleBonds
|
boolean |
isTripleBond()
Returns the detectTripleBonds
|
void |
setDetectCumulatedDoubleBonds(boolean detectCumulatedDoubleBonds)
Sets the detectCumulatedDoubleBonds property
|
void |
setDetectTransDoubleBonds(boolean detectTransDoubleBonds)
Sets the detectTransDoubleBonds
|
void |
setDetectTripleBonds(boolean detectTripleBonds)
Sets the detectTripleBonds property
|
addPropertyChangeListener, addPropertyChangeListener, check, clone, cloneItem, convertResult, equals, expandMolecule, 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
public static final String PROPERTY_KEY_DETECT_TRANS_DOUBLE_BONDS
public static final String PROPERTY_KEY_DETECT_CUMULATED_DOUBLE_BONDS
public static final String PROPERTY_KEY_DETECT_TRIPLE_BONDS
public RingStrainErrorChecker()
protected StructureCheckerResult check1(Molecule molecule)
AbstractStructureChecker
check1
in class AbstractStructureChecker
molecule
- the Molecule
instance to be checked for problemsStructureCheckerResult
which represents the problem or null
if no problem foundpublic boolean isDetectTransDoubleBonds()
public boolean isDetectCumulatedDoubleBonds()
public boolean isDetectTripleBonds()
public boolean isTransDoubleBond()
public boolean isCumulatedDoubleBond()
public boolean isTripleBond()
public void setDetectTransDoubleBonds(boolean detectTransDoubleBonds)
detectTransDoubleBonds
- is true if trans double bonds should be detected, false
otherwisepublic void setDetectCumulatedDoubleBonds(boolean detectCumulatedDoubleBonds)
detectCumulatedDoubleBonds
- is true if cumulated double bonds should be
detected, false otherwisepublic void setDetectTripleBonds(boolean detectTripleBonds)
detectTripleBonds
- is true if triple bonds should be detected, false otherwise