public interface IDecisionRule extends Serializable, Cloneable
IDecisionMethod.
All classes, implementing a rule to be used in toxTree application should implement this interface.| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l) |
void |
clearFlags(org.openscience.cdk.interfaces.IAtomContainer mol)
When rules analyze a molecule, a set of properties are set.
|
Object |
clone() |
IDecisionRuleEditor |
getEditor()
Each rule provides an editor, which is a class implementing
IDecisionRuleEditor. |
org.openscience.cdk.interfaces.IAtomContainer |
getExampleMolecule(boolean ruleResult)
if ruleResult is TRUE, returns the example molecule if the rule is answered YES
if ruleResult is FALSE, returns the example molecule if the rule is answered NO
|
String |
getExplanation()
Rule explanation is an arbitrary text, could be multiline and may contain
html tags.
|
String |
getID()
Rule identifier is an arbitrary string, preferably short one
|
int |
getNum() |
ambit2.rendering.IAtomContainerHighlights |
getSelector() |
String |
getTitle()
Rule name is an arbitrary string, preferably one line, reflecting the essence of the rule
(e.g. |
void |
hideResiduesID(boolean hide) |
boolean |
isEditable() |
boolean |
isImplemented() |
boolean |
isResidueIDHidden() |
void |
removePropertyChangeListener(PropertyChangeListener l) |
void |
setEditable(boolean value) |
void |
setExampleMolecule(org.openscience.cdk.interfaces.IAtomContainer mol,
boolean ruleResult)
Sets example molecule for the YES or NO answer of the rule
|
void |
setExplanation(String message)
Sets rule explanation
|
void |
setID(String id)
Sets rule identifier
|
void |
setNum(int no) |
void |
setTitle(String name)
Sets rule name
|
String |
toString() |
boolean |
verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol)
This is the core of a
IDecisionRule behaviour. |
String getID()
void setID(String id)
id - int getNum()
void setNum(int no)
String getTitle()
void setTitle(String name)
name - String getExplanation()
void setExplanation(String message)
message - org.openscience.cdk.interfaces.IAtomContainer getExampleMolecule(boolean ruleResult)
throws DecisionMethodException
ruleResult - org.openscience.cdk.interfaces.Molecule{@link - DecisionMethodException}DecisionMethodExceptionvoid setExampleMolecule(org.openscience.cdk.interfaces.IAtomContainer mol,
boolean ruleResult)
mol - org.openscience.cdk.interfaces.MoleculeruleResult - void clearFlags(org.openscience.cdk.interfaces.IAtomContainer mol)
mol - org.openscience.cdk.interfaces.Moleculeboolean verifyRule(org.openscience.cdk.interfaces.IAtomContainer mol)
throws DecisionMethodException
IDecisionRule 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.AtomContainer{@link - DecisionMethodException}DecisionMethodExceptionvoid addPropertyChangeListener(PropertyChangeListener l)
void removePropertyChangeListener(PropertyChangeListener l)
boolean isImplemented()
void hideResiduesID(boolean hide)
boolean isResidueIDHidden()
IDecisionRuleEditor getEditor()
IDecisionRuleEditor.
The editor shall provide user interface for visualization and modification of various rule settings.IDecisionRuleEditorObject clone() throws CloneNotSupportedException
CloneNotSupportedExceptionboolean isEditable()
void setEditable(boolean value)
ambit2.rendering.IAtomContainerHighlights getSelector()
Copyright © 2004–2018 Ideaconsult Ltd. All rights reserved.