fsmvis.engine
Class NeighbourComparator

java.lang.Object
  |
  +--fsmvis.engine.NeighbourComparator

public class NeighbourComparator
extends java.lang.Object
implements java.util.Comparator


Constructor Summary
NeighbourComparator(DataItemCollection dataItems, int index)
          constructor: takes the dataItemCollection that contain the desired distances, and the index that this is the neighbour list of
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares its two arguments for order.
 boolean equals(java.lang.Object obj)
          Define whether or not this class is equivalent to some other object, never used in this implementation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeighbourComparator

public NeighbourComparator(DataItemCollection dataItems,
                           int index)
constructor: takes the dataItemCollection that contain the desired distances, and the index that this is the neighbour list of
Parameters:
dataItems - the data item collection
index - The index of the owner of this neighbour set
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares its two arguments for order.
Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - The first object to be compared
o2 - The other object to be compared
Returns:
The result of the comparison

equals

public boolean equals(java.lang.Object obj)
Define whether or not this class is equivalent to some other object, never used in this implementation
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object