|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.GroupTree
public class GroupTree
A group tree manages operator descriptions in a tree like manner. This is useful to present the operators in groups and subgroups and eases operator selection in the GUI.
| Constructor Summary | |
|---|---|
GroupTree(GroupTree other)
Clone constructor. |
|
GroupTree(java.lang.String name)
Creates a new group tree with no operators and children. |
|
| Method Summary | |
|---|---|
void |
addOperatorDescription(OperatorDescription description)
Adds an operator to this group. |
void |
addSubGroup(GroupTree child)
Adds a subgroup to this group. |
java.lang.Object |
clone()
Returns a deep clone of this tree. |
int |
compareTo(GroupTree o)
|
boolean |
equals(java.lang.Object o)
|
java.util.Set<OperatorDescription> |
getAllOperatorDescriptions()
Returns all operator in this group and recursively the operators of all children. |
int |
getIndexOfSubGroup(GroupTree child)
Returns the index of the given subgroup or -1 if the sub group is not a child of this node. |
java.lang.String |
getMainGroupName()
Returns the main group name, i.e. the name of the first parent group under the root. |
java.lang.String |
getName()
Returns the name of this group. |
java.util.Set<OperatorDescription> |
getOperatorDescriptions()
Returns all operator descriptions in this group or an empty list if this group does not contain any operators. |
GroupTree |
getSubGroup(int index)
Returns the i-th sub group. |
GroupTree |
getSubGroup(java.lang.String name)
Returns the subgroup with the given name. |
java.util.Collection<GroupTree> |
getSubGroups()
Returns a set of all children group trees. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GroupTree(java.lang.String name)
public GroupTree(GroupTree other)
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String getName()
public java.lang.String getMainGroupName()
public void addSubGroup(GroupTree child)
public GroupTree getSubGroup(java.lang.String name)
public java.util.Collection<GroupTree> getSubGroups()
public int getIndexOfSubGroup(GroupTree child)
public GroupTree getSubGroup(int index)
public void addOperatorDescription(OperatorDescription description)
public java.util.Set<OperatorDescription> getOperatorDescriptions()
public java.util.Set<OperatorDescription> getAllOperatorDescriptions()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(GroupTree o)
compareTo in interface java.lang.Comparable<GroupTree>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||