nct.graph.basic
Class BasicWeightedNode<IDType extends java.lang.Comparable<? super IDType>,WeightType extends java.lang.Comparable<? super WeightType>>

java.lang.Object
  extended by nct.graph.basic.BasicWeightedNode<IDType,WeightType>
All Implemented Interfaces:
java.lang.Comparable<WeightedNode<IDType,WeightType>>, WeightedNode<IDType,WeightType>

public class BasicWeightedNode<IDType extends java.lang.Comparable<? super IDType>,WeightType extends java.lang.Comparable<? super WeightType>>
extends java.lang.Object
implements WeightedNode<IDType,WeightType>


Constructor Summary
BasicWeightedNode(IDType id, WeightType weight)
           
 
Method Summary
 int compareTo(WeightedNode<IDType,WeightType> other)
           
 IDType getID()
           
 WeightType getWeight()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicWeightedNode

public BasicWeightedNode(IDType id,
                         WeightType weight)
Method Detail

getWeight

public WeightType getWeight()
Specified by:
getWeight in interface WeightedNode<IDType extends java.lang.Comparable<? super IDType>,WeightType extends java.lang.Comparable<? super WeightType>>

getID

public IDType getID()
Specified by:
getID in interface WeightedNode<IDType extends java.lang.Comparable<? super IDType>,WeightType extends java.lang.Comparable<? super WeightType>>

compareTo

public int compareTo(WeightedNode<IDType,WeightType> other)
Specified by:
compareTo in interface java.lang.Comparable<WeightedNode<IDType extends java.lang.Comparable<? super IDType>,WeightType extends java.lang.Comparable<? super WeightType>>>

toString

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