|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjecttoxTree.tree.TreeResult
public class TreeResult
A default class implementing IDecisionResult
Field Summary | |
---|---|
protected IDecisionCategories |
assignedCategories
|
protected IDecisionCategory |
category
|
protected java.beans.PropertyChangeSupport |
changes
|
protected IDecisionMethod |
decisionMethod
|
protected static TTLogger |
logger
|
protected boolean |
notify
|
protected org.openscience.cdk.interfaces.IAtomContainer |
originalMolecule
|
protected java.util.ArrayList<RuleResult> |
ruleResults
|
protected ProgressStatus |
status
|
protected boolean |
web
|
Constructor Summary | |
---|---|
TreeResult()
Constructor |
Method Summary | |
---|---|
protected boolean |
acceptCategory(IDecisionCategory category)
|
protected void |
addCategory(IDecisionCategory category)
|
void |
addPropertyChangeListener(java.beans.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(java.lang.Object o)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.StringBuffer |
explain(boolean verbose)
return StringBuffer with textual explanation of the rules executed |
protected void |
fireChangeEvent(java.beans.PropertyChangeEvent e)
|
protected void |
firePropertyChangeEvent(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
|
protected void |
firePropertyChangeEvent(java.lang.String propertyName,
int oldValue,
int newValue)
|
protected void |
firePropertyChangeEvent(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
IDecisionCategories |
getAssignedCategories()
|
IDecisionCategory |
getCategory()
|
IDecisionCategory |
getCategory(int index)
|
IDecisionMethod |
getDecisionMethod()
|
java.util.List<CategoryFilter> |
getFilters()
|
org.openscience.cdk.interfaces.IAtomContainer |
getMolecule(int index)
|
org.openscience.cdk.interfaces.IAtomContainer |
getOriginalMolecule()
|
int |
getPriority()
|
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners()
|
java.lang.String[] |
getResultPropertyNames()
Returns the name of the property that will contain the result |
IDecisionRule |
getRule(int index)
|
RuleResult |
getRuleResult(int index)
|
java.util.ArrayList<RuleResult> |
getRuleResults()
|
int |
getRuleResultsCount()
|
void |
hilightAlert(IDecisionRule rule)
|
void |
hilightAlert(RuleResult ruleResult)
|
boolean |
isError()
|
boolean |
isEstimated()
|
boolean |
isEstimating()
|
boolean |
isNotify()
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
setCategory(IDecisionCategory category)
|
void |
setDecisionMethod(IDecisionMethod decisionMethod)
|
void |
setError(java.lang.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(java.util.ArrayList<RuleResult> ruleResults)
|
void |
setSilent(boolean silent)
|
void |
setWeb(java.lang.Boolean web)
|
java.lang.String |
toString()
toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static transient TTLogger logger
protected transient java.beans.PropertyChangeSupport changes
protected IDecisionMethod decisionMethod
protected IDecisionCategory category
protected IDecisionCategories assignedCategories
protected transient org.openscience.cdk.interfaces.IAtomContainer originalMolecule
protected java.util.ArrayList<RuleResult> ruleResults
protected ProgressStatus status
protected boolean notify
protected boolean web
Constructor Detail |
---|
public TreeResult()
method
- Method Detail |
---|
public boolean isNotify()
public void setNotify(boolean notify)
setNotify
in interface IDecisionResult
public void clear()
clear
in interface IDecisionResult
protected void clearResults()
public boolean isError()
isError
in interface IProgressStatus
public void setError(java.lang.String message)
setError
in interface IProgressStatus
public boolean isEstimated()
isEstimated
in interface IProgressStatus
public boolean isEstimating()
isEstimating
in interface IProgressStatus
public void setEstimating()
setEstimating
in interface IProgressStatus
public void setPercentEstimated(int percent)
setPercentEstimated
in interface IProgressStatus
public void setEstimated()
setEstimated
in interface IProgressStatus
public void setEstimated(boolean value)
setEstimated
in interface IProgressStatus
public IDecisionCategory getCategory()
getCategory
in interface IDecisionResult
public IDecisionCategories getAssignedCategories()
getAssignedCategories
in interface IDecisionResult
public void setCategory(IDecisionCategory category)
setCategory
in interface IDecisionResult
protected boolean acceptCategory(IDecisionCategory category)
protected void addCategory(IDecisionCategory category)
public void setMolecule(org.openscience.cdk.interfaces.IAtomContainer molecule)
setMolecule
in interface IDecisionResult
public void setSilent(boolean silent) throws DecisionResultException
setSilent
in interface IDecisionResult
DecisionResultException
public void addRuleResult(IDecisionRule rule, boolean value, org.openscience.cdk.interfaces.IAtomContainer molecule) throws DecisionResultException
addRuleResult
in interface IDecisionResult
DecisionResultException
public java.lang.StringBuffer explain(boolean verbose) throws DecisionResultException
explain
in interface IDecisionResult
DecisionResultException
public java.lang.String toString()
toString
in interface IDecisionResult
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
public IDecisionMethod getDecisionMethod()
getDecisionMethod
in interface IDecisionResult
public void setDecisionMethod(IDecisionMethod decisionMethod)
setDecisionMethod
in interface IDecisionResult
public boolean classify(org.openscience.cdk.interfaces.IAtomContainer mol) throws DecisionResultException
classify
in interface IDecisionResult
DecisionResultException
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener
in interface IDecisionResult
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener
in interface IDecisionResult
public java.beans.PropertyChangeListener[] getPropertyChangeListeners()
getPropertyChangeListeners
in interface IDecisionResult
protected void fireChangeEvent(java.beans.PropertyChangeEvent e)
protected void firePropertyChangeEvent(java.lang.String propertyName, int oldValue, int newValue)
protected void firePropertyChangeEvent(java.lang.String propertyName, boolean oldValue, boolean newValue)
protected void firePropertyChangeEvent(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int getRuleResultsCount()
getRuleResultsCount
in interface IDecisionResult
public org.openscience.cdk.interfaces.IAtomContainer getMolecule(int index) throws DecisionResultException
getMolecule
in interface IDecisionResult
DecisionResultException
public IDecisionCategory getCategory(int index) throws DecisionResultException
getCategory
in interface IDecisionResult
DecisionResultException
public RuleResult getRuleResult(int index) throws DecisionResultException
getRuleResult
in interface IDecisionResult
DecisionResultException
public IDecisionRule getRule(int index) throws DecisionResultException
getRule
in interface IDecisionResult
DecisionResultException
public void assignResult(org.openscience.cdk.interfaces.IAtomContainer mol) throws DecisionResultException
assignResult
in interface IDecisionResult
DecisionResultException
public java.lang.String[] getResultPropertyNames()
IDecisionResult
getResultPropertyNames
in interface IDecisionResult
public java.util.ArrayList<RuleResult> getRuleResults()
public void setRuleResults(java.util.ArrayList<RuleResult> ruleResults)
public int getPriority()
getPriority
in interface IDecisionMethodPrority
public void setPriority(int priority)
setPriority
in interface IDecisionMethodPrority
public java.util.List<CategoryFilter> getFilters()
getFilters
in interface IDecisionResult
public 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 IDecisionResult
DecisionResultException
public void hilightAlert(IDecisionRule rule) throws DecisionResultException
hilightAlert
in interface IDecisionResult
DecisionResultException
public void setWeb(java.lang.Boolean web)
setWeb
in interface IDecisionResult
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |