toxTree.tree
Class DecisionNodesList
java.lang.Object
java.util.Observable
toxTree.tree.DecisionNodesList
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<IDecisionRule>, java.util.Collection<IDecisionRule>, java.util.List<IDecisionRule>, java.util.Observer, IDecisionRuleList, XMLSerializable
- Direct Known Subclasses:
- MultiLabelDecisionNodesList
public class DecisionNodesList
- extends java.util.Observable
- implements IDecisionRuleList, java.util.Observer, XMLSerializable
A list of DecisionNode
, implementing IDecisionRuleList
.
Implements the tree structure of decision nodes used in UserDefinedTree
.
- Author:
- Nina Jeliazkova
Modified 2005-9-25
- See Also:
- Serialized Form
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 |
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 |
list
protected java.util.ArrayList<IDecisionRule> list
DecisionNodesList
public DecisionNodesList()
DecisionNodesList
public DecisionNodesList(IDecisionCategories categories,
java.lang.String[] customRules,
int[][] transitions)
addRule
public void addRule(IDecisionRule rule)
- Specified by:
addRule
in interface IDecisionRuleList
getRule
public IDecisionRule getRule(int index)
- Specified by:
getRule
in interface IDecisionRuleList
setRules
public void setRules(java.lang.String[] customRules)
- Specified by:
setRules
in interface IDecisionRuleList
setTransitions
protected void setTransitions(IDecisionCategories categories,
int[][] customTransitions)
size
public int size()
- Specified by:
size
in interface java.util.Collection<IDecisionRule>
- Specified by:
size
in interface java.util.List<IDecisionRule>
getNode
public DecisionNode getNode(int index)
setNode
public void setNode(int index,
DecisionNode node)
addNode
public void addNode(DecisionNode node)
removeNode
public void removeNode(DecisionNode node)
addAll
public boolean addAll(java.util.Collection arg0)
- Specified by:
addAll
in interface java.util.Collection<IDecisionRule>
- Specified by:
addAll
in interface java.util.List<IDecisionRule>
add
public void add(int arg0,
IDecisionRule arg1)
- Specified by:
add
in interface java.util.List<IDecisionRule>
add
public boolean add(IDecisionRule arg0)
- Specified by:
add
in interface java.util.Collection<IDecisionRule>
- Specified by:
add
in interface java.util.List<IDecisionRule>
addAll
public boolean addAll(int arg0,
java.util.Collection arg1)
- Specified by:
addAll
in interface java.util.List<IDecisionRule>
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection<IDecisionRule>
- Specified by:
clear
in interface java.util.List<IDecisionRule>
contains
public boolean contains(java.lang.Object arg0)
- Specified by:
contains
in interface java.util.Collection<IDecisionRule>
- Specified by:
contains
in interface java.util.List<IDecisionRule>
containsAll
public boolean containsAll(java.util.Collection arg0)
- Specified by:
containsAll
in interface java.util.Collection<IDecisionRule>
- Specified by:
containsAll
in interface java.util.List<IDecisionRule>
equals
public boolean equals(java.lang.Object arg0)
- Specified by:
equals
in interface java.util.Collection<IDecisionRule>
- Specified by:
equals
in interface java.util.List<IDecisionRule>
- Overrides:
equals
in class java.lang.Object
get
public IDecisionRule get(int arg0)
- Specified by:
get
in interface java.util.List<IDecisionRule>
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.util.Collection<IDecisionRule>
- Specified by:
hashCode
in interface java.util.List<IDecisionRule>
- Overrides:
hashCode
in class java.lang.Object
indexOf
public int indexOf(java.lang.Object arg0)
- Specified by:
indexOf
in interface java.util.List<IDecisionRule>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Collection<IDecisionRule>
- Specified by:
isEmpty
in interface java.util.List<IDecisionRule>
iterator
public java.util.Iterator<IDecisionRule> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<IDecisionRule>
- Specified by:
iterator
in interface java.util.Collection<IDecisionRule>
- Specified by:
iterator
in interface java.util.List<IDecisionRule>
lastIndexOf
public int lastIndexOf(java.lang.Object arg0)
- Specified by:
lastIndexOf
in interface java.util.List<IDecisionRule>
listIterator
public java.util.ListIterator<IDecisionRule> listIterator()
- Specified by:
listIterator
in interface java.util.List<IDecisionRule>
listIterator
public java.util.ListIterator<IDecisionRule> listIterator(int arg0)
- Specified by:
listIterator
in interface java.util.List<IDecisionRule>
remove
public IDecisionRule remove(int arg0)
- Specified by:
remove
in interface java.util.List<IDecisionRule>
remove
public boolean remove(java.lang.Object arg0)
- Specified by:
remove
in interface java.util.Collection<IDecisionRule>
- Specified by:
remove
in interface java.util.List<IDecisionRule>
removeAll
public boolean removeAll(java.util.Collection arg0)
- Specified by:
removeAll
in interface java.util.Collection<IDecisionRule>
- Specified by:
removeAll
in interface java.util.List<IDecisionRule>
retainAll
public boolean retainAll(java.util.Collection arg0)
- Specified by:
retainAll
in interface java.util.Collection<IDecisionRule>
- Specified by:
retainAll
in interface java.util.List<IDecisionRule>
set
public IDecisionRule set(int arg0,
IDecisionRule arg1)
- Specified by:
set
in interface java.util.List<IDecisionRule>
subList
public java.util.List<IDecisionRule> subList(int arg0,
int arg1)
- Specified by:
subList
in interface java.util.List<IDecisionRule>
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interface java.util.Collection<IDecisionRule>
- Specified by:
toArray
in interface java.util.List<IDecisionRule>
toArray
public java.lang.Object[] toArray(java.lang.Object[] arg0)
- Specified by:
toArray
in interface java.util.Collection<IDecisionRule>
- Specified by:
toArray
in interface java.util.List<IDecisionRule>
update
public void update(java.util.Observable o,
java.lang.Object arg)
- Specified by:
update
in interface java.util.Observer
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
fromXML
public void fromXML(org.w3c.dom.Element xml)
throws XMLDecisionMethodException
- Specified by:
fromXML
in interface XMLSerializable
- Throws:
XMLDecisionMethodException
toShallowXML
public org.w3c.dom.Element toShallowXML(org.w3c.dom.Document document)
throws XMLDecisionMethodException
- Specified by:
toShallowXML
in interface XMLSerializable
- Throws:
XMLDecisionMethodException
toXML
public org.w3c.dom.Element toXML(org.w3c.dom.Document document)
throws XMLDecisionMethodException
- Specified by:
toXML
in interface XMLSerializable
- Throws:
XMLDecisionMethodException
getList
public java.util.ArrayList<IDecisionRule> getList()
setList
public void setList(java.util.ArrayList<IDecisionRule> list)
Copyright © 2004-2012 Ideaconsult Ltd.. All Rights Reserved.