Package chemaxon.checkers
Class RingStrainErrorChecker
java.lang.Object
chemaxon.checkers.AbstractStructureChecker
chemaxon.checkers.RingStrainErrorChecker
- All Implemented Interfaces:
StructureChecker
,chemaxon.license.Licensable
,PropertyChangeListener
,Cloneable
,EventListener
RingStrainErrorChecker detects triple bonds, trans or cumulated double bonds small rings
containing less than 8 atoms.
- Since:
- Marvin 5.4
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Property key detect cumulated double bondsstatic final String
Property key detect trans double bondsstatic final String
Property key detect triple bondsFields inherited from class chemaxon.checkers.AbstractStructureChecker
errorType, propertyChangeSupport
Fields inherited from interface chemaxon.checkers.StructureChecker
PROPERTY_KEY_VALID
-
Constructor Summary
ConstructorDescriptionDefault constructorRingStrainErrorChecker
(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. -
Method Summary
Modifier and TypeMethodDescriptionprotected StructureCheckerResult
This method contains the current checking mechanism.boolean
Returns the detectCummulatedDoubleBondsboolean
Returns the detectCummulatedDoubleBondsboolean
Returns the detectTransDoubleBondsboolean
Returns the detectTripleBondsboolean
Returns the detectTransDoubleBondsboolean
Returns the detectTripleBondsvoid
setDetectCumulatedDoubleBonds
(boolean detectCumulatedDoubleBonds) Sets the detectCumulatedDoubleBonds propertyvoid
setDetectTransDoubleBonds
(boolean detectTransDoubleBonds) Sets the detectTransDoubleBondsvoid
setDetectTripleBonds
(boolean detectTripleBonds) Sets the detectTripleBonds propertyMethods inherited from class chemaxon.checkers.AbstractStructureChecker
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
-
Field Details
-
PROPERTY_KEY_DETECT_TRANS_DOUBLE_BONDS
Property key detect trans double bonds- Since:
- 5.7
- See Also:
-
PROPERTY_KEY_DETECT_CUMULATED_DOUBLE_BONDS
Property key detect cumulated double bonds- Since:
- 5.7
- See Also:
-
PROPERTY_KEY_DETECT_TRIPLE_BONDS
Property key detect triple bonds- See Also:
-
-
Constructor Details
-
RingStrainErrorChecker
public RingStrainErrorChecker()Default constructor -
RingStrainErrorChecker
Parameterized constructor.
If params contains "transDoubleBond"/"cumulatedDoubleBond"/"tripelBond" key with value "true" then trans double bonds/cummulated double bonds/triple bonds will be checked.
-
-
Method Details
-
check1
Description copied from class:AbstractStructureChecker
This method contains the current checking mechanism.- Specified by:
check1
in classAbstractStructureChecker
- Parameters:
molecule
- theMolecule
instance to be checked for problems- Returns:
- a
StructureCheckerResult
which represents the problem or null if no problem found
-
isDetectTransDoubleBonds
public boolean isDetectTransDoubleBonds()Returns the detectTransDoubleBonds- Returns:
- the detectTransDoubleBonds
-
isDetectCumulatedDoubleBonds
public boolean isDetectCumulatedDoubleBonds()Returns the detectCummulatedDoubleBonds- Returns:
- the detectCummulatedDoubleBonds
-
isDetectTripleBonds
public boolean isDetectTripleBonds()Returns the detectTripleBonds- Returns:
- the detectTripleBonds
-
isTransDoubleBond
public boolean isTransDoubleBond()Returns the detectTransDoubleBonds- Returns:
- the detectTransDoubleBonds
-
isCumulatedDoubleBond
public boolean isCumulatedDoubleBond()Returns the detectCummulatedDoubleBonds- Returns:
- the detectCummulatedDoubleBonds
-
isTripleBond
public boolean isTripleBond()Returns the detectTripleBonds- Returns:
- the detectTripleBonds
-
setDetectTransDoubleBonds
public void setDetectTransDoubleBonds(boolean detectTransDoubleBonds) Sets the detectTransDoubleBonds- Parameters:
detectTransDoubleBonds
- is true if trans double bonds should be detected, false otherwise- Since:
- 5.7
-
setDetectCumulatedDoubleBonds
public void setDetectCumulatedDoubleBonds(boolean detectCumulatedDoubleBonds) Sets the detectCumulatedDoubleBonds property- Parameters:
detectCumulatedDoubleBonds
- is true if cumulated double bonds should be detected, false otherwise- Since:
- 5.7
-
setDetectTripleBonds
public void setDetectTripleBonds(boolean detectTripleBonds) Sets the detectTripleBonds property- Parameters:
detectTripleBonds
- is true if triple bonds should be detected, false otherwise- Since:
- 5.7
-