public class RuleElements extends AbstractRule
| Modifier and Type | Field and Description |
|---|---|
static String[] |
comparison |
protected SmartElementsList |
elements |
protected int |
mode |
static int |
modeAllSpecifiedElements |
static int |
modeAnySpecifiedElements |
static int |
modeOnlySpecifiedElements |
changes, 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 |
|---|
RuleElements() |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(String element) |
boolean |
contains(String element)
|
boolean |
equals(Object obj) |
SmartElementsList |
getElements() |
TreeSet |
gethalogens() |
int |
getMode() |
ambit2.rendering.IAtomContainerHighlights |
getSelector() |
String |
getTitle()
Rule name is an arbitrary string, preferably one line, reflecting the essence of the rule
(e.g. |
boolean |
hasOnlySpecifiedElements() |
boolean |
isImplemented() |
void |
removeElement(String element) |
void |
select(org.openscience.cdk.interfaces.IAtomContainer mol,
org.openscience.cdk.interfaces.IAtomContainer selected) |
void |
setComparisonMode(int mode) |
void |
setElements(SmartElementsList elements) |
void |
setHalogens(String[] halogens) |
void |
setHalogens(TreeSet halogens) |
void |
setMode(int mode) |
boolean |
verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol)
This is the core of a
IDecisionRule behaviour. |
boolean |
verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol,
org.openscience.cdk.interfaces.IAtomContainer selected) |
addPropertyChangeListener, clearFlags, clone, createRule, fromXML, getEditor, getExampleMolecule, getExamples, getExplanation, getID, getNum, 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, setChangedpublic static String[] comparison
public static final int modeOnlySpecifiedElements
public static final int modeAllSpecifiedElements
public static final int modeAnySpecifiedElements
protected SmartElementsList elements
protected int mode
public void setHalogens(String[] halogens)
public void setHalogens(TreeSet halogens)
public TreeSet gethalogens()
public boolean isImplemented()
isImplemented in interface IDecisionRuleisImplemented in class AbstractRulepublic boolean hasOnlySpecifiedElements()
public void setComparisonMode(int mode)
hasOnlySpecifiedElements - The hasOnlySpecifiedElements to set.public String getTitle()
IDecisionRulegetTitle in interface IDecisionRulegetTitle in class AbstractRuleIDecisionRule.getTitle()public void addElement(String element)
public void removeElement(String element)
public boolean contains(String element)
public boolean verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol)
throws DecisionMethodException
IDecisionRuleIDecisionRule behaviour. The method returns true
if the answer of the rule is YES for the analyzed molecule org.openscience.cdk.interfaces.AtomContainer and FALSE
if the answer of the rule is NO for the analyzed molecule org.openscience.cdk.interfaces.AtomContainer??mol - org.openscience.cdk.interfaces.AtomContainerDecisionMethodExceptionpublic boolean verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol,
org.openscience.cdk.interfaces.IAtomContainer selected)
throws DecisionMethodException
DecisionMethodExceptionpublic void select(org.openscience.cdk.interfaces.IAtomContainer mol,
org.openscience.cdk.interfaces.IAtomContainer selected)
public boolean equals(Object obj)
equals in class AbstractRulepublic SmartElementsList getElements()
public void setElements(SmartElementsList elements)
public int getMode()
public void setMode(int mode)
public ambit2.rendering.IAtomContainerHighlights getSelector()
getSelector in interface IDecisionRulegetSelector in class AbstractRuleCopyright © 2004–2018 Ideaconsult Ltd. All rights reserved.