public abstract class RuleSubstructures extends AbstractRuleHilightHits implements IRuleSubstructures
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<String> |
ids |
static String |
MSG_HASGROUP |
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 |
|---|
RuleSubstructures() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubstructure(org.openscience.cdk.interfaces.IAtomContainer fragment)
The fragment will be added to the list of substructures to be searched
for
|
void |
clearSubstructures()
removes all substructures defined for a rule
|
boolean |
equals(Object obj) |
ArrayList |
getIds() |
QueryAtomContainers |
getQuery() |
org.openscience.cdk.interfaces.IAtomContainer |
getSubstructure(int index)
Returns a substructure
AtomContainer at a given rules |
List |
getSubstructures()
Returns a list
ArrayList of AtomContainer defined for the rule |
int |
getSubstructuresCount() |
protected QueryAtomContainers |
initQuery() |
boolean |
isImplemented() |
org.openscience.cdk.interfaces.IAtomContainer |
removeSubstructure(int index)
Removes substructure at a given index
|
void |
setIds(ArrayList ids) |
void |
setQuery(QueryAtomContainers query) |
void |
setSubstructure(int index,
org.openscience.cdk.interfaces.IAtomContainer atomContainer)
sets substructure at index
|
boolean |
verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol,
org.openscience.cdk.interfaces.IAtomContainer selected) |
getSelectoraddPropertyChangeListener, 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, toString, verifyRulepublic static transient String MSG_HASGROUP
protected QueryAtomContainers initQuery() throws Exception
Exceptionpublic boolean isImplemented()
isImplemented in interface IDecisionRuleisImplemented in class AbstractRulepublic void addSubstructure(org.openscience.cdk.interfaces.IAtomContainer fragment)
addSubstructure in interface IRuleSubstructuresfragment - /* (non-Javadoc)addSubstructure(IAtomContainer)public void clearSubstructures()
IRuleSubstructuresclearSubstructures in interface IRuleSubstructurespublic int getSubstructuresCount()
getSubstructuresCount in interface IRuleSubstructurespublic org.openscience.cdk.interfaces.IAtomContainer getSubstructure(int index)
IRuleSubstructuresAtomContainer at a given rulesgetSubstructure in interface IRuleSubstructuresAtomContainerpublic void setSubstructure(int index,
org.openscience.cdk.interfaces.IAtomContainer atomContainer)
IRuleSubstructuressetSubstructure in interface IRuleSubstructurespublic boolean equals(Object obj)
equals in class AbstractRulepublic org.openscience.cdk.interfaces.IAtomContainer removeSubstructure(int index)
IRuleSubstructuresremoveSubstructure in interface IRuleSubstructuresAtomContainerpublic List getSubstructures()
IRuleSubstructuresArrayList of AtomContainer defined for the rulegetSubstructures in interface IRuleSubstructuresListpublic QueryAtomContainers getQuery()
public void setQuery(QueryAtomContainers query)
public ArrayList getIds()
public void setIds(ArrayList ids)
public boolean verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol,
org.openscience.cdk.interfaces.IAtomContainer selected)
throws DecisionMethodException
verifyRule in class AbstractRuleHilightHitsDecisionMethodExceptionCopyright © 2004–2018 Ideaconsult Ltd. All rights reserved.