de.fuberlin.wiwiss.semmf.engine
Class ClusterSimComparator

java.lang.Object
  extended by de.fuberlin.wiwiss.semmf.engine.ClusterSimComparator
All Implemented Interfaces:
java.util.Comparator

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

This comaprator is used by the matching engine to sort GraphMatchingResults descending order, by the similarity of a given cluster.

Version:
1.0 last modified 29.11.2006
Author:
Radoslaw Oldakowski

Field Summary
private  int indexInClusterList
          Index of the cluster to be compared in the ClusterMatchingResult List
 
Constructor Summary
ClusterSimComparator(int indexInClusterList)
          Constructor
 
Method Summary
 int compare(java.lang.Object gmr1, java.lang.Object gmr2)
          Implementation of the Comparator's abstract method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

indexInClusterList

private int indexInClusterList
Index of the cluster to be compared in the ClusterMatchingResult List

Constructor Detail

ClusterSimComparator

public ClusterSimComparator(int indexInClusterList)
Constructor

Parameters:
indexInClusterList - Index of the cluster to be compared in the ClusterMatchingResultList
Method Detail

compare

public int compare(java.lang.Object gmr1,
                   java.lang.Object gmr2)
Implementation of the Comparator's abstract method

Specified by:
compare in interface java.util.Comparator