de.cau.cs.kieler.kiml.util
Class KGraphHash

java.lang.Object
  extended by de.cau.cs.kieler.kiml.util.KGraphHash
All Implemented Interfaces:
Comparable<KGraphHash>, Comparator<KNode>

public class KGraphHash
extends Object
implements Comparable<KGraphHash>, Comparator<KNode>

A helper class to compute hash values from a layout graph.

Rating proposed yellow
(2011-01-13) msp

Constructor Summary
KGraphHash(KNode thetopNode)
          Creates a KGraph hash instance.
 
Method Summary
 int compare(KNode node1, KNode node2)
          
 int compareTo(KGraphHash other)
          
 boolean equals(Object object)
          
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KGraphHash

public KGraphHash(KNode thetopNode)
Creates a KGraph hash instance.

Parameters:
thetopNode - the top level node of the layout graph
Method Detail

equals

public boolean equals(Object object)

Specified by:
equals in interface Comparator<KNode>
Overrides:
equals in class Object

compare

public int compare(KNode node1,
                   KNode node2)

Specified by:
compare in interface Comparator<KNode>

compareTo

public int compareTo(KGraphHash other)

Specified by:
compareTo in interface Comparable<KGraphHash>

hashCode

public int hashCode()

Overrides:
hashCode in class Object