public class TreeResult extends Object implements IDecisionResult
IDecisionResult| Modifier and Type | Field and Description |
|---|---|
protected IDecisionCategories |
assignedCategories |
protected IDecisionCategory |
category |
protected PropertyChangeSupport |
changes |
protected IDecisionMethod |
decisionMethod |
protected static Logger |
logger |
protected boolean |
notify |
protected org.openscience.cdk.interfaces.IAtomContainer |
originalMolecule |
protected ArrayList<RuleResult> |
ruleResults |
protected ProgressStatus |
status |
protected boolean |
web |
| Constructor and Description |
|---|
TreeResult()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acceptCategory(IDecisionCategory category) |
protected void |
addCategory(IDecisionCategory category) |
void |
addPropertyChangeListener(PropertyChangeListener l) |
void |
addRuleResult(IDecisionRule rule,
boolean value,
org.openscience.cdk.interfaces.IAtomContainer molecule) |
void |
assignResult(org.openscience.cdk.interfaces.IAtomContainer mol) |
boolean |
classify(org.openscience.cdk.interfaces.IAtomContainer mol) |
void |
clear() |
protected void |
clearResults() |
int |
compareTo(Object o) |
boolean |
equals(Object obj) |
StringBuffer |
explain(boolean verbose)
return StringBuffer with textual explanation of the rules executed
|
protected void |
fireChangeEvent(PropertyChangeEvent e) |
protected void |
firePropertyChangeEvent(String propertyName,
boolean oldValue,
boolean newValue) |
protected void |
firePropertyChangeEvent(String propertyName,
int oldValue,
int newValue) |
protected void |
firePropertyChangeEvent(String propertyName,
Object oldValue,
Object newValue) |
IDecisionCategories |
getAssignedCategories() |
IDecisionCategory |
getCategory() |
IDecisionCategory |
getCategory(int index) |
IDecisionMethod |
getDecisionMethod() |
List<CategoryFilter> |
getFilters() |
org.openscience.cdk.interfaces.IAtomContainer |
getMolecule(int index) |
org.openscience.cdk.interfaces.IAtomContainer |
getOriginalMolecule() |
int |
getPriority() |
PropertyChangeListener[] |
getPropertyChangeListeners() |
protected ambit2.base.data.ILiteratureEntry |
getReference() |
List<ambit2.base.data.Property> |
getResultProperties()
Returns the properties to contain the result in
Property class |
String[] |
getResultPropertyNames()
Returns the name of the property that will contain the result
|
IDecisionRule |
getRule(int index) |
RuleResult |
getRuleResult(int index) |
ArrayList<RuleResult> |
getRuleResults() |
int |
getRuleResultsCount() |
void |
hilightAlert(IDecisionRule rule) |
void |
hilightAlert(RuleResult ruleResult) |
boolean |
isError() |
boolean |
isEstimated() |
boolean |
isEstimating() |
boolean |
isNotify() |
void |
removePropertyChangeListener(PropertyChangeListener l) |
void |
setCategory(IDecisionCategory category) |
void |
setDecisionMethod(IDecisionMethod decisionMethod) |
void |
setError(String message) |
void |
setEstimated() |
void |
setEstimated(boolean value) |
void |
setEstimating() |
void |
setMolecule(org.openscience.cdk.interfaces.IAtomContainer molecule) |
void |
setNotify(boolean notify) |
void |
setOriginalMolecule(org.openscience.cdk.interfaces.IAtomContainer originalMolecule) |
void |
setPercentEstimated(int percent) |
void |
setPriority(int priority) |
void |
setRuleResults(ArrayList<RuleResult> ruleResults) |
void |
setSilent(boolean silent) |
void |
setWeb(Boolean web) |
String |
toString()
toString
|
protected static transient Logger logger
protected transient PropertyChangeSupport changes
protected IDecisionMethod decisionMethod
protected IDecisionCategory category
protected IDecisionCategories assignedCategories
protected transient org.openscience.cdk.interfaces.IAtomContainer originalMolecule
protected ArrayList<RuleResult> ruleResults
protected ProgressStatus status
protected boolean notify
protected boolean web
public boolean isNotify()
public void setNotify(boolean notify)
setNotify in interface IDecisionResultpublic void clear()
clear in interface IDecisionResultprotected void clearResults()
public boolean isError()
isError in interface IProgressStatuspublic void setError(String message)
setError in interface IProgressStatuspublic boolean isEstimated()
isEstimated in interface IProgressStatuspublic boolean isEstimating()
isEstimating in interface IProgressStatuspublic void setEstimating()
setEstimating in interface IProgressStatuspublic void setPercentEstimated(int percent)
setPercentEstimated in interface IProgressStatuspublic void setEstimated()
setEstimated in interface IProgressStatuspublic void setEstimated(boolean value)
setEstimated in interface IProgressStatuspublic IDecisionCategory getCategory()
getCategory in interface IDecisionResultpublic IDecisionCategories getAssignedCategories()
getAssignedCategories in interface IDecisionResultpublic void setCategory(IDecisionCategory category)
setCategory in interface IDecisionResultprotected boolean acceptCategory(IDecisionCategory category)
protected void addCategory(IDecisionCategory category)
public void setMolecule(org.openscience.cdk.interfaces.IAtomContainer molecule)
setMolecule in interface IDecisionResultpublic void setSilent(boolean silent)
throws DecisionResultException
setSilent in interface IDecisionResultDecisionResultExceptionpublic void addRuleResult(IDecisionRule rule, boolean value, org.openscience.cdk.interfaces.IAtomContainer molecule) throws DecisionResultException
addRuleResult in interface IDecisionResultDecisionResultExceptionpublic StringBuffer explain(boolean verbose) throws DecisionResultException
explain in interface IDecisionResultDecisionResultExceptionpublic String toString()
toString in interface IDecisionResulttoString in class Objectpublic int compareTo(Object o)
compareTo in interface ComparableComparable.compareTo(java.lang.Object)public IDecisionMethod getDecisionMethod()
getDecisionMethod in interface IDecisionResultpublic void setDecisionMethod(IDecisionMethod decisionMethod)
setDecisionMethod in interface IDecisionResultpublic boolean classify(org.openscience.cdk.interfaces.IAtomContainer mol)
throws DecisionResultException
classify in interface IDecisionResultDecisionResultExceptionpublic void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener in interface IDecisionResultpublic void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener in interface IDecisionResultpublic PropertyChangeListener[] getPropertyChangeListeners()
getPropertyChangeListeners in interface IDecisionResultprotected void fireChangeEvent(PropertyChangeEvent e)
protected void firePropertyChangeEvent(String propertyName, int oldValue, int newValue)
protected void firePropertyChangeEvent(String propertyName, boolean oldValue, boolean newValue)
protected void firePropertyChangeEvent(String propertyName, Object oldValue, Object newValue)
public int getRuleResultsCount()
getRuleResultsCount in interface IDecisionResultpublic org.openscience.cdk.interfaces.IAtomContainer getMolecule(int index)
throws DecisionResultException
getMolecule in interface IDecisionResultDecisionResultExceptionpublic IDecisionCategory getCategory(int index) throws DecisionResultException
getCategory in interface IDecisionResultDecisionResultExceptionpublic RuleResult getRuleResult(int index) throws DecisionResultException
getRuleResult in interface IDecisionResultDecisionResultExceptionpublic IDecisionRule getRule(int index) throws DecisionResultException
getRule in interface IDecisionResultDecisionResultExceptionpublic void assignResult(org.openscience.cdk.interfaces.IAtomContainer mol)
throws DecisionResultException
assignResult in interface IDecisionResultDecisionResultExceptionpublic String[] getResultPropertyNames()
IDecisionResultgetResultPropertyNames in interface IDecisionResultprotected ambit2.base.data.ILiteratureEntry getReference()
public List<ambit2.base.data.Property> getResultProperties() throws net.idea.modbcum.i.exceptions.AmbitException
IDecisionResultProperty classgetResultProperties in interface IDecisionResultnet.idea.modbcum.i.exceptions.AmbitExceptionpublic ArrayList<RuleResult> getRuleResults()
public void setRuleResults(ArrayList<RuleResult> ruleResults)
public int getPriority()
getPriority in interface IDecisionMethodProritypublic void setPriority(int priority)
setPriority in interface IDecisionMethodProritypublic List<CategoryFilter> getFilters()
getFilters in interface IDecisionResultpublic org.openscience.cdk.interfaces.IAtomContainer getOriginalMolecule()
public void setOriginalMolecule(org.openscience.cdk.interfaces.IAtomContainer originalMolecule)
public void hilightAlert(RuleResult ruleResult) throws DecisionResultException
hilightAlert in interface IDecisionResultDecisionResultExceptionpublic void hilightAlert(IDecisionRule rule) throws DecisionResultException
hilightAlert in interface IDecisionResultDecisionResultExceptionpublic void setWeb(Boolean web)
setWeb in interface IDecisionResultCopyright © 2004–2018 Ideaconsult Ltd. All rights reserved.