toxTree.tree
Class RuleResult

java.lang.Object
  extended by toxTree.tree.RuleResult
All Implemented Interfaces:
java.io.Serializable

public class RuleResult
extends java.lang.Object
implements java.io.Serializable

Stores the result of IDecisionRule application, which contains the rule applied, the boolean result and the category assigned (if any).

Author:
Nina Jeliazkova Modified 2005-9-2
See Also:
Serialized Form

Field Summary
static java.lang.String alertURL
           
protected  IDecisionCategory category
           
static java.lang.String categoryURL
           
protected  org.openscience.cdk.interfaces.IAtomContainer molecule
           
static java.lang.String prefix
           
protected  boolean result
           
static java.lang.String resultURL
           
protected  IDecisionRule rule
           
static java.lang.String ruleURL
           
protected  boolean silent
           
protected  boolean web
           
protected static java.lang.String wwwAlertFormat
           
 
Constructor Summary
RuleResult()
           
RuleResult(IDecisionRule rule, boolean result)
           
RuleResult(IDecisionRule rule, boolean result, IDecisionCategory category)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.StringBuffer explain(boolean verbose)
           
 java.lang.StringBuffer explain(boolean verbose, int ruleIndex)
           
 IDecisionCategory getCategory()
           
 org.openscience.cdk.interfaces.IAtomContainer getMolecule()
           
 IDecisionRule getRule()
           
 boolean isResult()
           
 boolean isSilent()
           
 boolean isWeb()
           
 void setCategory(IDecisionCategory category)
           
 void setMolecule(org.openscience.cdk.interfaces.IAtomContainer molecule)
           
 void setResult(boolean result)
           
 void setRule(IDecisionRule rule)
           
 void setSilent(boolean silent)
           
 void setWeb(boolean web)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

prefix

public static final java.lang.String prefix
See Also:
Constant Field Values

ruleURL

public static final java.lang.String ruleURL

categoryURL

public static final java.lang.String categoryURL

alertURL

public static final java.lang.String alertURL

resultURL

public static final java.lang.String resultURL

rule

protected IDecisionRule rule

result

protected boolean result

category

protected IDecisionCategory category

molecule

protected transient org.openscience.cdk.interfaces.IAtomContainer molecule

silent

protected boolean silent

web

protected boolean web

wwwAlertFormat

protected static final java.lang.String wwwAlertFormat
See Also:
Constant Field Values
Constructor Detail

RuleResult

public RuleResult()

RuleResult

public RuleResult(IDecisionRule rule,
                  boolean result)

RuleResult

public RuleResult(IDecisionRule rule,
                  boolean result,
                  IDecisionCategory category)
Method Detail

isWeb

public boolean isWeb()

setWeb

public void setWeb(boolean web)

isResult

public boolean isResult()
Returns:
Returns the result.

setResult

public void setResult(boolean result)
Parameters:
result - The result to set.

getCategory

public IDecisionCategory getCategory()
Returns:
Returns the category.

setCategory

public void setCategory(IDecisionCategory category)
Parameters:
category - The category to set.

getRule

public IDecisionRule getRule()
Returns:
Returns the rule.

setRule

public void setRule(IDecisionRule rule)
Parameters:
rule - The rule to set.

explain

public java.lang.StringBuffer explain(boolean verbose)

explain

public java.lang.StringBuffer explain(boolean verbose,
                                      int ruleIndex)

getMolecule

public org.openscience.cdk.interfaces.IAtomContainer getMolecule()
Returns:
Returns the molecule.

setMolecule

public void setMolecule(org.openscience.cdk.interfaces.IAtomContainer molecule)
Parameters:
molecule - The molecule to set.

isSilent

public boolean isSilent()
Returns:
Returns the silent.

setSilent

public void setSilent(boolean silent)
Parameters:
silent - The silent to set.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2012 Ideaconsult Ltd.. All Rights Reserved.