Class MyNode

java.lang.Object
si.ijs.kt.clus.util.jeans.tree.MyNode
All Implemented Interfaces:
Serializable, Node
Direct Known Subclasses:
ClusNode, OptXValBinTree, OptXValNode, OptXValSplit

public class MyNode extends Object implements Node, Serializable
See Also:
  • Field Details

    • serialVersionUID

      public static final long serialVersionUID
      See Also:
    • m_Children

      protected MyArray m_Children
    • m_Parent

      protected Node m_Parent
  • Constructor Details

    • MyNode

      public MyNode()
    • MyNode

      public MyNode(Node parent)
  • Method Details

    • getRoot

      public MyNode getRoot()
    • getPath

      public final int[] getPath()
    • fromPath

      public final MyNode fromPath(int[] path, int skip)
    • indexOf

      public final int indexOf(Node child)
    • equalsPath

      public boolean equalsPath(int[] path)
    • showPath

      public static void showPath(int[] path, PrintWriter out)
    • showPath

      public static void showPath(int[] path)
    • cloneNode

      public MyNode cloneNode() throws ClusException
      Throws:
      ClusException
    • addChild

      public final void addChild(Node node)
      Specified by:
      addChild in interface Node
    • setChild

      public final void setChild(Node node, int idx)
    • removeChild

      public final void removeChild(Node node)
      Specified by:
      removeChild in interface Node
    • removeChild

      public final void removeChild(int idx)
    • removeAllChildren

      public final void removeAllChildren()
    • getParent

      public final Node getParent()
      Specified by:
      getParent in interface Node
    • setParent

      public final void setParent(Node parent)
      Specified by:
      setParent in interface Node
    • getChild

      public final Node getChild(int idx)
      Specified by:
      getChild in interface Node
    • getNbChildren

      public final int getNbChildren()
      Specified by:
      getNbChildren in interface Node
    • setNbChildren

      public final void setNbChildren(int nb)
    • atTopLevel

      public final boolean atTopLevel()
      Specified by:
      atTopLevel in interface Node
    • atBottomLevel

      public final boolean atBottomLevel()
      Specified by:
      atBottomLevel in interface Node
    • cloneTree

      public final MyNode cloneTree() throws ClusException
      Throws:
      ClusException
    • cloneTree

      public final MyNode cloneTree(MyNode n1, MyNode n2) throws ClusException
      Throws:
      ClusException
    • getLevel

      public final int getLevel()
      Specified by:
      getLevel in interface Node
    • getMaxLeafDepth

      public final int getMaxLeafDepth()