public class DecisionNodesList extends Observable implements IDecisionRuleList, Observer, XMLSerializable
DecisionNode, implementing IDecisionRuleList.
Implements the tree structure of decision nodes used in UserDefinedTree.| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<IDecisionRule> |
list |
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 and Description |
|---|
DecisionNodesList() |
DecisionNodesList(IDecisionCategories categories,
String[] customRules,
int[][] transitions) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, finalize, getClass, notify, notifyAll, wait, wait, waitreplaceAll, sort, spliteratorparallelStream, removeIf, streamprotected ArrayList<IDecisionRule> list
public DecisionNodesList()
public DecisionNodesList(IDecisionCategories categories, String[] customRules, int[][] transitions)
public void addRule(IDecisionRule rule)
addRule in interface IDecisionRuleListpublic IDecisionRule getRule(int index)
getRule in interface IDecisionRuleListpublic void setRules(String[] customRules)
setRules in interface IDecisionRuleListprotected void setTransitions(IDecisionCategories categories, int[][] customTransitions)
public int size()
size in interface Collection<IDecisionRule>size in interface List<IDecisionRule>public DecisionNode getNode(int index)
public void setNode(int index,
DecisionNode node)
public void addNode(DecisionNode node)
public void removeNode(DecisionNode node)
public boolean addAll(Collection arg0)
addAll in interface Collection<IDecisionRule>addAll in interface List<IDecisionRule>public void add(int arg0,
IDecisionRule arg1)
add in interface List<IDecisionRule>public boolean add(IDecisionRule arg0)
add in interface Collection<IDecisionRule>add in interface List<IDecisionRule>public boolean addAll(int arg0,
Collection arg1)
addAll in interface List<IDecisionRule>public void clear()
clear in interface Collection<IDecisionRule>clear in interface List<IDecisionRule>public boolean contains(Object arg0)
contains in interface Collection<IDecisionRule>contains in interface List<IDecisionRule>public boolean containsAll(Collection arg0)
containsAll in interface Collection<IDecisionRule>containsAll in interface List<IDecisionRule>public boolean equals(Object arg0)
equals in interface Collection<IDecisionRule>equals in interface List<IDecisionRule>equals in class Objectpublic IDecisionRule get(int arg0)
get in interface List<IDecisionRule>public int hashCode()
hashCode in interface Collection<IDecisionRule>hashCode in interface List<IDecisionRule>hashCode in class Objectpublic int indexOf(Object arg0)
indexOf in interface List<IDecisionRule>public boolean isEmpty()
isEmpty in interface Collection<IDecisionRule>isEmpty in interface List<IDecisionRule>public Iterator<IDecisionRule> iterator()
iterator in interface Iterable<IDecisionRule>iterator in interface Collection<IDecisionRule>iterator in interface List<IDecisionRule>public int lastIndexOf(Object arg0)
lastIndexOf in interface List<IDecisionRule>public ListIterator<IDecisionRule> listIterator()
listIterator in interface List<IDecisionRule>public ListIterator<IDecisionRule> listIterator(int arg0)
listIterator in interface List<IDecisionRule>public IDecisionRule remove(int arg0)
remove in interface List<IDecisionRule>public boolean remove(Object arg0)
remove in interface Collection<IDecisionRule>remove in interface List<IDecisionRule>public boolean removeAll(Collection arg0)
removeAll in interface Collection<IDecisionRule>removeAll in interface List<IDecisionRule>public boolean retainAll(Collection arg0)
retainAll in interface Collection<IDecisionRule>retainAll in interface List<IDecisionRule>public IDecisionRule set(int arg0, IDecisionRule arg1)
set in interface List<IDecisionRule>public List<IDecisionRule> subList(int arg0, int arg1)
subList in interface List<IDecisionRule>public Object[] toArray()
toArray in interface Collection<IDecisionRule>toArray in interface List<IDecisionRule>public Object[] toArray(Object[] arg0)
toArray in interface Collection<IDecisionRule>toArray in interface List<IDecisionRule>public void update(Observable o, Object arg)
public void fromXML(Element xml) throws XMLDecisionMethodException
fromXML in interface XMLSerializableXMLDecisionMethodExceptionpublic Element toShallowXML(Document document) throws XMLDecisionMethodException
toShallowXML in interface XMLSerializableXMLDecisionMethodExceptionpublic Element toXML(Document document) throws XMLDecisionMethodException
toXML in interface XMLSerializableXMLDecisionMethodExceptionpublic ArrayList<IDecisionRule> getList()
public void setList(ArrayList<IDecisionRule> list)
Copyright © 2004–2018 Ideaconsult Ltd. All rights reserved.