coins.aflow.util
クラス TreeStructure

java.lang.Object
  |
  +--coins.aflow.util.TreeStructure

public class TreeStructure
extends java.lang.Object

A tree structure class.


コンストラクタの概要
TreeStructure()
          Constructs a new tree structure instance.
TreeStructure(java.util.Collection pCollection)
          Constructs a new tree structure instance whose nodes are elements of the specified argument Collection.
 
メソッドの概要
 java.util.List ancestorsOf(java.lang.Object pObj)
          Returns the ancestor nodes of the specified argument node, including the argument node itself, in this tree structure.
 java.util.List childrenOf(java.lang.Object pObj)
          Returns the child nodes of the specified argument node in this tree structure.
 boolean link(java.lang.Object pParent, java.lang.Object pChild)
          Makes a parent-child link between the given nodes.
 java.lang.Object parentOf(java.lang.Object pObj)
          Returns the parent node of the specified argument node in this tree structure.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TreeStructure

public TreeStructure(java.util.Collection pCollection)
Constructs a new tree structure instance whose nodes are elements of the specified argument Collection. The nodes are not linked yet.


TreeStructure

public TreeStructure()
Constructs a new tree structure instance.

メソッドの詳細

parentOf

public java.lang.Object parentOf(java.lang.Object pObj)
Returns the parent node of the specified argument node in this tree structure.


childrenOf

public java.util.List childrenOf(java.lang.Object pObj)
Returns the child nodes of the specified argument node in this tree structure.


ancestorsOf

public java.util.List ancestorsOf(java.lang.Object pObj)
Returns the ancestor nodes of the specified argument node, including the argument node itself, in this tree structure.


link

public boolean link(java.lang.Object pParent,
                    java.lang.Object pChild)
Makes a parent-child link between the given nodes.