|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
toxTree.tree.RulesList
public class RulesList
List of IDecisionRule
Field Summary | |
---|---|
protected java.util.ArrayList<IDecisionRule> |
list
|
Fields inherited from interface toxTree.core.XMLSerializable |
---|
xmltag_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 Summary | |
---|---|
RulesList()
|
|
RulesList(java.lang.String[] customRules)
Creates RulesList given the names of IDecisionRule classes
Example :
RulesList(new String[] {
"toxTree.tree.rules.RuleSubstructure",
"toxTree.tree.rules.RuleAromatic"});
Rules are created from corresponding class names |
Method Summary | |
---|---|
boolean |
add(IDecisionRule arg0)
Adds an object only if it is a rule IDecisionRule
otherwise returns false |
void |
add(int arg0,
IDecisionRule arg1)
not implemented |
boolean |
addAll(java.util.Collection arg0)
Adds all objects from the Collection TODO verify if objects are IDecisionRule |
boolean |
addAll(int arg0,
java.util.Collection arg1)
|
void |
addRule(IDecisionRule rule)
adds a rule IDecisionRule |
void |
clear()
|
boolean |
contains(java.lang.Object arg0)
|
boolean |
containsAll(java.util.Collection arg0)
|
boolean |
equals(java.lang.Object arg0)
|
void |
fromXML(org.w3c.dom.Element xml)
|
IDecisionRule |
get(int arg0)
|
java.util.ArrayList |
getList()
|
IDecisionRule |
getRule(int index)
returns a rule IDecisionRule |
int |
hashCode()
|
int |
indexOf(java.lang.Object arg0)
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.Object arg0)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int arg0)
|
IDecisionRule |
remove(int arg0)
|
boolean |
remove(java.lang.Object arg0)
|
boolean |
removeAll(java.util.Collection arg0)
|
boolean |
retainAll(java.util.Collection arg0)
|
IDecisionRule |
set(int arg0,
IDecisionRule arg1)
|
void |
setList(java.util.ArrayList list)
|
void |
setRules(java.lang.String[] customRules)
Sets RulesList given the names of IDecisionRule classes
Example :
setRules(new String[] {
"toxTree.tree.rules.RuleSubstructure",
"toxTree.tree.rules.RuleAromatic"});
Rules are created from corresponding class names |
int |
size()
|
java.util.List |
subList(int arg0,
int arg1)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] arg0)
|
org.w3c.dom.Element |
toShallowXML(org.w3c.dom.Document document)
|
java.lang.String |
toString()
|
org.w3c.dom.Element |
toXML(org.w3c.dom.Document document)
|
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList<IDecisionRule> list
Constructor Detail |
---|
public RulesList()
public RulesList(java.lang.String[] customRules) throws DecisionMethodException
IDecisionRule
classes
Example :
RulesList(new String[] {
"toxTree.tree.rules.RuleSubstructure",
"toxTree.tree.rules.RuleAromatic"});
Rules are created from corresponding class names
customRules
-
DecisionMethodException
Method Detail |
---|
public void setRules(java.lang.String[] customRules) throws DecisionMethodException
IDecisionRule
classes
Example :
setRules(new String[] {
"toxTree.tree.rules.RuleSubstructure",
"toxTree.tree.rules.RuleAromatic"});
Rules are created from corresponding class names
setRules
in interface IDecisionRuleList
customRules
-
DecisionMethodException
public void addRule(IDecisionRule rule)
IDecisionRule
addRule
in interface IDecisionRuleList
public IDecisionRule getRule(int index)
IDecisionRule
getRule
in interface IDecisionRuleList
public java.lang.String toString()
toString
in class java.lang.Object
public int size()
size
in interface java.util.Collection<IDecisionRule>
size
in interface java.util.List<IDecisionRule>
public boolean addAll(java.util.Collection arg0)
IDecisionRule
addAll
in interface java.util.Collection<IDecisionRule>
addAll
in interface java.util.List<IDecisionRule>
public void add(int arg0, IDecisionRule arg1)
add
in interface java.util.List<IDecisionRule>
public boolean add(IDecisionRule arg0)
IDecisionRule
otherwise returns false
add
in interface java.util.Collection<IDecisionRule>
add
in interface java.util.List<IDecisionRule>
public boolean addAll(int arg0, java.util.Collection arg1)
addAll
in interface java.util.List<IDecisionRule>
public void clear()
clear
in interface java.util.Collection<IDecisionRule>
clear
in interface java.util.List<IDecisionRule>
public boolean contains(java.lang.Object arg0)
contains
in interface java.util.Collection<IDecisionRule>
contains
in interface java.util.List<IDecisionRule>
public boolean containsAll(java.util.Collection arg0)
containsAll
in interface java.util.Collection<IDecisionRule>
containsAll
in interface java.util.List<IDecisionRule>
public boolean equals(java.lang.Object arg0)
equals
in interface java.util.Collection<IDecisionRule>
equals
in interface java.util.List<IDecisionRule>
equals
in class java.lang.Object
public IDecisionRule get(int arg0)
get
in interface java.util.List<IDecisionRule>
public int hashCode()
hashCode
in interface java.util.Collection<IDecisionRule>
hashCode
in interface java.util.List<IDecisionRule>
hashCode
in class java.lang.Object
public int indexOf(java.lang.Object arg0)
indexOf
in interface java.util.List<IDecisionRule>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<IDecisionRule>
isEmpty
in interface java.util.List<IDecisionRule>
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable<IDecisionRule>
iterator
in interface java.util.Collection<IDecisionRule>
iterator
in interface java.util.List<IDecisionRule>
public int lastIndexOf(java.lang.Object arg0)
lastIndexOf
in interface java.util.List<IDecisionRule>
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List<IDecisionRule>
public java.util.ListIterator listIterator(int arg0)
listIterator
in interface java.util.List<IDecisionRule>
public IDecisionRule remove(int arg0)
remove
in interface java.util.List<IDecisionRule>
public boolean remove(java.lang.Object arg0)
remove
in interface java.util.Collection<IDecisionRule>
remove
in interface java.util.List<IDecisionRule>
public boolean removeAll(java.util.Collection arg0)
removeAll
in interface java.util.Collection<IDecisionRule>
removeAll
in interface java.util.List<IDecisionRule>
public boolean retainAll(java.util.Collection arg0)
retainAll
in interface java.util.Collection<IDecisionRule>
retainAll
in interface java.util.List<IDecisionRule>
public IDecisionRule set(int arg0, IDecisionRule arg1)
set
in interface java.util.List<IDecisionRule>
public java.util.List subList(int arg0, int arg1)
subList
in interface java.util.List<IDecisionRule>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<IDecisionRule>
toArray
in interface java.util.List<IDecisionRule>
public java.lang.Object[] toArray(java.lang.Object[] arg0)
toArray
in interface java.util.Collection<IDecisionRule>
toArray
in interface java.util.List<IDecisionRule>
public void fromXML(org.w3c.dom.Element xml) throws XMLDecisionMethodException
fromXML
in interface XMLSerializable
XMLDecisionMethodException
public org.w3c.dom.Element toShallowXML(org.w3c.dom.Document document) throws XMLDecisionMethodException
toShallowXML
in interface XMLSerializable
XMLDecisionMethodException
public org.w3c.dom.Element toXML(org.w3c.dom.Document document) throws XMLDecisionMethodException
toXML
in interface XMLSerializable
XMLDecisionMethodException
public java.util.ArrayList getList()
public void setList(java.util.ArrayList list)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |