net.sf.myra.datamining.data
Class Node
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Node
public Node(java.lang.String label)
- Default constructor.
- Parameters:
label
- the label of the node.
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.