fr.umlv.roadcoloring.graph
Class NodeData

java.lang.Object
  extended by fr.umlv.roadcoloring.graph.NodeData

public class NodeData
extends java.lang.Object

Datas informations for one node

Author:
fsikora

Constructor Summary
NodeData(Circle circle, int level, int rootAbsolute)
           
 
Method Summary
 Circle getCircle()
          Get the reached circle (it's own if node in on the circle, the reached circle of tree else)
 int getLevel()
          return the circle's distance of the node (0 if on the circle)
 int getRootAbsolute()
          get the number of the node root
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeData

public NodeData(Circle circle,
                int level,
                int rootAbsolute)
Method Detail

getCircle

public Circle getCircle()
Get the reached circle (it's own if node in on the circle, the reached circle of tree else)

Returns:
a Circle

getLevel

public int getLevel()
return the circle's distance of the node (0 if on the circle)

Returns:
the distance of the node to the circle

getRootAbsolute

public int getRootAbsolute()
get the number of the node root

Returns:
the number of the tree's root

toString

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