net.sf.myra.datamining.data
Class Node

java.lang.Object
  extended by net.sf.myra.datamining.data.Node
All Implemented Interfaces:
java.io.Serializable

public class Node
extends java.lang.Object
implements java.io.Serializable

This class represents a node of the hierarchy.

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero
See Also:
ClassHierarchy, Serialized Form

Constructor Summary
Node(java.lang.String label)
          Default constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.Collection<Node> getAncestors()
           
 Node getChild(java.lang.String label)
           
 java.util.Collection<Node> getChildren()
           
 java.util.Collection<Node> getDescendants()
           
 java.lang.String getLabel()
           
 java.util.Collection<Node> getParents()
           
 double getWeight()
           
 int hashCode()
           
 boolean isAncestor(java.lang.String label)
           
 boolean isDescendant(java.lang.String label)
           
 boolean isLeaf()
           
 boolean isRoot()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Node

public Node(java.lang.String label)
Default constructor.

Parameters:
label - the label of the node.
Method Detail

isLeaf

public boolean isLeaf()

isRoot

public boolean isRoot()

getWeight

public double getWeight()

isAncestor

public boolean isAncestor(java.lang.String label)

isDescendant

public boolean isDescendant(java.lang.String label)

getLabel

public java.lang.String getLabel()

getParents

public java.util.Collection<Node> getParents()

getChildren

public java.util.Collection<Node> getChildren()

getChild

public Node getChild(java.lang.String label)

getAncestors

public java.util.Collection<Node> getAncestors()

getDescendants

public java.util.Collection<Node> getDescendants()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013. All Rights Reserved.