public class Rule21 extends RuleRingMainStrucSubstituents implements IAlertCounter
| Modifier and Type | Field and Description |
|---|---|
protected IAlertCounter |
alertsCounter |
protected ArrayList<String> |
halogenIDs |
protected String[] |
halogens |
protected int |
halogensCount |
protected int |
maxHalogens |
protected int |
maxNitroGroups |
protected int |
nitroGroupsCount |
protected ArrayList<String> |
nitroIDs |
protected ArrayList<String> |
phenolIDs |
mainStructureanalyzeOnlyRingsWithFlagSet, CONDITION_FAILED, CYCLIC_SUBSTITUENT, ERR_PRECONDITION_FAILED, LONGCHAIN_SUBSTITUENTids, MSG_HASGROUPchanges, editable, ERR_STRUCTURENOTPREPROCESSED, examples, explanation, id, logger, MSG_NO, MSG_YES, no, residueIDHidden, titlexmltag_CATEGORIES, xmltag_CATEGORY, xmltag_CATEGORYTHRESHOLD, xmltag_CLASS, xmltag_EXPLANATION, xmltag_ID, xmltag_METHOD, xmltag_METHODPARAMETER, xmltag_METHODS, xmltag_NAME, xmltag_RULE, xmltag_RULEEXAMPLE, xmltag_RULES, xmltag_TREEROOT| Constructor and Description |
|---|
Rule21() |
| Modifier and Type | Method and Description |
|---|---|
protected org.openscience.cdk.isomorphism.matchers.QueryAtomContainer |
createMainStructure() |
protected String[] |
getHalogens() |
String |
getImplementationDetails() |
int |
getMaxHalogens() |
int |
getMaxNitroGroups() |
void |
incrementCounter(org.openscience.cdk.interfaces.IAtomContainer mol) |
protected QueryAtomContainers |
initQuery() |
boolean |
isImplemented() |
void |
setMaxHalogens(int maxHalogens) |
void |
setMaxNitroGroups(int maxNitroGroups) |
boolean |
substituentIsAllowed(org.openscience.cdk.interfaces.IAtomContainer a,
int[] place)
returns true if the substituent is allowed and false if it is forbidden
to be implemented by the inheriting class
|
boolean |
verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol)
|
boolean |
verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol,
org.openscience.cdk.interfaces.IAtomContainer selected)
returns true if only allowed substituents are found
|
allowedSubstituents, analyze, analyzeOnlyRingsWithFlagSet, clearFlags, getFlag, setAnalyzeAromatic, setAnalyzeHeterocyclic, setAnalyzeOnlyRingsWithFlagSet, setFlaghasRingsToProcessaddSubstructure, clearSubstructures, equals, getIds, getQuery, getSubstructure, getSubstructures, getSubstructuresCount, removeSubstructure, setIds, setQuery, setSubstructuregetSelectoraddPropertyChangeListener, clearFlags, clone, createRule, fromXML, getEditor, getExampleMolecule, getExamples, getExplanation, getID, getNum, getTitle, hideResiduesID, isEditable, isResidueIDHidden, log, log, log, makeMolecule, removePropertyChangeListener, setEditable, setExampleMolecule, setExamples, setExplanation, setID, setNum, setTitle, toShallowXML, toString, toXMLaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, clearFlags, clone, getEditor, getExampleMolecule, getExplanation, getID, getNum, getSelector, getTitle, hideResiduesID, isEditable, isResidueIDHidden, removePropertyChangeListener, setEditable, setExampleMolecule, setExplanation, setID, setNum, setTitle, toStringprotected IAlertCounter alertsCounter
protected transient int nitroGroupsCount
protected transient int halogensCount
protected transient String[] halogens
protected int maxHalogens
protected int maxNitroGroups
protected QueryAtomContainers initQuery() throws Exception
initQuery in class RuleRingMainStrucSubstituentsExceptionprotected String[] getHalogens()
protected org.openscience.cdk.isomorphism.matchers.QueryAtomContainer createMainStructure()
throws org.openscience.cdk.exception.CDKException
createMainStructure in class RuleRingMainStrucSubstituentsorg.openscience.cdk.exception.CDKExceptionpublic boolean verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol)
throws DecisionMethodException
RuleRingSubstituentsverifyRule in interface IDecisionRuleverifyRule in class RuleRingAllowedSubstituentsmol - org.openscience.cdk.interfaces.AtomContainerDecisionMethodExceptionpublic boolean verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol,
org.openscience.cdk.interfaces.IAtomContainer selected)
throws DecisionMethodException
RuleRingAllowedSubstituentsverifyRule in class RuleRingAllowedSubstituentsDecisionMethodExceptionpublic boolean substituentIsAllowed(org.openscience.cdk.interfaces.IAtomContainer a,
int[] place)
throws DecisionMethodException
RuleRingSubstituentssubstituentIsAllowed in class RuleRingAllowedSubstituentsDecisionMethodExceptionpublic boolean isImplemented()
isImplemented in interface IDecisionRuleisImplemented in class RuleRingAllowedSubstituentspublic int getMaxHalogens()
public void setMaxHalogens(int maxHalogens)
public int getMaxNitroGroups()
public void setMaxNitroGroups(int maxNitroGroups)
public String getImplementationDetails()
getImplementationDetails in interface IImplementationDetailspublic void incrementCounter(org.openscience.cdk.interfaces.IAtomContainer mol)
incrementCounter in interface IAlertCounterCopyright © 2004–2018 Ideaconsult Ltd. All rights reserved.